From 74d51d04b0724481328f0434e48a642b878e253f Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 8 Aug 2024 10:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=A4=9A=E5=BA=97=E5=92=8C?= =?UTF-8?q?=E5=8D=95=E5=BA=97=E7=9A=84=E5=BD=93=E5=89=8D=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AppMultipleStoreBoardFilter.vue | 3 ++- src/views/AppStoreBoardFilter.vue | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/AppMultipleStoreBoardFilter.vue b/src/views/AppMultipleStoreBoardFilter.vue index 1709702..1799666 100644 --- a/src/views/AppMultipleStoreBoardFilter.vue +++ b/src/views/AppMultipleStoreBoardFilter.vue @@ -28,8 +28,9 @@ export default { created() { this.getOptions().then(() => { setTimeout(() => { + const {dayjs} = window const hourNum = new Date().getHours(), groupCodeList = "" - let currentDate = "" + const currentDate = dayjs().format("YYYYMMDD") this.form = {hourNum, groupCodeList, type: "1", changeWay: "1", currentDate} this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: "", currentDate}) }, 500) diff --git a/src/views/AppStoreBoardFilter.vue b/src/views/AppStoreBoardFilter.vue index 86da9c3..d2bd929 100644 --- a/src/views/AppStoreBoardFilter.vue +++ b/src/views/AppStoreBoardFilter.vue @@ -25,10 +25,12 @@ export default { created() { this.getOptions().then(() => { setTimeout(() => { + const {dayjs} = window const hourNum = new Date().getHours(), storeCode = this.$storeBoard.search.storeCode || this.options?.[0].storeCode - this.form = {hourNum, storeCode, type: "1"} - this.$set(this.$storeBoard, 'search', {hourNum, storeCode, type: "1", categoryId: ''}) + const currentDate = dayjs().format("YYYYMMDD") + this.form = {hourNum, storeCode, type: "1", currentDate} + this.$set(this.$storeBoard, 'search', {hourNum, storeCode, type: "1", categoryId: '', currentDate}) }, 500) }) }, @@ -82,7 +84,7 @@ export default { border-radius: 0; color: #fff; min-width: 100px; - width: 120px; + width: 130px; } .storeSelect .el-input__inner {