调用接口

This commit is contained in:
zhangyu
2020-08-24 15:08:34 +08:00
parent 4f7929bda4
commit d5b26e793d
2 changed files with 8 additions and 8 deletions

View File

@@ -231,6 +231,7 @@
let nodes=[...this.nodesArray]; let nodes=[...this.nodesArray];
let edges=[...this.edgesArray]; let edges=[...this.edgesArray];
console.log(nodes,edges); console.log(nodes,edges);
this.editVisNetwork=false;
}, },
//拓扑图方法 //拓扑图方法
init(type){ init(type){

View File

@@ -183,14 +183,13 @@
}, },
getNetworkData(n){ getNetworkData(n){
this.topologyLoading=true; this.topologyLoading=true;
setTimeout(()=>{ // this.$get('/project/topo',{projectId:n.id}).then(res=>{
this.edgesArray=[]; // console.log(res);
this.nodesArray=[]; // setTimeout(()=>{
setTimeout(()=>{ // this.topologyLoading=false;
this.topologyLoading=false; // this.$refs['topology'].setNetworkData( this.edgesArray,this.nodesArray);
this.$refs['topology'].setNetworkData( this.edgesArray,this.nodesArray); // })
},1000) // })
},500)
}, },
editVisNetworkChange(flag){ editVisNetworkChange(flag){
this.editVisNetwork=flag; this.editVisNetwork=flag;