feat : panel 的时间保留

This commit is contained in:
zhangyu
2021-12-23 20:22:40 +08:00
parent df7cdd72f4
commit 4403efc640
4 changed files with 39 additions and 13 deletions

View File

@@ -177,11 +177,13 @@ export default {
if (this.$refs.pickTime) {
if (this.$refs.pickTime.$refs.multipleTime) {
this.$refs.pickTime.$refs.multipleTime.showDropdown = false
this.$refs.pickTime.$refs.timePicker.setCustomTime(this.nowType)
}
this.setSearchTime(this.nowType.type, this.nowType.value, this.nowType)
this.searchTime[0] = bus.timeFormate(this.timeRange[0], 'yyyy-MM-dd hh:mm:ss')
this.searchTime[1] = bus.timeFormate(this.timeRange[1], 'yyyy-MM-dd hh:mm:ss')
this.nowType.start_time = this.searchTime[0]
this.nowType.end_time = this.searchTime[1]
this.$refs.pickTime.$refs.timePicker.setCustomTime(this.nowType)
this.setSearchTime(this.nowType.type, this.nowType.value, this.nowType)
}
}
}