From 29080e0b89a5e32f480f6e08690db3200b87da9c Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 20 Jan 2022 18:31:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=86=E4=BA=AB=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E6=9D=BF=E8=81=94=E5=8A=A8=E4=BF=A1=E6=81=AF=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/panel/GrantAuth/shareTree.vue | 19 ++++++++++++++++++- frontend/src/views/panel/enshrine/index.vue | 10 ++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/panel/GrantAuth/shareTree.vue b/frontend/src/views/panel/GrantAuth/shareTree.vue index d892a044a8..f4e5f77be0 100644 --- a/frontend/src/views/panel/GrantAuth/shareTree.vue +++ b/frontend/src/views/panel/GrantAuth/shareTree.vue @@ -52,6 +52,8 @@ import { loadTree, loadShareOutTree, removeShares } from '@/api/panel/share' import { uuid } from 'vue-uuid' import { get } from '@/api/panel/panel' import bus from '@/utils/bus' +import { getPanelAllLinkageInfo } from '@/api/panel/linkage' +import { queryPanelJumpInfo } from '@/api/panel/linkJump' export default { name: 'ShareTree', props: { @@ -106,8 +108,15 @@ export default { get('panel/group/findOne/' + data.id).then(response => { this.$store.commit('setComponentData', this.resetID(JSON.parse(response.data.panelData))) this.$store.commit('setCanvasStyle', JSON.parse(response.data.panelStyle)) - this.$store.dispatch('panel/setPanelInfo', data) + // 刷新联动信息 + getPanelAllLinkageInfo(data.id).then(rsp => { + this.$store.commit('setNowPanelTrackInfo', rsp.data) + }) + // 刷新跳转信息 + queryPanelJumpInfo(data.id).then(rsp => { + this.$store.commit('setNowPanelJumpInfo', rsp.data) + }) bus.$emit('set-panel-show-type', 1) }) this.$refs['botTree'].setCurrentKey(null) @@ -118,6 +127,14 @@ export default { this.$store.commit('setCanvasStyle', JSON.parse(response.data.panelStyle)) this.$store.dispatch('panel/setPanelInfo', data) + // 刷新联动信息 + getPanelAllLinkageInfo(data.id).then(rsp => { + this.$store.commit('setNowPanelTrackInfo', rsp.data) + }) + // 刷新跳转信息 + queryPanelJumpInfo(data.id).then(rsp => { + this.$store.commit('setNowPanelJumpInfo', rsp.data) + }) bus.$emit('set-panel-show-type', 2) }) this.$refs['topTree'].setCurrentKey(null) diff --git a/frontend/src/views/panel/enshrine/index.vue b/frontend/src/views/panel/enshrine/index.vue index 590588f67e..95ef48eb73 100644 --- a/frontend/src/views/panel/enshrine/index.vue +++ b/frontend/src/views/panel/enshrine/index.vue @@ -29,6 +29,8 @@ import { deleteEnshrine, enshrineList } from '@/api/panel/enshrine' import { uuid } from 'vue-uuid' import { get } from '@/api/panel/panel' import bus from '@/utils/bus' +import { getPanelAllLinkageInfo } from '@/api/panel/linkage' +import { queryPanelJumpInfo } from '@/api/panel/linkJump' export default { name: 'Enshrine', data() { @@ -55,6 +57,14 @@ export default { name: row.name } this.$store.dispatch('panel/setPanelInfo', data) + // 刷新联动信息 + getPanelAllLinkageInfo(data.id).then(rsp => { + this.$store.commit('setNowPanelTrackInfo', rsp.data) + }) + // 刷新跳转信息 + queryPanelJumpInfo(data.id).then(rsp => { + this.$store.commit('setNowPanelJumpInfo', rsp.data) + }) bus.$emit('set-panel-show-type', 0) }) },