来文函号报表页面提交

This commit is contained in:
wangxin
2018-07-10 09:14:18 +08:00
parent 5c828fee58
commit bdc2a88d5b
6 changed files with 270 additions and 39 deletions

View File

@@ -21,6 +21,8 @@
ajaxGetLabelReport();
}else if("${bean.reportBusinessType}"=="label_report"){
ajaxGetLabelReport();
}else if("${bean.reportBusinessType}"=="lwhh_report"){
ajaxGetLwhhReport();
}
$("input[name='reportType']").each(function(){
var type='${bean.reportType}';
@@ -36,6 +38,8 @@
var reportType=$('input[name="reportType"]:checked').val();
if($(this).data("bussiness")=="label_report"){
ajaxGetLabelReport();
}else if($(this).data("bussiness")=="lwhh_report"){
ajaxGetLwhhReport();
}
}
});
@@ -55,6 +59,21 @@ var ajaxGetLabelReport=function(){
}
});
}
var ajaxGetLwhhReport=function(){
$.ajax({
type:'post',
async:false,
url:'${ctx}/report/ajaxNtcLwhhReport',
data:{
"action":$('select[name="action"]').val(),
"reportType":$('input[name="reportType"]:checked').val()
},
dataType:"html",
success:function(data){
$("#lwhh").html(data);
}
});
}
</script>
</head>
<body>
@@ -177,9 +196,15 @@ var ajaxGetLabelReport=function(){
><a data-bussiness="isp_report" data-toggle="tab" href="#entranceId"><spring:message code="isp_report"/></a></li>
</ul>
<div class="tab-content">
<div id="label" class="tab-pane fade in active"></div>
<div id="label" class="tab-pane fade
<c:if test="${bean.reportBusinessType eq 'label_report' or bean.reportBusinessType ==null}">
in active
</c:if>"></div>
<%@include file="/WEB-INF/views/report/attrType.jsp" %>
<%@include file="/WEB-INF/views/report/lwhh.jsp" %>
<div id="lwhh" class="tab-pane fade
<c:if test="${bean.reportBusinessType eq 'lwhh_report'}">
in active
</c:if>"></div>
<%@include file="/WEB-INF/views/report/srcIp.jsp" %>
<%@include file="/WEB-INF/views/report/destIp.jsp" %>
<%@include file="/WEB-INF/views/report/entranceId.jsp" %>

View File

@@ -4,39 +4,29 @@
$(function(){
});
</script>
<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>总量</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>
<table id="lwhhTable" class="table table-striped table-bordered table-condensed text-nowrap">
<thead>
<tr>
<th><spring:message code="requestInfo"/></th>
<th><spring:message code="log_total"/></th>
<c:forEach items="${titles}" var="title">
<th>${title}</th>
</c:forEach>
</tr>
</thead>
<tbody>
<c:forEach items="${datas}" var="data">
<tr>
<td>
<c:forEach items="${requestInfos}" var="lwhh">
<c:if test="${lwhh.id eq data.key}">${lwhh.requestTitle}</c:if>
</c:forEach>
</td>
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
<td>${cloumn}</td>
</c:forEach>
</tr>
</c:forEach>
</tbody>
</table>
<div class="page">${page}</div>