From d6b337f41ffaa2bab15c77503b0bae06d9f4c750 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Sun, 30 Jun 2024 22:41:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E6=B7=BB=E5=8A=A0=E6=88=96=E7=A7=BB=E5=87=BA?= =?UTF-8?q?tab=E7=BB=84=E4=BB=B6=E4=BC=9A=E5=AF=BC=E8=87=B4=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E4=B8=BA=E5=A4=B1=E6=95=88=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/de-tabs/Component.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/core-frontend/src/custom-component/de-tabs/Component.vue b/core/core-frontend/src/custom-component/de-tabs/Component.vue index 8a00528aaf..d284de3391 100644 --- a/core/core-frontend/src/custom-component/de-tabs/Component.vue +++ b/core/core-frontend/src/custom-component/de-tabs/Component.vue @@ -119,6 +119,7 @@ import { canvasChangeAdaptor, findComponentIndexById } from '@/utils/canvasUtils import DeCustomTab from '@/custom-component/de-tabs/DeCustomTab.vue' import DePreview from '@/components/data-visualization/canvas/DePreview.vue' import { useEmitt } from '@/hooks/web/useEmitt' +import { getPanelAllLinkageInfo } from '@/api/visualization/linkage' const dvMainStore = dvMainStoreWithOut() const { tabMoveInActiveId, bashMatrixInfo, editMode, mobileInPc } = storeToRefs(dvMainStore) const tabComponentRef = ref(null) @@ -255,6 +256,13 @@ function handleCommand(command) { } } +const reloadLinkage = () => { + // 刷新联动信息 + getPanelAllLinkageInfo(dvInfo.value.id).then(rsp => { + dvMainStore.setNowPanelTrackInfo(rsp.data) + }) +} + const componentMoveIn = component => { element.value.propValue.forEach((tabItem, index) => { if (editableTabsValue.value === tabItem.name) { @@ -279,6 +287,8 @@ const componentMoveIn = component => { } } }) + + reloadLinkage() } const componentMoveOut = component => { @@ -288,6 +298,7 @@ const componentMoveOut = component => { dvMainStore.setCurComponent({ component: null, index: null }) // 主画布中添加 eventBus.emit('moveOutFromTab-canvas-main', component) + reloadLinkage() } const moveActive = computed(() => {