设置多店和单店的当前日期
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user