From e2699eee7e260d11dd69da419683dc877eb8a37e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Sun, 24 May 2020 18:28:40 +0800 Subject: [PATCH] 1 --- src/pages/activity/useActivityStepThree.vue | 1 - src/pages/activity/useActivityStepTwo.vue | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/activity/useActivityStepThree.vue b/src/pages/activity/useActivityStepThree.vue index 99a61cd..050200a 100644 --- a/src/pages/activity/useActivityStepThree.vue +++ b/src/pages/activity/useActivityStepThree.vue @@ -88,7 +88,6 @@ export default { } else { this.isSelect = []; } - console.log(11, this.allSelect, this.isSelect); store.getters.useData.stores = []; this.isSelect.forEach((item) => { const s = _this._.find(_this.shopListData, (shop) => shop.id == item); diff --git a/src/pages/activity/useActivityStepTwo.vue b/src/pages/activity/useActivityStepTwo.vue index 677b846..b650ad3 100644 --- a/src/pages/activity/useActivityStepTwo.vue +++ b/src/pages/activity/useActivityStepTwo.vue @@ -135,12 +135,23 @@ export default { this.indeterminate = false; if (this.allSelect) { + this.checkCompanys = []; this.companyList.forEach((item) => { this.checkCompanys.push(item.value); }); } else { 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); + } + }); }, }, };