Authored by qinchao

mysql 检测mha

... ... @@ -153,22 +153,22 @@
function drawHtml2(cfg) {
var model = cfg.model;
var container = Util.createDOM('<div class="node-container"></div>');
if(model.serverNode){
var color_Tag="#5bc0de";
var color_Tag="#337ab7";
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";
//colorHealthy="#D1841C";//"#d9534f";
}
var container = Util.createDOM('<div class="node-container" style="border-style:'+model.borderStyle+';"></div>');
if(model.serverNode){
var body = Util.createDOM('<div class="widget-content" style="height: 100%;padding: 0px;border:0px"></div>');
var header=Util.createDOM('<div style="margin:0px;border:0px;"></div>');
var content = Util.createDOM('<div style="margin:0px;border:0px;padding: 5px;"></div>');
... ... @@ -182,7 +182,7 @@
headBtnDiv.appendChild(btn_info);
header.appendChild(headBtnDiv);
//if(model.seqNO==1){
var t=Util.createDOM('<div style="height:30px;background-color:#E5E5E5;padding: 5px 10px;border-bottom: 1px solid #999"><span style="font-size:12px;font-weight:bold;">'+model.label+'</span></div>');
var t=Util.createDOM('<div style="height:30px;background-color:#E5E5E5;padding: 5px 10px;border-bottom: 1px '+model.borderStyle+' #999"><span style="font-size:12px;font-weight:bold;">'+model.label+'</span></div>');
header.appendChild(t);
//}
... ...