...
|
...
|
@@ -138,6 +138,29 @@ |
|
|
});
|
|
|
|
|
|
refreshTable();
|
|
|
|
|
|
|
|
|
$("#hbaseTable").table({
|
|
|
url: contextPath + "maliciousIp/getMaliciousDetection",
|
|
|
queryParams:{},
|
|
|
dataType: 'json',
|
|
|
striped: true,
|
|
|
pagination: false,
|
|
|
//pageSize: 10,
|
|
|
//sortName: 'count', // 设置默认排序为 name
|
|
|
//sortOrder: 'desc', // 设置排序为反序 desc
|
|
|
panelClass: "panel-success",
|
|
|
loadFilter: function (data) {
|
|
|
return defaultLoadFilter(data);
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
|
title: "内容",
|
|
|
field: "reason",
|
|
|
width: "100%"
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
//点击搜索按钮
|
...
|
...
|
@@ -255,33 +278,21 @@ |
|
|
}
|
|
|
|
|
|
$("#hbasePrefix").val(mip+":"+hbaseTime+":");
|
|
|
$("#hbaseTable").table({
|
|
|
url: contextPath + "maliciousIp/getMaliciousDetection",
|
|
|
queryParams:{
|
|
|
ip:mip,
|
|
|
timestamp:hbaseTime,
|
|
|
type:"alarm"
|
|
|
},
|
|
|
dataType: 'json',
|
|
|
striped: true,
|
|
|
pagination: false,
|
|
|
//pageSize: 10,
|
|
|
//sortName: 'count', // 设置默认排序为 name
|
|
|
//sortOrder: 'desc', // 设置排序为反序 desc
|
|
|
panelClass: "panel-success",
|
|
|
loadFilter: function (data) {
|
|
|
return defaultLoadFilter(data);
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
|
title: "内容",
|
|
|
field: "reason",
|
|
|
width: "100%"
|
|
|
}]
|
|
|
});
|
|
|
refreshHbaseTable(mip,hbaseTime);
|
|
|
$("#myModal").modal('show');
|
|
|
}
|
|
|
|
|
|
function refreshHbaseTable(mip,hbaseTime){
|
|
|
$("#hbaseTable").table("loadLoaclData",[]);
|
|
|
var param={
|
|
|
ip:mip,
|
|
|
timestamp:hbaseTime,
|
|
|
type:"alarm"
|
|
|
};
|
|
|
|
|
|
$("#hbaseTable").table("load", param);
|
|
|
}
|
|
|
|
|
|
//封杀
|
|
|
function fobidMip(mip){
|
|
|
var dialog = $("<div>").appendTo($("body"));
|
...
|
...
|
|