mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix: 修复当过滤组件和图表组合后添加到tab组件中,外部参数中过滤组件不可见问题 (#17832)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user