fix(仪表板): 修复外部过滤后切换Tab可能导致Tab内表格不显示数据问题

This commit is contained in:
wangjiahao 2023-01-04 14:27:28 +08:00
parent 92067b7536
commit 2922f7ce6c
2 changed files with 7 additions and 0 deletions

View File

@ -545,6 +545,7 @@ export default {
}
},
mounted() {
bus.$on('tab-canvas-change', this.tabSwitch)
this.bindPluginEvent()
},
@ -569,6 +570,11 @@ export default {
}
},
methods: {
tabSwitch(tabCanvasId) {
if (this.charViewS2ShowFlag && tabCanvasId === this.canvasId && this.$refs[this.element.propValue.id]) {
this.$refs[this.element.propValue.id].chartResize()
}
},
//
buildInnerRefreshTimer(refreshViewEnable = false, refreshUnit = 'minute', refreshTime = 5) {
if (this.editMode === 'preview' && !this.innerRefreshTimer && refreshViewEnable) {

View File

@ -415,6 +415,7 @@ export default {
// ignore
}
})
bus.$emit('tab-canvas-change', this.activeCanvasId)
}
},
active: {