From 599c80304cf120c29493de61881e055bc54f1ddc Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 12 Mar 2025 11:38:02 +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=8D?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E5=9B=BE=E8=A1=A8=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=97=A0=E6=B3=95=E9=80=89=E6=8B=A9tab=E9=A1=B5?= =?UTF-8?q?=E5=86=85=E7=9A=84=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20#15203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/visualization/LinkJumpSet.vue | 36 ++++++++++++------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/core/core-frontend/src/components/visualization/LinkJumpSet.vue b/core/core-frontend/src/components/visualization/LinkJumpSet.vue index 438168e316..63f2ae5e43 100644 --- a/core/core-frontend/src/components/visualization/LinkJumpSet.vue +++ b/core/core-frontend/src/components/visualization/LinkJumpSet.vue @@ -746,6 +746,28 @@ const dialogInit = viewItem => { init(viewItem) } +const initCurFilterFieldArray = componentDataCheck => { + componentDataCheck.forEach(componentItem => { + if (componentItem.component === 'VQuery' && componentItem.propValue instanceof Array) { + componentItem.propValue.forEach(filterItem => { + if (filterItem.checkedFields.includes(state.viewId)) { + state.linkJumpCurFilterFieldArray.push({ + id: filterItem.id, + name: filterItem.name, + deType: 'filter' + }) + } + }) + } else if (componentItem.component === 'Group') { + initCurFilterFieldArray(componentItem.propValue) + } else if (componentItem.component === 'DeTabs') { + componentItem.propValue.forEach(tabItem => { + initCurFilterFieldArray(tabItem.componentData) + }) + } + }) +} + const init = viewItem => { state.initState = false state.viewId = viewItem.id @@ -792,19 +814,7 @@ const init = viewItem => { // 获取当前过滤条件明细 过滤原则:1.在当前仪表板或者大屏 2.作用于当前图表 state.linkJumpCurFilterFieldArray = [] - componentData.value.forEach(componentItem => { - if (componentItem.component === 'VQuery' && componentItem.propValue instanceof Array) { - componentItem.propValue.forEach(filterItem => { - if (filterItem.checkedFields.includes(state.viewId)) { - state.linkJumpCurFilterFieldArray.push({ - id: filterItem.id, - name: filterItem.name, - deType: 'filter' - }) - } - }) - } - }) + initCurFilterFieldArray(componentData.value) if (chartDetails.tableId) { // 获取当前数据集信息