Authored by lingmin

Merge branch 'dev1019' of http://git.yoho.cn/ops/monitor-ui into dev1019

@@ -119,6 +119,10 @@ @@ -119,6 +119,10 @@
119 119
120 <script type="text/javascript"> 120 <script type="text/javascript">
121 $(function () { 121 $(function () {
  122 + refreshTable();
  123 + });
  124 +
  125 + function refreshTable() {
122 $("#tRedisTable").table({ 126 $("#tRedisTable").table({
123 url: contextPath + "redisMonitor/allTwemproxy", 127 url: contextPath + "redisMonitor/allTwemproxy",
124 striped: true, 128 striped: true,
@@ -130,15 +134,15 @@ @@ -130,15 +134,15 @@
130 columns: [ 134 columns: [
131 { 135 {
132 title: "业务分类", 136 title: "业务分类",
133 - // field: "name" 137 + // field: "name"
134 formatter: function (value, rowData, rowIndex) { 138 formatter: function (value, rowData, rowIndex) {
135 return "<div style=' padding:10px;'>"+rowData.name+"</div>"; 139 return "<div style=' padding:10px;'>"+rowData.name+"</div>";
136 } 140 }
137 }, 141 },
138 - { 142 + {
139 title: "地址", 143 title: "地址",
140 - // field: "url"  
141 - width:"200px", 144 + // field: "url"
  145 + width:"200px",
142 formatter: function (value, rowData, rowIndex) { 146 formatter: function (value, rowData, rowIndex) {
143 var array = rowData.url.split("\r\n"); 147 var array = rowData.url.split("\r\n");
144 var div = ""; 148 var div = "";
@@ -149,7 +153,7 @@ @@ -149,7 +153,7 @@
149 }, { 153 }, {
150 title: "当前连接数", 154 title: "当前连接数",
151 width: "100px", 155 width: "100px",
152 - // field: "connections" 156 + // field: "connections"
153 formatter: function (value, rowData, rowIndex) { 157 formatter: function (value, rowData, rowIndex) {
154 var array = rowData.connections.split("\r\n"); 158 var array = rowData.connections.split("\r\n");
155 var div = ""; 159 var div = "";
@@ -160,7 +164,7 @@ @@ -160,7 +164,7 @@
160 }, { 164 }, {
161 title: "启动时长", 165 title: "启动时长",
162 width: "100px", 166 width: "100px",
163 - // field: "taskCtime" 167 + // field: "taskCtime"
164 formatter: function (value, rowData, rowIndex) { 168 formatter: function (value, rowData, rowIndex) {
165 var array = rowData.taskCtime.split("\r\n"); 169 var array = rowData.taskCtime.split("\r\n");
166 var div = ""; 170 var div = "";
@@ -182,7 +186,7 @@ @@ -182,7 +186,7 @@
182 }, { 186 }, {
183 title: "网络归属", 187 title: "网络归属",
184 width: "120px", 188 width: "120px",
185 - // field: "network" 189 + // field: "network"
186 formatter: function (value, rowData, rowIndex) { 190 formatter: function (value, rowData, rowIndex) {
187 var array = rowData.network.split("\r\n"); 191 var array = rowData.network.split("\r\n");
188 var div = ""; 192 var div = "";
@@ -193,7 +197,7 @@ @@ -193,7 +197,7 @@
193 }, { 197 }, {
194 title: "状态", 198 title: "状态",
195 width: "100px", 199 width: "100px",
196 - // field: "state" 200 + // field: "state"
197 formatter: function (value, rowData, rowIndex) { 201 formatter: function (value, rowData, rowIndex) {
198 var array = rowData.state.split("\r\n"); 202 var array = rowData.state.split("\r\n");
199 var div = ""; 203 var div = "";
@@ -229,9 +233,8 @@ @@ -229,9 +233,8 @@
229 }], 233 }],
230 /* data: data*/ 234 /* data: data*/
231 }); 235 });
232 -  
233 - });  
234 - 236 + setTimeout('refreshTable()',60000);
  237 + }
235 238
236 function showRedisInfo(rowData) { 239 function showRedisInfo(rowData) {
237 var vId = rowData.volumeId; 240 var vId = rowData.volumeId;