Commit 5acac2d3 authored by wangqinghua's avatar wangqinghua

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

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