style: 拓扑图 细节优化

This commit is contained in:
zhangyu
2020-09-04 10:04:41 +08:00
parent dd684bfe93
commit 1c7f2689c8
5 changed files with 26 additions and 12 deletions

View File

@@ -601,7 +601,7 @@
})
},
//工具栏点击后显示对应内容
popDataShowUpdate(key){
popDataShowUpdate(key,flag){//key 显示对应的弹窗 flag是否不显示工具栏
// console.log(key);
this.popDataShow={
endpoint:false,
@@ -626,6 +626,9 @@
this.popDataShow[key]=true;
})
}
if(this.selNodeId&&!flag){
this.setPopPosition(this.selNodeId);
}
},
//拓扑图放大缩小
zoomChange(num){
@@ -653,7 +656,7 @@
console.log(params);
this_.networkPopClose();
if(!params.edges.length&&!params.nodes.length){
this_.popDataShowUpdate();
this_.popDataShowUpdate('',true);
}
});