调整一下默认时段

This commit is contained in:
aixianling
2024-10-29 17:30:04 +08:00
parent 7b259f24db
commit 7aab2ccdf4
3 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ export default {
setTimeout(() => {
const compareDate = dayjs().subtract(7, "day").format("YYYYMMDD"),
currentDate = dayjs().format("YYYYMMDD"),
hourNum = new Date().getHours(),
hourNum = new Date().getHours()+1,
groupCodeList = ""
this.form = {compareDate, currentDate, hourNum, groupCodeList}
this.$set(this.$marketBoard, 'search', {compareDate, currentDate, hourNum, groupCodeList: []})

View File

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

View File

@@ -26,7 +26,7 @@ export default {
this.getOptions().then(() => {
setTimeout(() => {
const {dayjs} = window
const hourNum = new Date().getHours(),
const hourNum = new Date().getHours()+1,
storeCode = this.$storeBoard.search.storeCode || this.options?.[0].storeCode
const currentDate = dayjs().format("YYYYMMDD")
this.form = {hourNum, storeCode, type: "1", currentDate}