From 1fda6f9b8661e1338ef40ad9205adfad586501dc Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 10 Aug 2021 18:27:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E4=BC=98=E5=8C=96=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E6=9D=BF=E5=A4=9A=E8=A7=86=E5=9B=BE=E5=90=8C=E6=97=B6=E8=81=94?= =?UTF-8?q?=E5=8A=A8=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/components/Toolbar.vue | 7 ++++++- frontend/src/store/index.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/canvas/components/Toolbar.vue b/frontend/src/components/canvas/components/Toolbar.vue index 0d1dd44a03..a4e3f4e5c0 100644 --- a/frontend/src/components/canvas/components/Toolbar.vue +++ b/frontend/src/components/canvas/components/Toolbar.vue @@ -101,8 +101,9 @@ import { commonStyle, commonAttr } from '@/components/canvas/custom-component/co import eventBus from '@/components/canvas/utils/eventBus' import { deepCopy } from '@/components/canvas/utils/utils' import { panelSave } from '@/api/panel/panel' -import { saveLinkage } from '@/api/panel/linkage' +import { saveLinkage, getPanelAllLinkageInfo } from '@/api/panel/linkage' import bus from '@/utils/bus' + import { DEFAULT_COMMON_CANVAS_STYLE_STRING } from '@/views/panel/panel' @@ -325,6 +326,10 @@ export default { linkageInfo: this.targetLinkageInfo } saveLinkage(request).then(rsp => { + // 刷新联动信息 + getPanelAllLinkageInfo(this.$store.state.panel.panelInfo.id).then(rsp => { + this.$store.commit('setNowPanelTrackInfo', rsp.data) + }) this.cancelLinkageSettingStatus() }) }, diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index fcef0eab68..0b709d2cc1 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -161,7 +161,7 @@ const data = { // 添加联动 下钻 等过滤组件 addViewTrackFilter(state, data) { - console.log('联动信息', JSON.stringify(data)) + debugger const viewId = data.viewId const trackInfo = state.nowPanelTrackInfo for (let index = 0; index < state.componentData.length; index++) {