...
|
...
|
@@ -63,18 +63,17 @@ function getColumns(){ |
|
|
var ips = "";
|
|
|
for(var index = 0;index < instances.length;index++){
|
|
|
var healthCss=' style="background-color: #5bc0de;font-weight:normal;" ';
|
|
|
var runningStatusMessage = ' <span class="badge" style="background-color: #f37b1d;font-weight:normal;">健康</span>';
|
|
|
var runningStatusMessage = ' <span class="badge" style="background-color: #337ab7;font-weight:normal;">健康</span>';
|
|
|
if("Healthy"!=instances[index].runningStatus){
|
|
|
healthCss=' style="background-color: #5bc0de;font-weight:normal;" ';
|
|
|
runningStatusMessage=' <span class="badge" style="background-color: #dd514c;font-weight:normal;">异常</span>';
|
|
|
// runningStatusMessage='<span class="glyphicon glyphicon-align-left">fdf</span>';
|
|
|
healthCss=' style="background-color: #DD514D;font-weight:normal;" ';
|
|
|
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 protectedB = instances[index].protected;
|
|
|
var canScaleMessage='' ;
|
|
|
if(protectedB != null && protectedB != undefined){
|
|
|
if(protectedB){
|
|
|
canScaleMessage = ' <a href="#" title="该主机免于缩减"><span class="badge" style="background-color:#5bc0de;font-weight:normal;">免</span></a>';
|
|
|
canScaleMessage = ' <a href="#" title="该主机免于缩减"><span class="badge" style="background-color:#337ab7;font-weight:normal;">免</span></a>';
|
|
|
}else{
|
|
|
canScaleMessage = ' ';
|
|
|
}
|
...
|
...
|
|