Compare commits

...

2 Commits

Author SHA1 Message Date
3ee1bb3b9a Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/views/AppMultipleStoreBoardFilter.vue
2025-02-11 09:30:18 +08:00
2663ca9e73 refactor(src/views): 更新 AppMultipleStoreBoardFilter 组件中的日期逻辑
- 将获取当前日期的逻辑从"减去7天"修改为"当前日期"
- 通过注释保留原始逻辑以便参考
2025-02-11 09:25:00 +08:00

View File

@@ -47,8 +47,9 @@ export default {
this.getOptions().then(() => { this.getOptions().then(() => {
setTimeout(() => { setTimeout(() => {
const {dayjs} = window const {dayjs} = window
const hourNum = new Date().getHours() + 1, groupCodeList = "", interval = 60000 const hourNum = new Date().getHours()+1, groupCodeList = "", interval = 60000
const currentDate = dayjs().subtract(7, 'day').format("YYYYMMDD") // const currentDate = dayjs().subtract(7, 'day').format("YYYYMMDD")
const currentDate = dayjs().format("YYYYMMDD")
this.form = {hourNum, groupCodeList, type: "1", changeWay: "1", currentDate, interval} this.form = {hourNum, groupCodeList, type: "1", changeWay: "1", currentDate, interval}
this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: "", currentDate, interval}) this.$set(this.$multipleStoreBoard, 'search', {hourNum, groupCodeList: [], type: "1", changeWay: "1", categoryId: "", currentDate, interval})
}, 500) }, 500)