Authored by qinchao

伸缩组扩容:显示样式

@@ -180,7 +180,7 @@ @@ -180,7 +180,7 @@
180 </div> 180 </div>
181 181
182 <script src="<%=basePath%>script/common/genarate_left_panel.js"></script> 182 <script src="<%=basePath%>script/common/genarate_left_panel.js"></script>
183 -<script src="<%=basePath%>script/autoscaling/autoscaling_new.js?v=2"></script> 183 +<script src="<%=basePath%>script/autoscaling/autoscaling_new.js?v=3"></script>
184 <script> 184 <script>
185 $("#li_manager").addClass("active open"); 185 $("#li_manager").addClass("active open");
186 $("#li_autoscaling").addClass("active"); 186 $("#li_autoscaling").addClass("active");
@@ -63,18 +63,17 @@ function getColumns(){ @@ -63,18 +63,17 @@ function getColumns(){
63 var ips = ""; 63 var ips = "";
64 for(var index = 0;index < instances.length;index++){ 64 for(var index = 0;index < instances.length;index++){
65 var healthCss=' style="background-color: #5bc0de;font-weight:normal;" '; 65 var healthCss=' style="background-color: #5bc0de;font-weight:normal;" ';
66 - var runningStatusMessage = '&nbsp;&nbsp;<span class="badge" style="background-color: #f37b1d;font-weight:normal;">健康</span>'; 66 + var runningStatusMessage = '&nbsp;&nbsp;<span class="badge" style="background-color: #337ab7;font-weight:normal;">健康</span>';
67 if("Healthy"!=instances[index].runningStatus){ 67 if("Healthy"!=instances[index].runningStatus){
68 - healthCss=' style="background-color: #5bc0de;font-weight:normal;" ';  
69 - runningStatusMessage='&nbsp;&nbsp;<span class="badge" style="background-color: #dd514c;font-weight:normal;">异常</span>';  
70 - // runningStatusMessage='<span class="glyphicon glyphicon-align-left">fdf</span>'; 68 + healthCss=' style="background-color: #DD514D;font-weight:normal;" ';
  69 + runningStatusMessage='&nbsp;&nbsp;<span class="badge" style="background-color: #337ab7;font-weight:normal;">异常</span>';
71 } 70 }
72 - 71 +/* var test=' <span class="badge" style="background-color: #DD514D;font-weight:normal;">异常</span>';*/
73 var protectedB = instances[index].protected; 72 var protectedB = instances[index].protected;
74 var canScaleMessage='' ; 73 var canScaleMessage='' ;
75 if(protectedB != null && protectedB != undefined){ 74 if(protectedB != null && protectedB != undefined){
76 if(protectedB){ 75 if(protectedB){
77 - canScaleMessage = '&nbsp;&nbsp;<a href="#" title="该主机免于缩减"><span class="badge" style="background-color:#5bc0de;font-weight:normal;">免</span></a>'; 76 + canScaleMessage = '&nbsp;&nbsp;<a href="#" title="该主机免于缩减"><span class="badge" style="background-color:#337ab7;font-weight:normal;">免</span></a>';
78 }else{ 77 }else{
79 canScaleMessage = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'; 78 canScaleMessage = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
80 } 79 }