优化
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user