Authored by qinchao

伸缩组扩容:显示样式

... ... @@ -180,7 +180,7 @@
</div>
<script src="<%=basePath%>script/common/genarate_left_panel.js"></script>
<script src="<%=basePath%>script/autoscaling/autoscaling_new.js?v=2"></script>
<script src="<%=basePath%>script/autoscaling/autoscaling_new.js?v=3"></script>
<script>
$("#li_manager").addClass("active open");
$("#li_autoscaling").addClass("active");
... ...
... ... @@ -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 = '&nbsp;&nbsp;<span class="badge" style="background-color: #f37b1d;font-weight:normal;">健康</span>';
var runningStatusMessage = '&nbsp;&nbsp;<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='&nbsp;&nbsp;<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='&nbsp;&nbsp;<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 = '&nbsp;&nbsp;<a href="#" title="该主机免于缩减"><span class="badge" style="background-color:#5bc0de;font-weight:normal;">免</span></a>';
canScaleMessage = '&nbsp;&nbsp;<a href="#" title="该主机免于缩减"><span class="badge" style="background-color:#337ab7;font-weight:normal;">免</span></a>';
}else{
canScaleMessage = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
}
... ...