Authored by weiqingting

提交

... ... @@ -35,7 +35,7 @@ function batchExport(el, type) {
params.supplierId=common.util.__input("supplierId");
params.brandName=params.brandId?$("#brandId").find("option[value="+$("#brandId").val()+"]").text():"";
params.shopsName=params.shopId?$("#shopId").find("option[value="+$("#shopId").val()+"]").text():"";
params.shopsName=params.shopsId?$("#shopId").find("option[value="+$("#shopId").val()+"]").text():"";
params.supplierName=params.supplierId?$("#supplierId").find("option[value="+$("#supplierId").val()+"]").text():"";
console.log("params",params);
... ...
... ... @@ -68,7 +68,7 @@ $(document).on("click","#addBrands",function(){
for(var i in Brand){
Brands.push({name:i,items:Brand[i]});
}
// console.log(JSON.stringify(Object.keys(Brand)));
console.log(JSON.stringify(Brands));
},true);
});
... ...
... ... @@ -249,11 +249,20 @@
<div class="row">
<div class="form-group">
[[each Brands as brand index]]
<a>[[brand.name]]</a>
[[/each]]
</div>
<div class="form-group">
[[each Brands as brand index]]
<div class="form-group" name="[[brand.name]]">
[[each brand.items as item __index ]]
<input type="checkbox" value="[[item.id]]" name="brandCheckBox">
<label>[[item.brandName]]</label>
[[/each]]
</div>
[[/each]]
</div>
</div>
... ...