fix(仪表板、数据大屏): 修复Tab组件:在Tab组件中的图表二次联动后,点击清除联动设置,不完全生效问题

This commit is contained in:
王嘉豪
2026-06-05 10:12:17 +08:00
committed by wangjiahao
parent e197f3e7c2
commit 3023ff5ace

View File

@@ -1052,28 +1052,32 @@ export const dvMainStore = defineStore('dataVisualization', {
this.componentData[indexOuter] = element
} else if (element.component === 'Group') {
element.propValue?.forEach((groupItem, index) => {
this.trackFilterCursor(
groupItem,
checkQDList,
trackInfo,
preActiveComponentIds,
viewId,
customFilterInfo
)
element.propValue[index] = groupItem
})
} else if (element.component === 'DeTabs') {
element.propValue?.forEach(tabItem => {
tabItem.componentData?.forEach((tabComponent, index) => {
if (groupItem.id !== viewId) {
this.trackFilterCursor(
tabComponent,
groupItem,
checkQDList,
trackInfo,
preActiveComponentIds,
viewId,
customFilterInfo
)
tabItem.componentData[index] = tabComponent
element.propValue[index] = groupItem
}
})
} else if (element.component === 'DeTabs') {
element.propValue?.forEach(tabItem => {
tabItem.componentData?.forEach((tabComponent, index) => {
if (tabComponent.id !== viewId) {
this.trackFilterCursor(
tabComponent,
checkQDList,
trackInfo,
preActiveComponentIds,
viewId,
customFilterInfo
)
tabItem.componentData[index] = tabComponent
}
})
})
}