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) }) },