提交标签报表页面第一版

This commit is contained in:
wangxin
2018-07-09 17:36:13 +08:00
parent 5ed876e38d
commit 3b60b81c72
10 changed files with 357 additions and 47 deletions

View File

@@ -27,6 +27,7 @@
<mapping path="/nis/ntc/other/ajax*" exclue="true"/>
<mapping path="/nis/proxy/control/httpRedirect/ajax*" exclue="true"/>
<mapping path="/nis/app/ajax*" exclue="true"/>
<mapping path="/nis/report/ajax*" exclue="true"/>
<!-- 对同一路径,启用多个装饰器 -->
<mapping>
<path>/articles/*</path>

View File

@@ -4,39 +4,29 @@
$(function(){
});
</script>
<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>总量</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="tagTable" class="table table-striped table-bordered table-condensed text-nowrap">
<thead>
<tr>
<th><spring:message code="label"/></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="${labels}" var="label">
<c:if test="${label.serviceDictId==data.key}">${label.itemValue}</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>

View File

@@ -17,6 +17,21 @@
$(".Wdate").attr("value",'');
$("#searchForm")[0].reset();
});
if(!"${bean.reportBusinessType}"){
$.ajax({
type:'post',
async:false,
url:'${ctx}/report/ajaxNtcTagReport',
data:{
"action":$('select[name="action"]').val(),
"reportType":$('input[name="reportType"]:checked').val()
},
dataType:"html",
success:function(data){
$("#label").html(data);
}
});
}
$("input[name='reportType']").each(function(){
var type='${bean.reportType}';
if(type && type==$(this).val()){
@@ -25,8 +40,29 @@
})
$("a[data-toggle='tab']").on("click",function(){
$("#reportBusinessType").val($(this).data("bussiness"));
if(!$(this).parent("li").hasClass("active")){
var action=$('select[name="action"]').val();
var reportBusinessType=$("#reportBusinessType").val();
var reportType=$('input[name="reportType"]:checked').val();
if($(this).data("bussiness")=="label_report"){
$.ajax({
type:'post',
async:false,
url:'${ctx}/report/ajaxNtcTagReport',
data:{
"action":action,
"reportType":reportType
},
dataType:"html",
success:function(data){
$("#label").html(data);
}
});
}
}
});
});
</script>
</head>
<body>
@@ -117,7 +153,6 @@
<sys:message content="${message}"/>
<br>
<ul class="nav nav-tabs nav-justified">
<!-- <li><a data-toggle="tab" href="#serviceType">业务类型</a></li> -->
<li
<c:if test="${bean.reportBusinessType eq 'label_report' or bean.reportBusinessType ==null}">
class="active"
@@ -150,7 +185,7 @@
><a data-bussiness="isp_report" data-toggle="tab" href="#entranceId"><spring:message code="isp_report"/></a></li>
</ul>
<div class="tab-content">
<%@include file="/WEB-INF/views/report/label.jsp" %>
<div id="label" class="tab-pane fade in active"></div>
<%@include file="/WEB-INF/views/report/attrType.jsp" %>
<%@include file="/WEB-INF/views/report/lwhh.jsp" %>
<%@include file="/WEB-INF/views/report/srcIp.jsp" %>