fix:处理chartDiagram 首次加载的问题

This commit is contained in:
zhangyu
2023-06-12 10:17:57 +08:00
parent fb769d45b4
commit 032a7def90
2 changed files with 9 additions and 6 deletions

View File

@@ -143,6 +143,9 @@ export default {
} }
getTopology(this.meta2dId).lock(1) getTopology(this.meta2dId).lock(1)
this.getNodesArr() this.getNodesArr()
if (this.meta2dId === 'rightBoxChartEdit') {
this.$refs.header.editMeta2d()
}
}) })
}) })
}, },
@@ -299,7 +302,7 @@ export default {
this.selectPens = pens this.selectPens = pens
this.modulesDiff(pens[0]) this.modulesDiff(pens[0])
this.$refs.meta2dProps && (this.$refs.meta2dProps.isUpdate = true) this.$refs.meta2dProps && (this.$refs.meta2dProps.isUpdate = true)
}, 600) }, 200)
}, },
topoClick (params, e) { // 点击节点 topoClick (params, e) { // 点击节点
if (!params.pen && this.$refs.meta2dProps) { if (!params.pen && this.$refs.meta2dProps) {

View File

@@ -502,11 +502,11 @@ export default {
}, },
topologyDialogChange (flag, data) { topologyDialogChange (flag, data) {
this.topologyDialog = flag this.topologyDialog = flag
if (flag) { // if (flag) {
setTimeout(() => { // setTimeout(() => {
this.$refs.rightBoxChartEdit.$refs.header.editMeta2d() // this.$refs.rightBoxChartEdit.$refs.header.editMeta2d()
}, 500) // }, 500)
} // }
if (data) { if (data) {
this.chartConfig.param.topo = data this.chartConfig.param.topo = data
this.change() this.change()