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 {