From d690967f7e78c1dd9efaed1dd23d5bb5f76333bf Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 12 Jun 2023 09:54:29 +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 d81d86fa8..57b5f688e 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..9d8e729d0 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() + // }, 1000) + // } if (data) { this.chartConfig.param.topo = data this.change()