Authored by zhaoqi

降级服务配置页面

@@ -12,7 +12,7 @@ public class DegradeInfoReq extends PageRequest { @@ -12,7 +12,7 @@ public class DegradeInfoReq extends PageRequest {
12 12
13 private String configName; 13 private String configName;
14 14
15 - private String level; 15 + private Integer level;
16 16
17 private String switchOn; 17 private String switchOn;
18 18
@@ -70,7 +70,7 @@ @@ -70,7 +70,7 @@
70 70
71 <div id="breadcrumb"> 71 <div id="breadcrumb">
72 <a href="#" title="Go to Home" class="tip-bottom"><i 72 <a href="#" title="Go to Home" class="tip-bottom"><i
73 - class="icon-home"></i> Home</a> <a href="#" class="current">监控对象</a> 73 + class="icon-home"></i> Home</a> <a href="#" class="current">降级服务配置</a>
74 </div> 74 </div>
75 75
76 <div class="container-fluid"> 76 <div class="container-fluid">
@@ -136,20 +136,27 @@ @@ -136,20 +136,27 @@
136 }, 136 },
137 columns: [{ 137 columns: [{
138 title: "配置名称", 138 title: "配置名称",
139 - width:"20%", 139 + width:"25%",
140 align:"left", 140 align:"left",
141 field: "configName" 141 field: "configName"
142 }, { 142 }, {
143 title: "配置描述", 143 title: "配置描述",
144 - width:"20%", 144 + width:"35%",
145 field: "configDesc" 145 field: "configDesc"
146 }, { 146 }, {
147 title: "级别", 147 title: "级别",
148 width:"10%", 148 width:"10%",
149 - field: "level" 149 + field: "level",
  150 + formatter : function(value, rowData, rowIndex) {
  151 + if(value == 1){
  152 + return '一级';
  153 + }else if(value == 2){
  154 + return '二级';
  155 + }
  156 + },
150 }, { 157 }, {
151 title: "图片", 158 title: "图片",
152 - width:"20%", 159 + width:"10%",
153 field: "img" 160 field: "img"
154 }, { 161 }, {
155 title: "开关", 162 title: "开关",
@@ -164,7 +171,7 @@ @@ -164,7 +171,7 @@
164 }, 171 },
165 }, { 172 }, {
166 title: "操作", 173 title: "操作",
167 - width:"20%", 174 + width:"10%",
168 formatter: function (value, rowData, rowIndex) { 175 formatter: function (value, rowData, rowIndex) {
169 var div = $("<div>"); 176 var div = $("<div>");
170 //修改 177 //修改
@@ -22,6 +22,7 @@ innerHTML += "<li id='li_redisInfo'><a id='li_redisInfo_a' href=''><i class='ico @@ -22,6 +22,7 @@ innerHTML += "<li id='li_redisInfo'><a id='li_redisInfo_a' href=''><i class='ico
22 innerHTML += "<li id='li_nginxview'><a id='li_nginxview_a' href=''><i class='icon icon-th'></i> <span>Nginx监控</span></a></li>"; 22 innerHTML += "<li id='li_nginxview'><a id='li_nginxview_a' href=''><i class='icon icon-th'></i> <span>Nginx监控</span></a></li>";
23 innerHTML += "<li id='li_nginxSync'><a id='li_nginxSync_a' href=''><i class='icon icon-th'></i> <span>Nginx配置同步</span></a></li>"; 23 innerHTML += "<li id='li_nginxSync'><a id='li_nginxSync_a' href=''><i class='icon icon-th'></i> <span>Nginx配置同步</span></a></li>";
24 innerHTML += "<li id='li_dns_monitor'><a id='li_dns_monitor_a' href=''><i class='icon icon-th'></i> <span>DNS反劫持监控</span></a></li>"; 24 innerHTML += "<li id='li_dns_monitor'><a id='li_dns_monitor_a' href=''><i class='icon icon-th'></i> <span>DNS反劫持监控</span></a></li>";
  25 +innerHTML += "<li id='li_dns_monitor'><a id='li_degrade_info_a' href=''><i class='icon icon-th'></i> <span>降级服务配置</span></a></li>";
25 26
26 /*Hystrix*/ 27 /*Hystrix*/
27 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>"; 28 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 @@ -85,6 +86,7 @@ document.getElementById("li_dns_monitor_a").setAttribute("href", path + "/dns_mo
85 document.getElementById("li_nginxSync_a").setAttribute("href", path + "/nginxSync/toNginxSync"); 86 document.getElementById("li_nginxSync_a").setAttribute("href", path + "/nginxSync/toNginxSync");
86 document.getElementById("li_om_a").setAttribute("href", path + "/project/toOm"); 87 document.getElementById("li_om_a").setAttribute("href", path + "/project/toOm");
87 document.getElementById("li_node_a").setAttribute("href", path + "/project/toNode"); 88 document.getElementById("li_node_a").setAttribute("href", path + "/project/toNode");
  89 +document.getElementById("li_degrade_info_a").setAttribute("href", path + "/degrade/info");
88 90
89 91
90 function getUrlBasePath() { 92 function getUrlBasePath() {