From b9336611692f4194201657bcd9c5c9442d4bfcec Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 27 Nov 2024 09:56:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=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=8E=A7=E5=88=B6=E5=8F=B0=E9=94=99=E8=AF=AF=E7=AD=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/canvas/LinkOptBar.vue | 2 +- .../src/components/visualization/LinkJumpSet.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/LinkOptBar.vue b/core/core-frontend/src/components/data-visualization/canvas/LinkOptBar.vue index 816494ebc2..cb75b4f42f 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/LinkOptBar.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/LinkOptBar.vue @@ -11,7 +11,7 @@ }" >
- + diff --git a/core/core-frontend/src/components/visualization/LinkJumpSet.vue b/core/core-frontend/src/components/visualization/LinkJumpSet.vue index a7b2498790..00ceebe1d2 100644 --- a/core/core-frontend/src/components/visualization/LinkJumpSet.vue +++ b/core/core-frontend/src/components/visualization/LinkJumpSet.vue @@ -772,7 +772,7 @@ const init = viewItem => { // 获取当前过滤条件明细 过滤原则:1.在当前仪表板或者大屏 2.作用于当前图表 state.linkJumpCurFilterFieldArray = [] componentData.value.forEach(componentItem => { - if (componentItem.component === 'VQuery') { + if (componentItem.component === 'VQuery' && componentItem.propValue instanceof Array) { componentItem.propValue.forEach(filterItem => { if (filterItem.checkedFields.includes(state.viewId)) { state.linkJumpCurFilterFieldArray.push({ @@ -818,7 +818,7 @@ const init = viewItem => { const firstNode = state.linkJumpInfoArray[0] state.initState = true nextTick(() => { - linkJumpInfoTree.value.setCurrentKey(firstNode.sourceFieldId) + linkJumpInfoTree.value.setCurrentKey(firstNode?.sourceFieldId) nodeClick(firstNode) }) }) @@ -923,7 +923,7 @@ const getPanelViewList = dvId => { } // 增加过滤组件匹配 JSON.parse(rsp.data.bashComponentData).forEach(componentItem => { - if (componentItem.component === 'VQuery') { + if (componentItem.component === 'VQuery' && componentItem.propValue instanceof Array) { componentItem.propValue.forEach(filterItem => { state.currentLinkPanelViewArray.push({ id: filterItem.id,