From dd04a64368a48e98a72dff107ab2a2710be391fc Mon Sep 17 00:00:00 2001
From: Kubbo <390378816@qq.com>
Date: Mon, 8 Jul 2024 23:03:11 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=9A=E5=BA=97=E7=9A=84?=
=?UTF-8?q?=E8=81=94=E5=8A=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/AppMultipleStoreBoardFilter.vue | 7 +++++--
src/views/AppStoresTable.vue | 3 ++-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/views/AppMultipleStoreBoardFilter.vue b/src/views/AppMultipleStoreBoardFilter.vue
index fbfd19e..1f079ec 100644
--- a/src/views/AppMultipleStoreBoardFilter.vue
+++ b/src/views/AppMultipleStoreBoardFilter.vue
@@ -50,6 +50,9 @@ export default {
+
+ $set($multipleStoreBoard.search, 'compareDate', v)" clearable type="date" value-format="yyyyMMdd"/>
+
$multipleStoreBoard.search.groupCodeList=[v]" clearable placeholder="全部">
@@ -57,7 +60,7 @@ export default {
- $multipleStoreBoard.search.hourNum=v" clearable placeholder="全部">
+ $multipleStoreBoard.search.hourNum=v" clearable placeholder="全部">
@@ -84,7 +87,7 @@ export default {
}
.AppMultipleStoreBoardFilter .el-input {
- width: 100%;
+ width: 100% !important;
}
.AppMultipleStoreBoardFilter .el-form-item__label {
diff --git a/src/views/AppStoresTable.vue b/src/views/AppStoresTable.vue
index 3beac3d..e350b31 100644
--- a/src/views/AppStoresTable.vue
+++ b/src/views/AppStoresTable.vue
@@ -102,8 +102,9 @@ export default {
methods: {
getData() {
const {$http, $waitFor} = window
+ const {groupCodeList, type, compareDate} = this.search
console.log("筛选条件:", this.search)
- $waitFor($http && this.search.groupCodeList.length > 0).then(() => this.getStores())
+ $waitFor($http && groupCodeList.length > 0 && (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 => {