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