From 032a7def90c7d69b5fb9b50244c8d39d4f7d767c Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 12 Jun 2023 10:17:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A4=84=E7=90=86chartDiagram=20?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=8A=A0=E8=BD=BD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/project/meta2d/js/meta2dMainCalc.js | 5 ++++- .../common/rightBox/chart/otherChartConfig.vue | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js b/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js index bad91d891..1b7a1825c 100644 --- a/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js +++ b/nezha-fronted/src/components/common/project/meta2d/js/meta2dMainCalc.js @@ -143,6 +143,9 @@ export default { } getTopology(this.meta2dId).lock(1) this.getNodesArr() + if (this.meta2dId === 'rightBoxChartEdit') { + this.$refs.header.editMeta2d() + } }) }) }, @@ -299,7 +302,7 @@ export default { this.selectPens = pens this.modulesDiff(pens[0]) this.$refs.meta2dProps && (this.$refs.meta2dProps.isUpdate = true) - }, 600) + }, 200) }, topoClick (params, e) { // 点击节点 if (!params.pen && this.$refs.meta2dProps) { diff --git a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue index 7e18e993b..6d7557c38 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue @@ -502,11 +502,11 @@ export default { }, topologyDialogChange (flag, data) { this.topologyDialog = flag - if (flag) { - setTimeout(() => { - this.$refs.rightBoxChartEdit.$refs.header.editMeta2d() - }, 500) - } + // if (flag) { + // setTimeout(() => { + // this.$refs.rightBoxChartEdit.$refs.header.editMeta2d() + // }, 500) + // } if (data) { this.chartConfig.param.topo = data this.change()