调用接口
This commit is contained in:
@@ -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){
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user