NEZ-2836 feat:dashboard内置全局变量

This commit is contained in:
zyh
2023-05-24 17:02:26 +08:00
parent 33b88fed54
commit 73326755b5
12 changed files with 234 additions and 35 deletions

View File

@@ -880,8 +880,10 @@ export default {
},
showPanel: {
handler () {
this.setDefaultTimeRange()
this.setDefaultRefresh()
if (this.from !== this.fromRoute.dashboardTemp) {
this.setDefaultTimeRange()
this.setDefaultRefresh()
}
}
},
// 监听图表联动配置
@@ -936,6 +938,10 @@ export default {
document.querySelector('#tableList') && document.querySelector('#tableList').removeEventListener('mouseleave', this.tableListLeave)
this.scrollbarWrap && this.scrollbarWrap.removeEventListener('scroll', bus.debounce)
this.$store.dispatch('dispatchPanelLock', { flag: true })
this.$store.dispatch('dispatchPanelTime', {
time: [],
nowTimeType: {}
})
// 页面销毁 清除图表联动
this.$store.commit('setCurrentMousemove', 0)