Authored by qinchao

pch5 elb添加blk

... ... @@ -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){
... ...