fix:修改topology图编辑缩放时 缩放显示没有相应变化的bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user