Commit 5acac2d3 authored by wangqinghua's avatar wangqinghua

2.0.1 修复选择节点之后 流量查询失败的原因

parent 5d29144b
......@@ -35,3 +35,7 @@ Module ng g module my-module
效能分析 effectAnalysis
日志分析 logAnalysis
业务配置 bConfig
版本更新:
v2.0.1 修复选择节点之后 流量查询不出来
\ No newline at end of file
......@@ -13,5 +13,6 @@ export class AppComponent {
event.preventDefault();
event.stopPropagation();
}
console.log("智能运行监管平台:v2.0.1 update By 2019-04-01")
}
}
......@@ -147,7 +147,6 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
myCanvas.width = myCanvas.width * ratio;
myCanvas.height = myCanvas.height * ratio;
context.scale(ratio,ratio);
// context.translate(-(canvasWidth/2),-(canvasHeight/2));
editor.loadTopology('','', 'img/backimg.png',canvasWidth,canvasHeight);
}
......@@ -276,14 +275,14 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
this.smartSelectRadioGroup.showAddModal('添加设备');
}
//获取设备图片
//获取节点信息
setImg(e) {
const data = {
hostIds:[e]
}
this.topologySer.findByHostIdOrWeb(data).subscribe(
(res)=>{
editor.utils.addNode(res.data[0].url, res.data[0].name,e[0]);
editor.utils.addNode(res.data[0].url, res.data[0].name,res.data[0].hostId);
}
)
}
......
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