Authored by qinchao

mysql 检测mha

... ... @@ -159,9 +159,14 @@
if(model.serverNode){
var colorBadge="#4169E1";
var color_Tag="#5bc0de";
var colorBadge=color_Tag;
var colorHealthy=color_Tag;
if(model.badge=="crash"){
colorBadge= "#D1841C";//"#F90426";
// colorBadge= "#D1841C";//"#F90426";
}
if(model.healthy!="healthy"){
colorHealthy="#D1841C";//"#d9534f";
}
var body = Util.createDOM('<div class="widget-content" style="height: 100%;padding: 0px;border:0px"></div>');
... ... @@ -196,7 +201,7 @@
+'</div>');
if(model.badge!="crash"){
var healthyTag=Util.createDOM('<span class="badge" style="background-color:green;font-weight:normal;margin-left:3px;">healthy</span>');
var healthyTag=Util.createDOM('<span class="badge" style="background-color:'+colorHealthy+';font-weight:normal;margin-left:3px;">'+model.healthy+'</span>');
tags.appendChild(healthyTag);
}
content.appendChild(tags);
... ...