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
47ac2c6624a5a9ab0fb707a03acce31b2326f324
1 parent
82415f7b
pch5 elb添加blk
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
32 deletions
monitor-ui-web/src/main/webapp/jsp/pch5Switch/pch5switch.jsp
monitor-ui-web/src/main/webapp/jsp/pch5Switch/pch5switch.jsp
View file @
47ac2c6
...
...
@@ -329,7 +329,12 @@
container_az2
.
add
(
newNode
(
scene
,
appNodeX
+
100
+
margin_left_container
,
appNodeY
+
180
,
1
,
1
));
//右上
var
prod_elb
=
newNode
(
scene
,
appNodeX
+
155
,
appNodeY
+
50
,
appNodeW
,
appNodeH
,
'prod_elb'
);
var
prod_elb
=
newNode
(
scene
,
appNodeX
+
150
,
appNodeY
+
50
,
appNodeW
,
appNodeH
,
'prod_elb'
);
var
blk_elb
=
newNode
(
scene
,
appNodeX
+
290
,
appNodeY
+
50
,
appNodeW
,
appNodeH
,
'blk_elb'
);
var
elbArray
=
new
Array
();
elbArray
.
push
(
prod_elb
);
elbArray
.
push
(
blk_elb
);
//所有az1机器
if
(
respData
.
az1Ips
){
...
...
@@ -339,9 +344,11 @@
});
if
(
respData
.
inAz1
){
var
link
=
newLink
(
scene
,
prod_elb
,
container_az1
,
""
);
link
.
arrowsRadius
=
10
;
link
.
strokeColor
=
'0,250,0'
;
for
(
var
i
=
0
;
i
<
elbArray
.
length
;
i
++
){
var
link
=
newLink
(
scene
,
elbArray
[
i
],
container_az1
,
""
);
link
.
arrowsRadius
=
10
;
link
.
strokeColor
=
'0,250,'
+
(
i
*
250
);
}
}
}
...
...
@@ -353,36 +360,14 @@
});
if
(
respData
.
inAz2
){
var
link
=
newLink
(
scene
,
prod_elb
,
container_az2
,
""
);
link
.
arrowsRadius
=
10
;
link
.
strokeColor
=
'0,250,0'
;
for
(
var
i
=
0
;
i
<
elbArray
.
length
;
i
++
){
var
link
=
newLink
(
scene
,
elbArray
[
i
],
container_az2
,
""
);
link
.
arrowsRadius
=
10
;
link
.
strokeColor
=
'0,250,'
+
(
i
*
250
);
}
}
}
return
;
var
data
=
resp
.
data
;
var
grayLinkColor
=
"220,20,60"
;
//线下店服务指向
if
(
'online'
==
data
.
storeService
){
var
link
=
newLink
(
scene
,
storeNginx
,
storeService
,
"online"
);
link
.
arrowsRadius
=
10
;
}
else
if
(
'gray'
==
data
.
storeService
){
var
link
=
newLink
(
scene
,
storeNginx
,
storeService_gray
,
"gray"
,
grayLinkColor
);
link
.
arrowsRadius
=
10
;
}
//延展服务指向
if
(
'online'
==
data
.
extendService
){
var
link
=
newLink
(
scene
,
storeNginx
,
extendService
,
"online"
);
link
.
arrowsRadius
=
10
;
}
else
if
(
'gray'
==
data
.
extendService
){
var
link
=
newLink
(
scene
,
storeNginx
,
extendService_gray
,
"gray"
,
grayLinkColor
);
link
.
arrowsRadius
=
10
;
}
}
// 节点
...
...
@@ -390,7 +375,7 @@
var
node
=
new
JTopo
.
Node
(
text
);
node
.
setLocation
(
x
,
y
);
node
.
setSize
(
w
,
h
);
if
(
"prod_elb"
==
text
||
"gray_elb"
==
text
){
if
(
text
!=
null
&&
text
.
indexOf
(
"elb"
)
>=
0
){
node
.
setImage
(
contextPath
+
'img/pstn/cloud.png'
,
true
);
node
.
textPosition
=
'Middle_Center'
;
// 文字居中
}
else
if
(
text
!=
null
&&
text
.
length
>
0
){
...
...
Please
register
or
login
to post a comment