Merge pull request #4274 from dataease/pr@dev@fix_tab-table

fix(仪表板): 修复外部过滤后切换Tab可能导致Tab内表格不显示数据问题
This commit is contained in:
王嘉豪 2023-01-04 14:32:34 +08:00 committed by GitHub
commit cfe7dbf320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: {