...
|
...
|
@@ -62,18 +62,18 @@ function getColumns(){ |
|
|
}
|
|
|
var ips = "";
|
|
|
for(var index = 0;index < instances.length;index++){
|
|
|
var healthCss=' style="background-color: #337ab7;font-weight:normal;" ';
|
|
|
var runningStatusMessage = ' <span class="badge" style="background-color: #5ba8de;font-weight:normal;">健康</span>';
|
|
|
var healthCss=' style="background-color: #5bc0de;font-weight:normal;" ';
|
|
|
var runningStatusMessage = ' <span class="badge" style="background-color: #337ab7;font-weight:normal;">健康</span>';
|
|
|
if("Healthy"!=instances[index].runningStatus){
|
|
|
healthCss=' style="background-color: #DD514D;font-weight:normal;" ';
|
|
|
runningStatusMessage=' <span class="badge" style="background-color: #5ba8de;font-weight:normal;">异常</span>';
|
|
|
runningStatusMessage=' <span class="badge" style="background-color: #337ab7;font-weight:normal;">异常</span>';
|
|
|
}
|
|
|
/* var test=' <span class="badge" style="background-color: #DD514D;font-weight:normal;">异常</span>';*/
|
|
|
/*var test=' <span class="badge" style="background-color: #5bc0de;font-weight:normal;">异常</span>';*/
|
|
|
var protectedB = instances[index].protected;
|
|
|
var canScaleMessage='' ;
|
|
|
if(protectedB != null && protectedB != undefined){
|
|
|
if(protectedB){
|
|
|
canScaleMessage = ' <a href="#" title="该主机免于缩减"><span class="badge" style="background-color:#337ab7;font-weight:normal;">免</span></a>';
|
|
|
canScaleMessage = ' <a href="#" title="该主机免于缩减"><span class="badge" style="background-color:#5bc0de;font-weight:normal;">免</span></a>';
|
|
|
}else{
|
|
|
canScaleMessage = ' ';
|
|
|
}
|
...
|
...
|
@@ -173,7 +173,7 @@ function getColumns(){ |
|
|
+ rowData.desired + "\',\'"
|
|
|
+ rowData.min + "\',\'"
|
|
|
+ rowData.max + "\')\">").addClass(
|
|
|
"btn btn-xs btn-primary").html("扩充或缩减")
|
|
|
"btn btn-xs btn-info").html("扩充或缩减")
|
|
|
.appendTo(div);
|
|
|
return div;
|
|
|
},
|
...
|
...
|
|