feature_0521
郑皇 5 years ago
parent 38dfb57675
commit e2699eee7e

@ -88,7 +88,6 @@ export default {
} else { } else {
this.isSelect = []; this.isSelect = [];
} }
console.log(11, this.allSelect, this.isSelect);
store.getters.useData.stores = []; store.getters.useData.stores = [];
this.isSelect.forEach((item) => { this.isSelect.forEach((item) => {
const s = _this._.find(_this.shopListData, (shop) => shop.id == item); const s = _this._.find(_this.shopListData, (shop) => shop.id == item);

@ -135,12 +135,23 @@ export default {
this.indeterminate = false; this.indeterminate = false;
if (this.allSelect) { if (this.allSelect) {
this.checkCompanys = [];
this.companyList.forEach((item) => { this.companyList.forEach((item) => {
this.checkCompanys.push(item.value); this.checkCompanys.push(item.value);
}); });
} else { } else {
this.checkCompanys = []; this.checkCompanys = [];
} }
store.getters.useData.company = [];
this.checkCompanys.forEach((item) => {
const c = _this._.find(
_this.companyListdata,
(shop) => shop.id == item
);
if (c) {
store.getters.useData.company.push(c);
}
});
}, },
}, },
}; };

Loading…
Cancel
Save