...
|
...
|
@@ -98,6 +98,25 @@ |
|
|
<div id="ipTable" style="overflow-y: auto; overflow-x:hidden;max-height: 700px" /></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
<div class="modal-dialog">
|
|
|
<div class="modal-content" style="width: 140%">
|
|
|
<div class="modal-header">
|
|
|
<button type="button" class="close" data-dismiss="modal"
|
|
|
aria-hidden="true">×</button>
|
|
|
<h4 class="modal-title" id="myModalLabel"></h4>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<input id="hbasePrefix"type="text" readonly disabled style="width:350px;" />
|
|
|
<div id="hbaseTable" style="overflow-y: auto; overflow-x:hidden;max-height: 700px" /></div>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</body>
|
|
|
<script src="<%=basePath %>js/pagination.js"></script>
|
|
|
<script src="<%=basePath %>script/common/genarate_left_panel.js"></script>
|
...
|
...
|
@@ -202,6 +221,8 @@ |
|
|
editBtn.click(function () {
|
|
|
removeMips(rowData.ip);
|
|
|
});
|
|
|
div.append(" ");
|
|
|
$("<button onclick=\"qpsDetailMip(\'" + rowData.ip +"\'"+ ","+"\'"+rowData.hbaseTime+"\')\">").addClass("btn btn-xs btn-info").html("详情").appendTo(div);
|
|
|
return div;
|
|
|
},
|
|
|
styler : function(value, rowData, rowIndex){
|
...
|
...
|
@@ -213,6 +234,39 @@ |
|
|
});
|
|
|
}
|
|
|
|
|
|
function qpsDetailMip(mip,hbaseTime){
|
|
|
if(!hbaseTime){
|
|
|
hbaseTime=0;
|
|
|
}
|
|
|
|
|
|
$("#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%"
|
|
|
}]
|
|
|
});
|
|
|
$("#myModal").modal('show');
|
|
|
}
|
|
|
|
|
|
function showResons(elememt){
|
|
|
var that = elememt;
|
|
|
var btnText = $(that).attr("value");
|
...
|
...
|
|