From 8df752e89fef5e7d6a3fd367b03b84d81221913e Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 12 Jul 2024 10:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BA=86=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BA=E5=85=A8=E9=83=A8=E8=AF=BE=E5=8C=BA?= =?UTF-8?q?,=E7=84=B6=E5=90=8E=E5=AF=B9=E6=9C=AA=E9=80=89=E8=AF=BE?= =?UTF-8?q?=E5=8C=BA=E7=9A=84=E8=BF=9B=E8=A1=8C=E5=85=A8=E9=83=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AppMultipleStoreBoardFilter.vue | 4 ++-- src/views/AppStoresTable.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/AppMultipleStoreBoardFilter.vue b/src/views/AppMultipleStoreBoardFilter.vue index 5c69f5f..5bf170d 100644 --- a/src/views/AppMultipleStoreBoardFilter.vue +++ b/src/views/AppMultipleStoreBoardFilter.vue @@ -29,9 +29,9 @@ export default { this.getOptions().then(() => { setTimeout(() => { const hourNum = new Date().getHours(), - groupCodeList = this.options?.[0].value + groupCodeList = "" this.form = {hourNum, groupCodeList, type: "1", changeWay: "1"} - this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [groupCodeList], type: "1", changeWay: "1", categoryId: ""}) + this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: ""}) }, 500) }) }, diff --git a/src/views/AppStoresTable.vue b/src/views/AppStoresTable.vue index 1a8f617..8f0511b 100644 --- a/src/views/AppStoresTable.vue +++ b/src/views/AppStoresTable.vue @@ -104,7 +104,7 @@ export default { const {$http, $waitFor} = window const {groupCodeList, type, compareDate} = this.search console.log("筛选条件:", this.search) - $waitFor($http && groupCodeList.length > 0 && (type != 3 || compareDate)).then(() => this.getStores()) + $waitFor($http && (type != 3 || compareDate)).then(() => this.getStores()) .then(codes => Promise.all([this.getCameras(), this.getStoreKeyGoods(), this.getCategorySales()]).then(() => codes)) .then((codes = []) => { this.stores = codes?.map(storeCode => { @@ -116,8 +116,8 @@ export default { }) }, getStores() { - const {groupCodeList = []} = this.search - return $http.get(`/data-boot/ca/screen/scStoreInfo/group/${groupCodeList[0]}`).then(res => { + const {groupCodeList: [groupCode] = []} = this.search + return $http.get(`/data-boot/ca/screen/scStoreInfo/group${groupCode ? `/${groupCode}` : ""}`).then(res => { if (res?.data) { return res.data }