报表页面修改.
This commit is contained in:
@@ -78,7 +78,7 @@ public class NtcDestIpReportController extends BaseController {
|
||||
List<Long> _line= new ArrayList<Long>();
|
||||
_line.add(total);
|
||||
_line.addAll(line);
|
||||
for (int i = 0; i < 20; i++) {
|
||||
for (int i = 0; i < 40; i++) {
|
||||
showData.put("巴西"+i, _line);
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ public class NtcEntranceReportController extends BaseController {
|
||||
List<Long> _line= new ArrayList<Long>();
|
||||
_line.add(total);
|
||||
_line.addAll(line);
|
||||
for (int i = 0; i < 20; i++) {
|
||||
for (int i = 0; i < 40; i++) {
|
||||
showData.put(""+i, _line);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,28 +4,37 @@
|
||||
$(function() {
|
||||
});
|
||||
</script>
|
||||
<table id="attrTypeTable"
|
||||
class="table table-striped table-bordered table-condensed text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><spring:message code="attribute" /></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="${xzs}" var="xz">
|
||||
<c:if test="${xz.serviceDictId==data.key}">${xz.itemValue}</c:if>
|
||||
</c:forEach></td>
|
||||
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
|
||||
<td>${cloumn}</td>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
<table id="attrTypeTable"
|
||||
class="table table-striped table-bordered table-condensed text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><spring:message code="attribute" /></th>
|
||||
<th><spring:message code="log_total" /></th>
|
||||
<c:forEach items="${titles}" var="title">
|
||||
<th>${title}</th>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page">${page}</div>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<script type="text/javascript">
|
||||
var trContent = "";
|
||||
<c:forEach items="${datas}" var="data">
|
||||
trContent += "<tr>";
|
||||
<c:forEach items="${xzs}" var="xz">
|
||||
<c:if test="${xz.serviceDictId==data.key}">
|
||||
trContent += "<td>${xz.itemValue}</td>";
|
||||
</c:if>
|
||||
</c:forEach>
|
||||
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
|
||||
trContent += "<td>${cloumn}</td>";
|
||||
</c:forEach>
|
||||
trContent += "</tr>";
|
||||
</c:forEach>
|
||||
$('tbody').remove();
|
||||
$('#attrTypeTable').append("<tbody></tbody>");
|
||||
$('tbody').html(trContent);
|
||||
pagination();
|
||||
</script>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page">${page}</div>
|
||||
@@ -15,16 +15,23 @@ $(function(){
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<script type="text/javascript">
|
||||
var trContent = "";
|
||||
<c:forEach items="${datas}" var="data">
|
||||
<tr>
|
||||
<c:forEach items="${data.key}" var="key" varStatus="status">
|
||||
<td>${key}</td>
|
||||
</c:forEach>
|
||||
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
|
||||
<td>${cloumn}</td>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
trContent += "<tr>";
|
||||
<c:forEach items="${data.key}" var="destCountry" varStatus="status">
|
||||
trContent += "<td>${destCountry}</td>";
|
||||
</c:forEach>
|
||||
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
|
||||
trContent += "<td>${cloumn}</td>";
|
||||
</c:forEach>
|
||||
trContent += "</tr>";
|
||||
</c:forEach>
|
||||
$('tbody').remove();
|
||||
$('#destIpTable').append("<tbody></tbody>");
|
||||
$('tbody').html(trContent);
|
||||
pagination();
|
||||
</script>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page">${page}</div>
|
||||
@@ -15,16 +15,23 @@ $(function(){
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<script type="text/javascript">
|
||||
var trContent = "";
|
||||
<c:forEach items="${datas}" var="data">
|
||||
<tr>
|
||||
<c:forEach items="${data.key}" var="key" varStatus="status">
|
||||
<td>${key}</td>
|
||||
</c:forEach>
|
||||
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
|
||||
<td>${cloumn}</td>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
trContent += "<tr>";
|
||||
<c:forEach items="${data.key}" var="entranceId" varStatus="status">
|
||||
trContent += "<td>${entranceId}</td>";
|
||||
</c:forEach>
|
||||
<c:forEach items="${data.value}" var="cloumn" varStatus="status">
|
||||
trContent += "<td>${cloumn}</td>";
|
||||
</c:forEach>
|
||||
trContent += "</tr>";
|
||||
</c:forEach>
|
||||
$('tbody').remove();
|
||||
$('#entranceIdTable').append("<tbody></tbody>");
|
||||
$('tbody').html(trContent);
|
||||
pagination();
|
||||
</script>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page">${page}</div>
|
||||
Reference in New Issue
Block a user