This commit is contained in:
zds
2022-09-12 00:42:03 +08:00
parent 5c3197722b
commit 72d3327cae
7 changed files with 379 additions and 4 deletions

View File

@@ -360,8 +360,8 @@ export default {
},
[CRUD.HOOK.beforeRefresh]() {
if(this.query_flag){
this.crud.query.begin_time = (new Date()).toISOString()
this.crud.query.end_time = (new Date().daysLater(2)).toISOString()
this.crud.query.begin_time = (new Date()).strftime('%F', 'zh')
this.crud.query.end_time = (new Date().daysLater(2)).strftime('%F', 'zh')
this.query_flag = false
}
this.handleCurrentChange()

View File

@@ -301,8 +301,8 @@ export default {
methods: {
[CRUD.HOOK.beforeRefresh]() {
if(this.query_flag){
this.crud.query.begin_time = (new Date().daysAgo(2)).toISOString()
this.crud.query.end_time = (new Date()).toISOString()
this.crud.query.begin_time = (new Date().daysAgo(2)).strftime('%F', 'zh')
this.crud.query.end_time = (new Date()).strftime('%F', 'zh')
this.query_flag = false
}
this.handleCurrentChange()