Authored by zhaoqi

降级服务配置页面

... ... @@ -12,7 +12,7 @@ public class DegradeInfoReq extends PageRequest {
private String configName;
private String level;
private Integer level;
private String switchOn;
... ...
... ... @@ -70,7 +70,7 @@
<div id="breadcrumb">
<a href="#" title="Go to Home" class="tip-bottom"><i
class="icon-home"></i> Home</a> <a href="#" class="current">监控对象</a>
class="icon-home"></i> Home</a> <a href="#" class="current">降级服务配置</a>
</div>
<div class="container-fluid">
... ... @@ -136,20 +136,27 @@
},
columns: [{
title: "配置名称",
width:"20%",
width:"25%",
align:"left",
field: "configName"
}, {
title: "配置描述",
width:"20%",
width:"35%",
field: "configDesc"
}, {
title: "级别",
width:"10%",
field: "level"
field: "level",
formatter : function(value, rowData, rowIndex) {
if(value == 1){
return '一级';
}else if(value == 2){
return '二级';
}
},
}, {
title: "图片",
width:"20%",
width:"10%",
field: "img"
}, {
title: "开关",
... ... @@ -164,7 +171,7 @@
},
}, {
title: "操作",
width:"20%",
width:"10%",
formatter: function (value, rowData, rowIndex) {
var div = $("<div>");
//修改
... ...
... ... @@ -22,6 +22,7 @@ innerHTML += "<li id='li_redisInfo'><a id='li_redisInfo_a' href=''><i class='ico
innerHTML += "<li id='li_nginxview'><a id='li_nginxview_a' href=''><i class='icon icon-th'></i> <span>Nginx监控</span></a></li>";
innerHTML += "<li id='li_nginxSync'><a id='li_nginxSync_a' href=''><i class='icon icon-th'></i> <span>Nginx配置同步</span></a></li>";
innerHTML += "<li id='li_dns_monitor'><a id='li_dns_monitor_a' href=''><i class='icon icon-th'></i> <span>DNS反劫持监控</span></a></li>";
innerHTML += "<li id='li_dns_monitor'><a id='li_degrade_info_a' href=''><i class='icon icon-th'></i> <span>降级服务配置</span></a></li>";
/*Hystrix*/
innerHTML += "<li class='submenu' id='li_hystrix'><a id='a_hystrix' href='#'><i class='icon icon-th-list'></i> <span>Hystrix</span><span class='label'>2</span></a>";
... ... @@ -85,6 +86,7 @@ document.getElementById("li_dns_monitor_a").setAttribute("href", path + "/dns_mo
document.getElementById("li_nginxSync_a").setAttribute("href", path + "/nginxSync/toNginxSync");
document.getElementById("li_om_a").setAttribute("href", path + "/project/toOm");
document.getElementById("li_node_a").setAttribute("href", path + "/project/toNode");
document.getElementById("li_degrade_info_a").setAttribute("href", path + "/degrade/info");
function getUrlBasePath() {
... ...