fix:处理 因为url 优先级导致的 时间显示错误的问题 以及 group 内部 时间锁定无效的问题

This commit is contained in:
zhangyu
2023-07-20 18:02:58 +08:00
parent 7ebddf4905
commit e2652c9dc6
7 changed files with 57 additions and 36 deletions

View File

@@ -3589,14 +3589,16 @@ export default {
dom.querySelector(id).scrollIntoView(true)
},
setTimePickerRange () {
console.log(this.timePickerLocked, !this.timePickerRange.nowTimeType)
if (!this.timePickerLocked || !this.timePickerRange.nowTimeType) {
return
}
const nowTimeType = this.nowTimeType = this.timePickerRange.nowTimeType
this.filterTime = this.timePickerRange.time
this.$refs.pickTime.$refs.timePicker.setTimeRange(this.nowTimeType, this.filterTime)
this.setSearchTime(nowTimeType.type, nowTimeType.value, nowTimeType)
this.$nextTick(() => {
console.log(this.timePickerLocked, !this.timePickerRange.nowTimeType)
if (!this.timePickerLocked || !this.timePickerRange.nowTimeType) {
return
}
const nowTimeType = this.nowTimeType = this.timePickerRange.nowTimeType
this.filterTime = this.timePickerRange.time
this.$refs.pickTime && this.$refs.pickTime.$refs.timePicker.setTimeRange(this.nowTimeType, this.filterTime)
this.setSearchTime(nowTimeType.type, nowTimeType.value, nowTimeType)
})
},
selectMetricsLogs (val, icon, label) {
if (val) {