Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
b9fc74d8dee28668b2321a0b1e92042160eba624
1 parent
80ac0580
修改bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
monitor-ui-web/src/main/webapp/jsp/host/hostTopoList.jsp
monitor-ui-web/src/main/webapp/jsp/host/hostTopoList.jsp
View file @
b9fc74d
...
...
@@ -59,11 +59,6 @@
</script>
<script
type=
"text/javascript"
>
var
nodeStyle
=
{
fill
:
"#00A263"
,
lineWidth
:
1
};
// 第一步:获取数据
var
data
=
[];
if
(
$
{
antvData
}){
...
...
@@ -92,11 +87,11 @@
var
tree
=
new
G6
.
Tree
({
id
:
"hostListTopoDiv"
,
// 此处替换容器id
modes
:{
/*
modes:{
default: [
'dragBlank', 'spreadout', 'buttonPointer'
]
},
},
*/
fitView
:
'autoSize'
,
// 自动缩放 autoSize autoZoom
layoutCfg
:
{
// direction: 'LR', // 方向(LR/RL/H/TB/BT/V)
...
...
@@ -150,6 +145,10 @@
//展示了下级节点,并且下级节点为主机信息
if
(
model
.
children
[
0
].
nodeType
.
length
>
0
){
reloadCanvas
(
model
,
tree
,[]);
}
else
{
//重绘制,tree折叠时,在加载别的节点,显示出现问题
tree
.
autoSize
();
tree
.
refresh
();
}
}
});
...
...
Please
register
or
login
to post a comment