From 1eb48fd31d3b5b94690097b41028605b75d0f366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Fri, 15 May 2026 13:46:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E4=BF=AE=E5=A4=8DTab?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=9A=E5=9C=A8Tab=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=9B=BE=E8=A1=A8=E4=BA=8C=E6=AC=A1=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E5=90=8E=EF=BC=8C=E7=82=B9=E5=87=BB=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E8=81=94=E5=8A=A8=E8=AE=BE=E7=BD=AE=EF=BC=8C=E4=B8=8D=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98=20#18347=20(#1839?= =?UTF-8?q?9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/data-visualization/dvMain.ts | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts index 38dbd61cf9..f5d82dc198 100644 --- a/core/core-frontend/src/store/modules/data-visualization/dvMain.ts +++ b/core/core-frontend/src/store/modules/data-visualization/dvMain.ts @@ -1046,28 +1046,32 @@ export const dvMainStore = defineStore('dataVisualization', { this.componentData[indexOuter] = element } else if (element.component === 'Group') { element.propValue?.forEach((groupItem, index) => { - this.trackFilterCursor( - groupItem, - data, - 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, data, 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, + data, + trackInfo, + preActiveComponentIds, + viewId, + customFilterInfo + ) + tabItem.componentData[index] = tabComponent + } }) }) } @@ -1583,6 +1587,9 @@ export const dvMainStore = defineStore('dataVisualization', { } else if (item.component === 'DeTabs') { item.propValue.forEach(tabItem => { tabItem.componentData?.forEach(tabComponent => { + console.log( + '==test1==' + tabComponent.id + JSON.stringify(tabComponent.linkageFilters) + ) if (tabComponent.linkageFilters && tabComponent.linkageFilters.length > 0) { tabComponent.linkageFilters.splice(0, tabComponent.linkageFilters.length) useEmitt().emitter.emit('query-data-' + tabComponent.id)