fix:修改topology图编辑缩放时 缩放显示没有相应变化的bug

This commit is contained in:
zhangyu
2021-03-29 15:50:52 +08:00
parent 78c8ed98a1
commit faa3690f80
4 changed files with 16 additions and 10 deletions

View File

@@ -81,7 +81,7 @@
</div>
<topology-top-tool
v-if="editTopologyFlag"
v-if="editTopologyFlag&&toolShow.topTool"
:selection.sync="props"
@del="delPen"
:index="topologyIndex"
@@ -460,6 +460,7 @@ export default {
toolShow: {
node: true,
attr: true,
topTool: true,
nodeCord: [0, 0],
attrCord: [0, 0],
height: 500
@@ -1163,12 +1164,14 @@ export default {
},
onMessage (event, data, e) {
// console.log('onMessage',event,data);
console.log('onMessage', event, data);
// console.log(getTopology(this.topologyIndex))
// this.notModuleIDArr=[];
this.toolShow.attr = false
this.$nextTick(()=>{
this.toolShow.topTool = false
this.$nextTick(() => {
this.toolShow.attr = true
this.toolShow.topTool = true
})
if (data) {
this.notModuleIDArr.forEach(item => {
@@ -1418,7 +1421,7 @@ export default {
}
case 'scale': {
if (this.$refs.topTool) {
this.$refs.topTool.option.scale = data
this.$refs.topTool.scaleNum = parseInt(data * 100)
}
break
}