提交报表测试页面
This commit is contained in:
@@ -9,20 +9,8 @@
|
|||||||
package com.nis.domain.log;
|
package com.nis.domain.log;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Map.Entry;
|
|
||||||
|
|
||||||
import javax.ws.rs.client.Invocation.Builder;
|
|
||||||
import javax.ws.rs.client.WebTarget;
|
|
||||||
import javax.ws.rs.core.MediaType;
|
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
|
|
||||||
import com.google.common.reflect.TypeToken;
|
|
||||||
import com.google.gson.Gson;
|
|
||||||
import com.nis.domain.BaseEntity;
|
import com.nis.domain.BaseEntity;
|
||||||
import com.nis.exceptions.MaatConvertException;
|
|
||||||
import com.nis.util.Constants;
|
|
||||||
import com.nis.util.StringUtils;
|
|
||||||
import com.nis.util.httpclient.ClientUtil;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ClassName: BaseReportLog.java
|
* @ClassName: BaseReportLog.java
|
||||||
|
|||||||
@@ -96,4 +96,7 @@ public class ReportResultLog<T extends BaseReportLog> extends RestfulResult{
|
|||||||
}
|
}
|
||||||
return bean;
|
return bean;
|
||||||
}
|
}
|
||||||
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
package com.nis.web.controller.report;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.Model;
|
||||||
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
import com.mysql.fabric.xmlrpc.base.Array;
|
||||||
|
import com.nis.domain.Page;
|
||||||
|
import com.nis.domain.configuration.IpPortCfg;
|
||||||
|
import com.nis.domain.log.NtcDnsLog;
|
||||||
|
import com.nis.web.controller.BaseController;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("${adminPath}/report/test")
|
||||||
|
public class TestController extends BaseController {
|
||||||
|
|
||||||
|
@RequestMapping("list")
|
||||||
|
public String list(@ModelAttribute("cfg") IpPortCfg cfg,Model model, HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
Page<IpPortCfg> page=new Page<IpPortCfg>(request, response);
|
||||||
|
List<IpPortCfg> list=new ArrayList();
|
||||||
|
list.add(new IpPortCfg());
|
||||||
|
page.setList(list);
|
||||||
|
model.addAttribute("page", page);
|
||||||
|
return "/report/test";
|
||||||
|
}
|
||||||
|
}
|
||||||
407
src/main/webapp/WEB-INF/views/report/test.jsp
Normal file
407
src/main/webapp/WEB-INF/views/report/test.jsp
Normal file
@@ -0,0 +1,407 @@
|
|||||||
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
||||||
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title><spring:message code="test"></spring:message></title>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
//搜索框提示语初始化
|
||||||
|
if("${cfg.srcIpAddress}"){
|
||||||
|
$("#intype").val("${cfg.srcIpAddress}");
|
||||||
|
} else if("${cfg.destIpAddress}"){
|
||||||
|
$("#intype").val("${cfg.destIpAddress}");
|
||||||
|
} else if("${cfg.srcPort}"){
|
||||||
|
$("#intype").val("${cfg.srcPort}");
|
||||||
|
} else if("${cfg.destPort}"){
|
||||||
|
$("#intype").val("${cfg.destPort}");
|
||||||
|
} else if("${cfg.cfgDesc}"){
|
||||||
|
$("#intype").val("${cfg.cfgDesc}");
|
||||||
|
} else{
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||||
|
}
|
||||||
|
$("#seltype").change(function(){
|
||||||
|
$("#intype").attr("placeholder","<spring:message code='input'/> "+$(this).find("option:selected").text());
|
||||||
|
});
|
||||||
|
//筛选功能初始化
|
||||||
|
filterActionInit();
|
||||||
|
$("#isAudit").change(function(){
|
||||||
|
page();
|
||||||
|
});
|
||||||
|
//reset
|
||||||
|
$("#resetBtn").on("click",function(){
|
||||||
|
$("select.selectpicker").each(function(){
|
||||||
|
$(this).selectpicker('val',$(this).find('option:first').val());
|
||||||
|
$(this).find("option").attr("selected",false);
|
||||||
|
$(this).find("option:first").attr("selected",true);
|
||||||
|
});
|
||||||
|
$(".Wdate").attr("value",'');
|
||||||
|
$("#searchForm")[0].reset();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="page-content">
|
||||||
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
|
<div class="btn btn-primary">
|
||||||
|
<spring:message code="阻断数据量"></spring:message>1000000
|
||||||
|
</div>
|
||||||
|
<div class="btn btn-default">
|
||||||
|
<spring:message code="监测数据量"></spring:message>1000000
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h3 class="page-title">
|
||||||
|
<spring:message code="test"></spring:message>
|
||||||
|
<small><spring:message code="report_list"/></small>
|
||||||
|
</h3>
|
||||||
|
<h5 class="page-header"></h5>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="portlet">
|
||||||
|
<div class="portlet-body">
|
||||||
|
<div class="row" >
|
||||||
|
<form:form id="searchForm" modelAttribute="cfg" action="${ctx}/report/test/list" method="post" class="form-search">
|
||||||
|
<input id="functionId" name="functionId" type="hidden" value="${cfg.functionId}"/>
|
||||||
|
<input name="cfgName" type="hidden" value="${cfgName}"/>
|
||||||
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
||||||
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
||||||
|
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}"
|
||||||
|
callback="page();" />
|
||||||
|
<!-- 筛选按钮展开状态-->
|
||||||
|
<input id="isFilterAction" name="isFilterAction" type="hidden" value="${cfg.isFilterAction }"/>
|
||||||
|
<!-- 搜索内容与操作按钮栏 -->
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="pull-left">
|
||||||
|
<form:select path="action" class="selectpicker select2 input-small">
|
||||||
|
<form:option value=""><spring:message code="action"/></form:option>
|
||||||
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION')}" var="action" >
|
||||||
|
<form:option value="${action.itemCode}" ><spring:message code="${action.itemValue}"/></form:option>
|
||||||
|
</c:forEach>
|
||||||
|
</form:select>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-btn">
|
||||||
|
<span class="form-control" ><spring:message code="begin_date"/></span>
|
||||||
|
</div>
|
||||||
|
<input name="search_audit_time_start" type="text" readonly="readonly" maxlength="20" class="form-control Wdate input-medium"
|
||||||
|
value="${cfg.search_audit_time_start}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-btn">
|
||||||
|
<span class="form-control" ><spring:message code="end_date"/></span>
|
||||||
|
</div>
|
||||||
|
<input name="search_audit_time_end" type="text" readonly="readonly" maxlength="20" class="form-control Wdate input-medium"
|
||||||
|
value="${cfg.search_audit_time_end}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pull-left">
|
||||||
|
<button type="button" class="btn blue" onClick="return page()"> <i class="fa fa-search"></i> <spring:message code="search"/> </button>
|
||||||
|
<button type="button" class="btn btn-default" id="resetBtn" > <i class="fa fa-refresh"></i> <spring:message code="reset"/> </button>
|
||||||
|
<sys:delRow url="${ctx}/report/test/export?functionId=${cfg.functionId}" id="contentTable" label="export" maxRow="${page.maxExportSize}"></sys:delRow>
|
||||||
|
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"/><i class="fa fa-angle-double-down"></i></button>
|
||||||
|
</div>
|
||||||
|
<div class="pull-right">
|
||||||
|
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||||
|
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
||||||
|
<i class="icon-wrench"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- 搜索内容与操作按钮栏 -->
|
||||||
|
|
||||||
|
<!-- 筛选搜索内容栏默认隐藏-->
|
||||||
|
<div class="col-md-12 filter-action-select-panle hide" >
|
||||||
|
</div>
|
||||||
|
<!-- /筛选搜索内容栏 结束-->
|
||||||
|
</form:form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
|
<sys:message content="${message}"/>
|
||||||
|
<br>
|
||||||
|
<ul class="nav nav-tabs nav-justified">
|
||||||
|
<!-- <li><a data-toggle="tab" href="#serviceType">业务类型</a></li> -->
|
||||||
|
<li class="active"><a data-toggle="tab" href="#label">标签</a></li>
|
||||||
|
<li><a data-toggle="tab" href="#attrType">性质</a></li>
|
||||||
|
<li><a data-toggle="tab" href="#lwhh">来文函号</a></li>
|
||||||
|
<li><a data-toggle="tab" href="#srcIp">境内源IP</a></li>
|
||||||
|
<li><a data-toggle="tab" href="#destIp">各国家目的IP</a></li>
|
||||||
|
<li><a data-toggle="tab" href="#entranceId">运营商局点</a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="tab-content">
|
||||||
|
<%-- <div id="serviceType" class="tab-pane fade">
|
||||||
|
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>时间</th>
|
||||||
|
<th>数量</th>
|
||||||
|
<th>业务类型</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>2018-07-05 15:00</td>
|
||||||
|
<td>1</td>
|
||||||
|
<td>1</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page">${page}</div>
|
||||||
|
</div> --%>
|
||||||
|
<div id="label" class="tab-pane fade in active">
|
||||||
|
<table id="contentTable1" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>标签</th>
|
||||||
|
<th>0点</th>
|
||||||
|
<th>1点</th>
|
||||||
|
<th>2点</th>
|
||||||
|
<th>3点</th>
|
||||||
|
<th>4点</th>
|
||||||
|
<th>5点</th>
|
||||||
|
<th>6点</th>
|
||||||
|
<th>7点</th>
|
||||||
|
<th>8点</th>
|
||||||
|
<th>9点</th>
|
||||||
|
<th>10点</th>
|
||||||
|
<th>11点</th>
|
||||||
|
<th>12点</th>
|
||||||
|
<th>14点</th>
|
||||||
|
<th>15点</th>
|
||||||
|
<th>16点</th>
|
||||||
|
<th>17点</th>
|
||||||
|
<th>18点</th>
|
||||||
|
<th>19点</th>
|
||||||
|
<th>20点</th>
|
||||||
|
<th>21点</th>
|
||||||
|
<th>22点</th>
|
||||||
|
<th>23点</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page">${page}</div>
|
||||||
|
</div>
|
||||||
|
<div id="attrType" class="tab-pane fade">
|
||||||
|
<table id="contentTable1" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>性质</th>
|
||||||
|
<th>0点</th>
|
||||||
|
<th>1点</th>
|
||||||
|
<th>2点</th>
|
||||||
|
<th>3点</th>
|
||||||
|
<th>4点</th>
|
||||||
|
<th>5点</th>
|
||||||
|
<th>6点</th>
|
||||||
|
<th>7点</th>
|
||||||
|
<th>8点</th>
|
||||||
|
<th>9点</th>
|
||||||
|
<th>10点</th>
|
||||||
|
<th>11点</th>
|
||||||
|
<th>12点</th>
|
||||||
|
<th>14点</th>
|
||||||
|
<th>15点</th>
|
||||||
|
<th>16点</th>
|
||||||
|
<th>17点</th>
|
||||||
|
<th>18点</th>
|
||||||
|
<th>19点</th>
|
||||||
|
<th>20点</th>
|
||||||
|
<th>21点</th>
|
||||||
|
<th>22点</th>
|
||||||
|
<th>23点</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page">${page}</div>
|
||||||
|
</div>
|
||||||
|
<div id="attribute" class="tab-pane fade">
|
||||||
|
<table id="contentTable1" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>来文函号</th>
|
||||||
|
<th>0点</th>
|
||||||
|
<th>1点</th>
|
||||||
|
<th>2点</th>
|
||||||
|
<th>3点</th>
|
||||||
|
<th>4点</th>
|
||||||
|
<th>5点</th>
|
||||||
|
<th>6点</th>
|
||||||
|
<th>7点</th>
|
||||||
|
<th>8点</th>
|
||||||
|
<th>9点</th>
|
||||||
|
<th>10点</th>
|
||||||
|
<th>11点</th>
|
||||||
|
<th>12点</th>
|
||||||
|
<th>14点</th>
|
||||||
|
<th>15点</th>
|
||||||
|
<th>16点</th>
|
||||||
|
<th>17点</th>
|
||||||
|
<th>18点</th>
|
||||||
|
<th>19点</th>
|
||||||
|
<th>20点</th>
|
||||||
|
<th>21点</th>
|
||||||
|
<th>22点</th>
|
||||||
|
<th>23点</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page">${page}</div>
|
||||||
|
</div>
|
||||||
|
<div id="lwhh" class="tab-pane fade">
|
||||||
|
<table id="contentTable1" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>性质</th>
|
||||||
|
<th>0点</th>
|
||||||
|
<th>1点</th>
|
||||||
|
<th>2点</th>
|
||||||
|
<th>3点</th>
|
||||||
|
<th>4点</th>
|
||||||
|
<th>5点</th>
|
||||||
|
<th>6点</th>
|
||||||
|
<th>7点</th>
|
||||||
|
<th>8点</th>
|
||||||
|
<th>9点</th>
|
||||||
|
<th>10点</th>
|
||||||
|
<th>11点</th>
|
||||||
|
<th>12点</th>
|
||||||
|
<th>14点</th>
|
||||||
|
<th>15点</th>
|
||||||
|
<th>16点</th>
|
||||||
|
<th>17点</th>
|
||||||
|
<th>18点</th>
|
||||||
|
<th>19点</th>
|
||||||
|
<th>20点</th>
|
||||||
|
<th>21点</th>
|
||||||
|
<th>22点</th>
|
||||||
|
<th>23点</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page">${page}</div>
|
||||||
|
</div>
|
||||||
|
<div id="srcIp" class="tab-pane fade">
|
||||||
|
<table id="contentTable1" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>所属省</th>
|
||||||
|
<th>所属市</th>
|
||||||
|
<th>0点</th>
|
||||||
|
<th>1点</th>
|
||||||
|
<th>2点</th>
|
||||||
|
<th>3点</th>
|
||||||
|
<th>4点</th>
|
||||||
|
<th>5点</th>
|
||||||
|
<th>6点</th>
|
||||||
|
<th>7点</th>
|
||||||
|
<th>8点</th>
|
||||||
|
<th>9点</th>
|
||||||
|
<th>10点</th>
|
||||||
|
<th>11点</th>
|
||||||
|
<th>12点</th>
|
||||||
|
<th>14点</th>
|
||||||
|
<th>15点</th>
|
||||||
|
<th>16点</th>
|
||||||
|
<th>17点</th>
|
||||||
|
<th>18点</th>
|
||||||
|
<th>19点</th>
|
||||||
|
<th>20点</th>
|
||||||
|
<th>21点</th>
|
||||||
|
<th>22点</th>
|
||||||
|
<th>23点</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page">${page}</div>
|
||||||
|
</div>
|
||||||
|
<div id="destIp" class="tab-pane fade">
|
||||||
|
<table id="contentTable1" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>所属国家</th>
|
||||||
|
<th>0点</th>
|
||||||
|
<th>1点</th>
|
||||||
|
<th>2点</th>
|
||||||
|
<th>3点</th>
|
||||||
|
<th>4点</th>
|
||||||
|
<th>5点</th>
|
||||||
|
<th>6点</th>
|
||||||
|
<th>7点</th>
|
||||||
|
<th>8点</th>
|
||||||
|
<th>9点</th>
|
||||||
|
<th>10点</th>
|
||||||
|
<th>11点</th>
|
||||||
|
<th>12点</th>
|
||||||
|
<th>14点</th>
|
||||||
|
<th>15点</th>
|
||||||
|
<th>16点</th>
|
||||||
|
<th>17点</th>
|
||||||
|
<th>18点</th>
|
||||||
|
<th>19点</th>
|
||||||
|
<th>20点</th>
|
||||||
|
<th>21点</th>
|
||||||
|
<th>22点</th>
|
||||||
|
<th>23点</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page">${page}</div>
|
||||||
|
</div>
|
||||||
|
<div id="entranceId" class="tab-pane fade">
|
||||||
|
<table id="contentTable1" class="table table-striped table-bordered table-condensed text-nowrap">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>局点</th>
|
||||||
|
<th>0点</th>
|
||||||
|
<th>1点</th>
|
||||||
|
<th>2点</th>
|
||||||
|
<th>3点</th>
|
||||||
|
<th>4点</th>
|
||||||
|
<th>5点</th>
|
||||||
|
<th>6点</th>
|
||||||
|
<th>7点</th>
|
||||||
|
<th>8点</th>
|
||||||
|
<th>9点</th>
|
||||||
|
<th>10点</th>
|
||||||
|
<th>11点</th>
|
||||||
|
<th>12点</th>
|
||||||
|
<th>14点</th>
|
||||||
|
<th>15点</th>
|
||||||
|
<th>16点</th>
|
||||||
|
<th>17点</th>
|
||||||
|
<th>18点</th>
|
||||||
|
<th>19点</th>
|
||||||
|
<th>20点</th>
|
||||||
|
<th>21点</th>
|
||||||
|
<th>22点</th>
|
||||||
|
<th>23点</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div class="page">${page}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user