fix: 修复当过滤组件和图表组合后添加到tab组件中,外部参数中过滤组件不可见问题 (#17832)

This commit is contained in:
王嘉豪
2026-01-20 10:40:09 +08:00
committed by GitHub
parent 1911a78f80
commit a04706d573
2 changed files with 29 additions and 9 deletions

View File

@@ -568,6 +568,12 @@ const initParams = async () => {
tabItem.componentData?.forEach(tabComponent => {
if (tabComponent.component === 'VQuery') {
state.baseFilterInfo.push(tabComponent)
} else if (tabComponent.component === 'Group') {
tabComponent.propValue.forEach(groupItem => {
if (groupItem.component === 'VQuery') {
state.baseFilterInfo.push(groupItem)
}
})
}
})
})

View File

@@ -1171,15 +1171,29 @@ export const dvMainStore = defineStore('dataVisualization', {
} else if (element.component === 'DeTabs') {
element.propValue?.forEach(tabItem => {
tabItem.componentData?.forEach((tabComponent, index) => {
this.trackOuterFilterCursor(
tabComponent,
params,
preActiveComponentIds,
trackInfo,
source,
paramsVersion
)
tabItem.componentData[index] = tabComponent
if (['UserView', 'VQuery'].includes(tabComponent.component)) {
this.trackOuterFilterCursor(
tabComponent,
params,
preActiveComponentIds,
trackInfo,
source,
paramsVersion
)
tabItem.componentData[index] = tabComponent
} else if (tabComponent.component === 'Group') {
tabComponent.propValue?.forEach((groupItem, index) => {
this.trackOuterFilterCursor(
groupItem,
params,
preActiveComponentIds,
trackInfo,
source,
paramsVersion
)
tabComponent.propValue[index] = groupItem
})
}
})
})
}