fix:explore 去除时间锁定 以及 dashboard 时间锁定优化

This commit is contained in:
zhangyu
2023-07-20 17:03:55 +08:00
parent cf53f4f7d3
commit 7ebddf4905
4 changed files with 57 additions and 13 deletions

View File

@@ -1157,7 +1157,8 @@ export default {
})
},
setTimePickerRange () {
if (!this.timePickerRange.nowTimeType) {
if (this.$route.query.searchTime) return
if (!this.timePickerLocked || !this.timePickerRange.nowTimeType) {
this.setDefaultTimeRange()
}
const nowTimeType = this.nowTimeType = this.timePickerRange.nowTimeType
@@ -1188,6 +1189,10 @@ export default {
mode: { target: this, propertyName: 'mode', type: 'string' }
}
this.initQueryFromPath(searchKeys)
this.$store.dispatch('dispatchTimePickerRange', {
time: this.searchTime,
nowTimeType: this.nowTimeType
})
this.showPanel.id = this.dashboardId
this.filter.dashboardId = this.dashboardId
// 设置查看模式