fix:topo 添加移动 以及选中的相关函数
This commit is contained in:
28
nezha-fronted/src/components/common/project/topologyMixin.js
Normal file
28
nezha-fronted/src/components/common/project/topologyMixin.js
Normal 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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user