Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
smart
Commits
5acac2d3
Commit
5acac2d3
authored
Apr 01, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.0.1 修复选择节点之后 流量查询失败的原因
parent
5d29144b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
README.md
README.md
+5
-0
app.component.ts
src/main/webapp/app/app.component.ts
+1
-0
ne-topology.component.ts
...bapp/app/netTopology/ne-topology/ne-topology.component.ts
+2
-3
No files found.
README.md
View file @
5acac2d3
...
@@ -35,3 +35,7 @@ Module ng g module my-module
...
@@ -35,3 +35,7 @@ Module ng g module my-module
效能分析 effectAnalysis
效能分析 effectAnalysis
日志分析 logAnalysis
日志分析 logAnalysis
业务配置 bConfig
业务配置 bConfig
版本更新:
v2.0.1 修复选择节点之后 流量查询不出来
\ No newline at end of file
src/main/webapp/app/app.component.ts
View file @
5acac2d3
...
@@ -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"
)
}
}
}
}
src/main/webapp/app/netTopology/ne-topology/ne-topology.component.ts
View file @
5acac2d3
...
@@ -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
);
}
}
)
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment