diff --git a/src/main/java/com/nis/web/controller/report/NtcTagReportController.java b/src/main/java/com/nis/web/controller/report/NtcTagReportController.java index e089dd1be..0bee24664 100644 --- a/src/main/java/com/nis/web/controller/report/NtcTagReportController.java +++ b/src/main/java/com/nis/web/controller/report/NtcTagReportController.java @@ -6,6 +6,7 @@ import java.util.Calendar; import java.util.Collections; import java.util.Date; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.List; import javax.servlet.http.HttpServletRequest; @@ -139,7 +140,7 @@ public class NtcTagReportController extends BaseController { // // TODO: handle exception // e.printStackTrace(); // } - HashMap> showData=new HashMap<>();//构造数据展示集合 + HashMap> showData=new LinkedHashMap<>();//构造数据展示集合 for(ServiceDictInfo label:labels){ List line= new ArrayList(); long total=0l; diff --git a/src/main/webapp/WEB-INF/views/report/list.jsp b/src/main/webapp/WEB-INF/views/report/list.jsp index 8ecbef2eb..2dd24d5ca 100644 --- a/src/main/webapp/WEB-INF/views/report/list.jsp +++ b/src/main/webapp/WEB-INF/views/report/list.jsp @@ -7,6 +7,11 @@ $(document).ready(function() { //筛选功能初始化 filterActionInit(); + //日期类型初始化 + changeReportType("${bean.reportType}", true); + $("#reportType").change(function(){ + changeReportType($("#reportType", false).val()); + }); //reset $("#resetBtn").on("click",function(){ $("select.selectpicker").each(function(){ @@ -44,6 +49,20 @@ } }); }); + + function changeReportType(reportType, init) { + $("#intype").remove(); + if(reportType == 1){//需删除元素后重新添加,直接更改onclick会出现缓存问题 + $("#reportTypeDiv").append(''); + } else if(reportType == 2){ + $("#reportTypeDiv").append(''); + } else if(reportType == 3){ + $("#reportTypeDiv").append(''); + } + if (init) { + } + } + var ajaxGetLabelReport=function(){ $.ajax({ type:'post', @@ -94,125 +113,124 @@ var ajaxGetLwhhReport=function(){ -
-
-
-
-
- - - - - - - -
-
- - - - - - - - +
+
+
+
+ + + + + + + +
+
+ + + + + + + - -
-
-
- - - -
-
-
- - - - -
- + +
- - - -
+
+
+ + + +
- - -
- -
- -
- -
-
- in active - ">
- <%@include file="/WEB-INF/views/report/attrType.jsp" %> -
- in active - ">
- <%@include file="/WEB-INF/views/report/srcIp.jsp" %> - <%@include file="/WEB-INF/views/report/destIp.jsp" %> - <%@include file="/WEB-INF/views/report/entranceId.jsp" %> +
+ + + + +
+
+ + + +
+
+ + +
+ +
+ +
+ +
+
+ in active + ">
+ <%@include file="/WEB-INF/views/report/attrType.jsp" %> +
+ in active + ">
+ <%@include file="/WEB-INF/views/report/srcIp.jsp" %> + <%@include file="/WEB-INF/views/report/destIp.jsp" %> + <%@include file="/WEB-INF/views/report/entranceId.jsp" %>
-
+
+
\ No newline at end of file