Commit 1834b50e authored by wangqinghua's avatar wangqinghua

update

parent bd3ee8f8
...@@ -120,7 +120,7 @@ export class LineComponent implements OnInit { ...@@ -120,7 +120,7 @@ export class LineComponent implements OnInit {
this.totalNum = res.data.totalNum; this.totalNum = res.data.totalNum;
this.inList = res.data.data; this.inList = res.data.data;
this.inList.forEach(e=>{ //进口流量回显 this.inList.forEach(e=>{ //进口流量回显
if(e.itemId = this.itemId[0]){ if(e.itemId == this.itemId[0]){
e.checked = true; e.checked = true;
} }
}) })
...@@ -143,7 +143,7 @@ export class LineComponent implements OnInit { ...@@ -143,7 +143,7 @@ export class LineComponent implements OnInit {
this.totalNum = res.data.totalNum; this.totalNum = res.data.totalNum;
this.outList = res.data.data; this.outList = res.data.data;
this.outList.forEach(e=>{ this.outList.forEach(e=>{
if(e.itemId = this.itemId[1]){ //出口流量回显 if(e.itemId == this.itemId[1]){ //出口流量回显
e.checked = true; e.checked = true;
} }
}) })
......
...@@ -84,7 +84,6 @@ TopologyPanel.prototype.loadTopology = function (response, topologyGuid, backImg ...@@ -84,7 +84,6 @@ TopologyPanel.prototype.loadTopology = function (response, topologyGuid, backImg
TopologyPanel.prototype.loadTopologyByJson = function (topologyJson, backImg) { TopologyPanel.prototype.loadTopologyByJson = function (topologyJson, backImg) {
try { try {
JTopo.replaceStageWithJson(topologyJson) JTopo.replaceStageWithJson(topologyJson)
var timer = $interval(function(){},100,10);
if (editor.stage && editor.scene && editor.scene.childs && editor.scene.childs.length > 0) { if (editor.stage && editor.scene && editor.scene.childs && editor.scene.childs.length > 0) {
editor.stage.centerAndZoom() editor.stage.centerAndZoom()
console.log(editor.utils.getAllNodes()[0]); console.log(editor.utils.getAllNodes()[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment