fix:处理chartDiagram 首次加载的问题
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user