crashLogDetail.jsp
6.29 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<%@ page contentType="text/html; charset=utf-8"%>
<c:set var="report" value="${model.problemReport}" />
<div class="report">
<c:set var="navUrlPrefix" value="op=${payload.action.name}&query1=${payload.query1}"/>
<table style="width:100%;">
<c:choose>
<c:when test="${payload.action.name eq 'crashLog'}">
<td><span class="text-danger title">【报表时间】</span><span class="text-success">${w:format(report.startTime,'yyyy-MM-dd HH:mm:ss')} to ${w:format(report.endTime,'yyyy-MM-dd HH:mm:ss')}</span>
</td><td align="right"><span class="text-danger switch"><a class="switch" href="${model.baseUri}?op=historyCrashLog&query1=AndroidCrashLog;;;;"><span class="text-danger">【切到历史模式】</span></a></span>
<c:forEach var="nav" items="${model.navs}">
[ <a href="${model.baseUri}?date=${model.date}&step=${nav.hours}&${navUrlPrefix}">${nav.title}</a> ]
</c:forEach>
[ <a href="${model.baseUri}?${navUrlPrefix}">now</a> ]
</td>
</c:when>
<c:otherwise>
<c:if test="${payload.action.name eq 'historyCrashLog'}">
<td><span class="text-danger title">【报表时间】</span><span class="text-success">${w:format(payload.historyStartDate,'yyyy-MM-dd HH:mm:ss')} to ${w:format(payload.historyDisplayEndDate,'yyyy-MM-dd HH:mm:ss')}</span>
</td><td align="right"><span class="text-danger switch"><a class="switch" href="${model.baseUri}?op=crashLog&query1=AndroidCrashLog;;;;"><span class="text-danger">【切到小时模式】</span></a></span>
<c:forEach var="nav" items="${model.historyNavs}">
<c:choose>
<c:when test="${nav.title eq payload.reportType}">
[ <a href="?${navUrlPrefix}&reportType=${nav.title}&date=${model.date}" class="current">${nav.title}</a> ]
</c:when>
<c:otherwise>
[ <a href="?${navUrlPrefix}&reportType=${nav.title}&date=${model.date}">${nav.title}</a> ]
</c:otherwise>
</c:choose>
</c:forEach>
[ <a href="?${navUrlPrefix}&date=${model.date}&reportType=${payload.reportType}&step=-1">${model.currentNav.last}</a> ]
[ <a href="?${navUrlPrefix}&date=${model.date}&reportType=${payload.reportType}&step=1">${model.currentNav.next}</a> ]
[ <a href="?${navUrlPrefix}&reportType=${payload.reportType}&nav=next">now</a> ]
</td>
</c:if>
</c:otherwise>
</c:choose>
</table>
<br>
<table class="table ">
<tr><td width="100px;">
平台类型</td><td><select id="platformType" style="width: 200px;">
<c:forEach var="item" items="${model.crashLogDomains}">
<option value='${item.id}'>
<c:choose>
<c:when test="${empty item.title }">
${item.id}
</c:when>
<c:otherwise>
${item.title}
</c:otherwise>
</c:choose>
</option>
</c:forEach>
</select> <input class="btn btn-primary btn-sm "
value=" 查询 " onclick="query()"
type="submit" /></td></tr>
<tr><td width="60px;">APP版本</td><td>
<div>
<label class="btn btn-info btn-sm">
<input type="checkbox" id="appVersionAll" onclick="clickAll('${model.fieldsInfo.appVersions}', 'appVersion')" unchecked>All
</label><c:forEach var="item" items="${model.fieldsInfo.appVersions}" varStatus="status"><label class="btn btn-info btn-sm"><input type="checkbox" id="appVersion_${item}" value="${item}" onclick="clickMe('${model.fieldsInfo.appVersions}', 'appVersion')" unchecked>${item}</label></c:forEach>
</div>
</td></tr>
<tr><td width="60px;">平台版本</td><td><div><label class="btn btn-info btn-sm">
<input type="checkbox" id="platformVersionAll" onclick="clickAll('${model.fieldsInfo.platVersions}', 'platformVersion')" unchecked>All
</label><c:forEach var="item" items="${model.fieldsInfo.platVersions}" varStatus="status"><label class="btn btn-info btn-sm"><input type="checkbox" id="platformVersion_${item}" value="${item}" onclick="clickMe('${model.fieldsInfo.platVersions}', 'platformVersion')" unchecked>${item}</label></c:forEach>
</div>
</td></tr>
<tr><td width="60px;"> 模块</td><td><div>
<label class="btn btn-info btn-sm">
<input type="checkbox" id="moduleAll" onclick="clickAll('${model.fieldsInfo.modules}', 'module')" unchecked>All
</label><c:forEach var="item" items="${model.fieldsInfo.modules}" varStatus="status"><label class="btn btn-info btn-sm"><input type="checkbox" id="module_${item}" value="${item}" onclick="clickMe('${model.fieldsInfo.modules}', 'module')" unchecked>${item}</label></c:forEach>
</div>
</td></tr>
<tr><td width="60px;"> 级别</td><td><div>
<label class="btn btn-info btn-sm">
<input type="checkbox" id="levelAll" onclick="clickAll('${model.fieldsInfo.levels}', 'level')" unchecked>All
</label><c:forEach var="item" items="${model.fieldsInfo.levels}" varStatus="status"><label class="btn btn-info btn-sm"><input type="checkbox" id="level_${item}" value="${item}" onclick="clickMe('${model.fieldsInfo.levels}', 'level')" unchecked>${item}</label></c:forEach>
</div>
</td></tr>
</table>
</div>
<br>
<res:useJs value="${res.js.local['baseGraph.js']}" target="head-js"/>
<table class="table table-hover table-striped table-condensed" style="width:100%">
<tr>
<th width="5%">Total</th>
<th width="45%">Status</th>
<th width="5%">Count</th>
<th width="450%">SampleLinks</th>
</tr>
<c:forEach var="statistics" items="${model.problemStatistics.types}"
varStatus="typeIndex">
<tr>
<td rowspan="${w:size(statistics.value.status)*2}">${w:format(statistics.value.count,'#,###,###,###,##0')} </td>
<c:forEach var="status" items="${statistics.value.status}"
varStatus="index">
<c:if test="${index.index != 0}">
<tr>
</c:if>
<td>
${status.value.status}
</td>
<td class="right">${w:format(status.value.count,'#,###,###,###,##0')} </td>
<td>
<c:forEach var="links" items="${status.value.links}" varStatus="linkIndex">
<a href="/cat/r/m/${links}?domain=${model.domain}">${linkIndex.first?'L':(linkIndex.last?'g':'o')}</a>
</c:forEach></td>
<c:if test="${index.index != 0}">
</tr>
</c:if>
</c:forEach>
</tr>
<tr class="graphs"><td colspan="5"><div id="${typeIndex.index}" style="display:none"></div></td></tr>
</c:forEach>
</table>