Authored by qinchao

mysql 检测mha

@@ -159,9 +159,14 @@ @@ -159,9 +159,14 @@
159 159
160 160
161 if(model.serverNode){ 161 if(model.serverNode){
162 - var colorBadge="#4169E1"; 162 + var color_Tag="#5bc0de";
  163 + var colorBadge=color_Tag;
  164 + var colorHealthy=color_Tag;
163 if(model.badge=="crash"){ 165 if(model.badge=="crash"){
164 - colorBadge= "#D1841C";//"#F90426"; 166 + // colorBadge= "#D1841C";//"#F90426";
  167 + }
  168 + if(model.healthy!="healthy"){
  169 + colorHealthy="#D1841C";//"#d9534f";
165 } 170 }
166 171
167 var body = Util.createDOM('<div class="widget-content" style="height: 100%;padding: 0px;border:0px"></div>'); 172 var body = Util.createDOM('<div class="widget-content" style="height: 100%;padding: 0px;border:0px"></div>');
@@ -196,7 +201,7 @@ @@ -196,7 +201,7 @@
196 +'</div>'); 201 +'</div>');
197 202
198 if(model.badge!="crash"){ 203 if(model.badge!="crash"){
199 - var healthyTag=Util.createDOM('<span class="badge" style="background-color:green;font-weight:normal;margin-left:3px;">healthy</span>'); 204 + var healthyTag=Util.createDOM('<span class="badge" style="background-color:'+colorHealthy+';font-weight:normal;margin-left:3px;">'+model.healthy+'</span>');
200 tags.appendChild(healthyTag); 205 tags.appendChild(healthyTag);
201 } 206 }
202 content.appendChild(tags); 207 content.appendChild(tags);