fix:topo 添加移动 以及选中的相关函数

This commit is contained in:
zhangyu
2022-08-08 17:24:24 +08:00
parent cd353024f3
commit 7a837b8f47
3 changed files with 55 additions and 21 deletions

View File

@@ -0,0 +1,28 @@
import { getTopology } from '@/components/common/js/common'
export default {
methods: {
pensActive (pens) {
console.log(pens)
if (!pens.length) return
this.props = {
line: null,
multi: false,
expand: this.props.expand,
nodes: null,
locked: pens[0].locked,
pen: pens[0],
pens: null
}
},
topTranslate () {
this.moduleId = ''
this.showNodeTools('')
this.popDataShowUpdate('', false)
if (!this.editTopologyFlag) {
getTopology(this.topologyIndex)
}
this.getNodesArr()
}
}
}