Showing
3 changed files
with
13 additions
and
4 deletions
@@ -35,7 +35,7 @@ function batchExport(el, type) { | @@ -35,7 +35,7 @@ function batchExport(el, type) { | ||
35 | params.supplierId=common.util.__input("supplierId"); | 35 | params.supplierId=common.util.__input("supplierId"); |
36 | 36 | ||
37 | params.brandName=params.brandId?$("#brandId").find("option[value="+$("#brandId").val()+"]").text():""; | 37 | params.brandName=params.brandId?$("#brandId").find("option[value="+$("#brandId").val()+"]").text():""; |
38 | - params.shopsName=params.shopId?$("#shopId").find("option[value="+$("#shopId").val()+"]").text():""; | 38 | + params.shopsName=params.shopsId?$("#shopId").find("option[value="+$("#shopId").val()+"]").text():""; |
39 | params.supplierName=params.supplierId?$("#supplierId").find("option[value="+$("#supplierId").val()+"]").text():""; | 39 | params.supplierName=params.supplierId?$("#supplierId").find("option[value="+$("#supplierId").val()+"]").text():""; |
40 | 40 | ||
41 | console.log("params",params); | 41 | console.log("params",params); |
@@ -68,7 +68,7 @@ $(document).on("click","#addBrands",function(){ | @@ -68,7 +68,7 @@ $(document).on("click","#addBrands",function(){ | ||
68 | for(var i in Brand){ | 68 | for(var i in Brand){ |
69 | Brands.push({name:i,items:Brand[i]}); | 69 | Brands.push({name:i,items:Brand[i]}); |
70 | } | 70 | } |
71 | - // console.log(JSON.stringify(Object.keys(Brand))); | 71 | + console.log(JSON.stringify(Brands)); |
72 | },true); | 72 | },true); |
73 | 73 | ||
74 | }); | 74 | }); |
@@ -249,11 +249,20 @@ | @@ -249,11 +249,20 @@ | ||
249 | <div class="row"> | 249 | <div class="row"> |
250 | 250 | ||
251 | <div class="form-group"> | 251 | <div class="form-group"> |
252 | - | 252 | + [[each Brands as brand index]] |
253 | + <a>[[brand.name]]</a> | ||
254 | + [[/each]] | ||
253 | </div> | 255 | </div> |
254 | 256 | ||
255 | <div class="form-group"> | 257 | <div class="form-group"> |
256 | - | 258 | + [[each Brands as brand index]] |
259 | + <div class="form-group" name="[[brand.name]]"> | ||
260 | + [[each brand.items as item __index ]] | ||
261 | + <input type="checkbox" value="[[item.id]]" name="brandCheckBox"> | ||
262 | + <label>[[item.brandName]]</label> | ||
263 | + [[/each]] | ||
264 | + </div> | ||
265 | + [[/each]] | ||
257 | </div> | 266 | </div> |
258 | 267 | ||
259 | </div> | 268 | </div> |
-
Please register or login to post a comment