maliciousIpDetail.js 1.08 KB
$(function () {
    refreshTableDetail();
});

function refreshTableDetail() {
    $("#detailTable").table({
        url: contextPath + "maliciousIp/getDetail?ip="+$("#ip").val() + "&count="+$("#count").val() + "&timeType="+$("#timeType").val() + "&timestamp="+$("#timestamp").val(),
        dataType: 'json',
        striped: true,
        panelClass: "panel-success",
        loadFilter: function (data) {
            return defaultLoadFilter(data);
        },
        columns: [
            {
                title: "ip",
                width: "100px",
                field: "userIP"
            },
            {
                title: "QPS",
                width: "100",
                field: "count"
            },
            {
                title: "百分比",
                width: "100",
                field: "percent",
                formatter: function (value, rowData, rowIndex) {
                	return value + "%";
                }
            },
            {
                title: "method",
                width: "300",
                field: "method"
            }]
    });
}