forked from github/dataease
Merge pull request #4274 from dataease/pr@dev@fix_tab-table
fix(仪表板): 修复外部过滤后切换Tab可能导致Tab内表格不显示数据问题
This commit is contained in:
commit
cfe7dbf320
@ -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) {
|
||||
|
@ -415,6 +415,7 @@ export default {
|
||||
// ignore
|
||||
}
|
||||
})
|
||||
bus.$emit('tab-canvas-change', this.activeCanvasId)
|
||||
}
|
||||
},
|
||||
active: {
|
||||
|
Loading…
Reference in New Issue
Block a user