dependencyLineGraph.jsp
1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<%@ page contentType="text/html; charset=utf-8" %>
<div id="fullScreenData">
<div class="row-fluid">
<div class='span12'>
<h4 class='text-danger text-center'>当前小时内项目本身指标趋势图</h4>
<table>
<tr>
<c:forEach var="item" items="${model.indexGraph}" varStatus="status">
<td>
<div id="item${status.index}" style="width:380px;height:300px;"></div>
</td>
</c:forEach>
</tr>
</table>
</div>
</div>
<div class="row-fluid">
<div class='span12'>
<h4 class='text-danger text-center'>当前小时内项目依赖指标趋势图</h4>
<table>
<c:forEach var="charts" items="${model.dependencyGraph}" varStatus="type">
<th colspan="3"><h4 class='text-center text-success'>${charts.key}</h4></th>
<c:set var="key" value="${charts.key}"/>
<c:set var="value" value="${charts.value}"/>
<tr>
<c:forEach var="item" items="${value}" varStatus="status">
<td>
<div id="item${type.index}-${status.index}" style="width:380px;height:300px;"></div></td>
</c:forEach></tr>
</c:forEach></table>
</div>
</div>
</div>
<script type="text/javascript">
<c:forEach var="item" items="${model.indexGraph}" varStatus="status">
graphLineChart(document.getElementById('item${status.index}'),${item});
</c:forEach>
<c:forEach var="charts" items="${model.dependencyGraph}" varStatus="type">
<c:set var="key" value="${charts.key}"/>
<c:set var="value" value="${charts.value}"/>
<c:forEach var="item" items="${value}" varStatus="status">
graphLineChart(document.getElementById('item${type.index}-${status.index}'),${item});
</c:forEach>
</c:forEach>
$(document).ready(function() {
$('#dependency_trend').addClass('active');
});
</script>