Showing
1 changed file
with
33 additions
and
22 deletions
@@ -138,6 +138,29 @@ | @@ -138,6 +138,29 @@ | ||
138 | }); | 138 | }); |
139 | 139 | ||
140 | refreshTable(); | 140 | refreshTable(); |
141 | + | ||
142 | + | ||
143 | + $("#hbaseTable").table({ | ||
144 | + url: contextPath + "maliciousIp/getMaliciousDetection", | ||
145 | + queryParams:{}, | ||
146 | + dataType: 'json', | ||
147 | + striped: true, | ||
148 | + pagination: false, | ||
149 | + //pageSize: 10, | ||
150 | + //sortName: 'count', // 设置默认排序为 name | ||
151 | + //sortOrder: 'desc', // 设置排序为反序 desc | ||
152 | + panelClass: "panel-success", | ||
153 | + loadFilter: function (data) { | ||
154 | + return defaultLoadFilter(data); | ||
155 | + }, | ||
156 | + columns: [ | ||
157 | + { | ||
158 | + title: "内容", | ||
159 | + field: "reason", | ||
160 | + width: "100%" | ||
161 | + }] | ||
162 | + }); | ||
163 | + | ||
141 | }); | 164 | }); |
142 | 165 | ||
143 | //点击搜索按钮 | 166 | //点击搜索按钮 |
@@ -255,31 +278,19 @@ | @@ -255,31 +278,19 @@ | ||
255 | } | 278 | } |
256 | 279 | ||
257 | $("#hbasePrefix").val(mip+":"+hbaseTime+":"); | 280 | $("#hbasePrefix").val(mip+":"+hbaseTime+":"); |
258 | - $("#hbaseTable").table({ | ||
259 | - url: contextPath + "maliciousIp/getMaliciousDetection", | ||
260 | - queryParams:{ | 281 | + refreshHbaseTable(mip,hbaseTime); |
282 | + $("#myModal").modal('show'); | ||
283 | + } | ||
284 | + | ||
285 | + function refreshHbaseTable(mip,hbaseTime){ | ||
286 | + $("#hbaseTable").table("loadLoaclData",[]); | ||
287 | + var param={ | ||
261 | ip:mip, | 288 | ip:mip, |
262 | timestamp:hbaseTime, | 289 | timestamp:hbaseTime, |
263 | type:"alarm" | 290 | type:"alarm" |
264 | - }, | ||
265 | - dataType: 'json', | ||
266 | - striped: true, | ||
267 | - pagination: false, | ||
268 | - //pageSize: 10, | ||
269 | - //sortName: 'count', // 设置默认排序为 name | ||
270 | - //sortOrder: 'desc', // 设置排序为反序 desc | ||
271 | - panelClass: "panel-success", | ||
272 | - loadFilter: function (data) { | ||
273 | - return defaultLoadFilter(data); | ||
274 | - }, | ||
275 | - columns: [ | ||
276 | - { | ||
277 | - title: "内容", | ||
278 | - field: "reason", | ||
279 | - width: "100%" | ||
280 | - }] | ||
281 | - }); | ||
282 | - $("#myModal").modal('show'); | 291 | + }; |
292 | + | ||
293 | + $("#hbaseTable").table("load", param); | ||
283 | } | 294 | } |
284 | 295 | ||
285 | //封杀 | 296 | //封杀 |
-
Please register or login to post a comment