test.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <!DOCTYPE html>
  2. <html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
  4. layout:decorator="main">
  5. <head>
  6. <link rel="stylesheet" type="text/css" href="/static/css/main.css" />
  7. <link rel="stylesheet" type="text/css" href="/static/css/all_reports.css" />
  8. <!-- dataTables -->
  9. <link rel="stylesheet" type="text/css"
  10. href="/static/AdminLTE/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css" />
  11. </head>
  12. <body>
  13. <th:block layout:fragment="sidebar">
  14. <li>
  15. <a th:href="'/task_detail?examId=' + ${examId} + '&amp;caseId=' + ${caseId}">
  16. <i class="glyphicon glyphicon-book"></i>
  17. <span>
  18. 任务详情
  19. </span>
  20. </a>
  21. </li>
  22. <li>
  23. <a th:href="'/final_reports?examId=' + ${examId} + '&amp;caseId=' + ${caseId}">
  24. <i class="fa fa-calendar-check-o"></i>
  25. <span>预交付报告</span>
  26. </a>
  27. </li>
  28. <li>
  29. <a th:href="'/review_report?examId=' + ${examId} + '&amp;caseId=' + ${caseId}">
  30. <i class="glyphicon glyphicon-edit"></i>
  31. <span>
  32. 报告审核
  33. </span>
  34. </a>
  35. </li>
  36. <li class="treeview">
  37. <a href="#">
  38. <i class="fa fa-list"></i>
  39. <span>Reports</span>
  40. <span class="pull-right-container">
  41. <i class="fa fa-angle-left pull-right"></i>
  42. </span>
  43. </a>
  44. <ul class="treeview-menu" style="display: block;">
  45. <li class="active">
  46. <a th:href="'/agg_report_list?examId='+${examId}+'&amp;caseId='+${caseId}">
  47. <i class="fa fa-circle-o"></i>
  48. <span>全部报告</span>
  49. <span class="badge pull-right all-number" th:text="${task.numOfTotalBug}">199</span>
  50. </a>
  51. </li>
  52. <li>
  53. <a th:href="'/agg_report_list?examId='+${examId}+'&amp;caseId='+${caseId}+'&amp;status=1'">
  54. <i class="fa fa-check-circle-o text-success"></i>
  55. <span>已审核报告</span>
  56. <span class="badge badge-success pull-right assigned-number" th:text="${task.numOfTotalBug - task.numOfUndeal}">50</span>
  57. </a>
  58. </li>
  59. <li>
  60. <a th:href="'/agg_report_list?examId='+${examId}+'&amp;caseId='+${caseId}+'&amp;status=0'">
  61. <i class="fa fa-clock-o text-danger"></i>
  62. <span>未审核报告</span>
  63. <span class="badge badge-danger pull-right unassign-number" th:text="${task.numOfUndeal}">149</span>
  64. </a>
  65. </li>
  66. </ul>
  67. </li>
  68. </th:block>
  69. <th:block layout:fragment="maincontent">
  70. <section class="content-header">
  71. <ul id="myTab" class="nav nav-tabs">
  72. <li class="active">
  73. <a href="#allReport" data-toggle="tab">全部报告</a>
  74. </li>
  75. <li>
  76. <a href="#masterReport" data-toggle="tab">聚类报告</a>
  77. </li>
  78. <li>
  79. <a href="#treeReport" data-toggle="tab">树状报告</a>
  80. </li>
  81. </ul>
  82. <ol class="breadcrumb">
  83. <li>
  84. <a href="/home">
  85. <i class="fa fa-dashboard"></i>
  86. 全部任务
  87. </a>
  88. </li>
  89. <li class="active" th:text="|${task.name} 审核列表|">
  90. </li>
  91. </ol>
  92. </section>
  93. <div id="myTabContent" class="tab-content">
  94. <div class="tab-pane fade in active" id="allReport">
  95. <section class="content container-fluid">
  96. <table id="report-list" class="table table-striped table-bordered" cellpadding="0" width="100%">
  97. <thead>
  98. <tr>
  99. <th>ID</th>
  100. <th>可复现程度</th>
  101. <th>分类</th>
  102. <th>严重程度</th>
  103. <th>描述</th>
  104. <th>审核状态</th>
  105. <th>审核人</th>
  106. <th>所属聚合报告</th>
  107. <th>所属树状报告</th>
  108. </tr>
  109. </thead>
  110. <tbody>
  111. <th:block th:each="report : ${allReports}">
  112. <tr th:class="|row-${report.getId()}|">
  113. <td>
  114. <a th:href="'/report/'+${report.getId()}+'?examId=' + ${examId} + '&amp;caseId=' + ${caseId}" th:text="|ML-${report.getId().substring(10)}|" ></a>
  115. </td>
  116. <td>
  117. <span th:text="${recurrent2String.get(report.recurrent)}"></span>
  118. </td>
  119. <td>
  120. <!--<i class="fa fa-square" style="color: {{ report.print_bug_category_color }};"></i>-->
  121. <span th:text="${report.bugCategory}"></span>
  122. </td>
  123. <td>
  124. <img th:alt="|${severity2String.get(report.severity)} Image|" height="14" th:src="'/static/images/icons/priorities/' + ${report.severity} + '.png'" />
  125. <span th:text="${severity2String.get(report.severity)}"></span>
  126. </td>
  127. <td style="width: 300px;">
  128. <div th:id="'ab-content-' + ${report.id}" data-toggle="collapse" th:attr="data-target='#full-content-' + ${report.id}" class="trunc collapse in" th:text="${report.description}">
  129. </div>
  130. <div th:id="'full-content-' + ${report.id}" data-toggle="collapse" th:attr="data-target='#ab-content-' + ${report.id}" class="full-content collapse">
  131. <span th:text="${report.description}"></span>
  132. <br/>
  133. <!--<img class="my-img-thumbnail pointer" th:src="${imgUrl}"-->
  134. <!--th:each="imgUrl,iterStat : ${report.getImgUrls()}"-->
  135. <!--th:onclick="'javascript:showimage(\''+${imgUrl}+'\');'"/>-->
  136. </div>
  137. </td>
  138. <td>
  139. <label class="label label-warning" th:if="${report.status == 0}">待审核</label>
  140. <label class="label label-success" th:if="${report.status == 1}">已审核</label>
  141. </td>
  142. <td class="report-assignee">
  143. <span th:if="${report.reviewerId != null}" th:text="${reviewMap.get(report.reviewerId)}"></span>
  144. </td>
  145. <td class="report-aggregator">
  146. <span th:if="${!aggregated}">暂无</span>
  147. <!-- 是否已经聚合-->
  148. <a th:if="${aggregated}" th:text="|ML-AG-${report.masterId.substring(10)}|" th:href="'/report?masterId='+${report.masterId}+'&amp;examId='+${examId}+'&amp;caseId='+${caseId}"></a>
  149. </td>
  150. <td>
  151. <span th:if="(${report.getTreeId()==null}) or ${report.getTreeId().length()==4}">暂无</span>
  152. <a th:if="${report.getTreeId()!=null} and ${report.getTreeId().length()!=4}" th:text="|ML-TR-${report.treeId.substring(10)}|" th:href="'/history/report?treeId='+${report.treeId}+'&amp;examId='+${examId}+'&amp;caseId='+${caseId}"></a>
  153. </td>
  154. </tr>
  155. </th:block>
  156. </tbody>
  157. </table>
  158. </section>
  159. </div>
  160. <div class="tab-pane fade" id="masterReport">
  161. <section class="content container-fluid">
  162. <div class="box">
  163. <div class="box-header with-border">
  164. <h3 class="box-title">聚合视图 <span class="badge badge-info" th:text="${aggNum}"></span></h3>
  165. </div><!-- /.box-header -->
  166. <div class="box-body agg-report-list">
  167. <th:block th:each="masterBug : ${master2BugIdsMap}">
  168. <div class="col-md-4">
  169. <div class="box box-solid box-default">
  170. <div class="box-header" id="agg-title-{{aggReport.dup_tag}}">
  171. <div style="overflow: auto;">
  172. <a th:href="@{'/report?masterId=' + ${masterBug.key} + '&amp;examId=' + ${examId} + '&amp;caseId=' + ${caseId}}"
  173. class="pull-left agg-title" th:text="|ML-AG-${masterBug.key.substring(10)}|"></a>
  174. <a th:href="'#dup-list-'+${masterBug.key}"
  175. class="glyphicon glyphicon-menu-hamburger pull-right agg-title"
  176. data-toggle="collapse"></a>
  177. <span class="pull-right" style="margin-right: 5px;">
  178. <label class="badge badge-success" th:if="${bugMap.get(masterBug.key).status == 1}">已审核</label>
  179. <label class="badge badge-warning" th:if="${bugMap.get(masterBug.key).status == 0}">未审核</label>
  180. </span>
  181. <br/>
  182. </div>
  183. <div style="margin-top: 5px;">
  184. <span class="agg-title">聚合报告数<span class="badge badge-default agg-badge" th:text="${masterBug.value.size()}">10</span></span>
  185. </div>
  186. </div>
  187. <div class="sup-title" style="padding: 15px 15px; min-height: 181px;overflow: scroll; max-height: 181px;"
  188. >
  189. <span th:text="${bugMap.get(masterBug.key).description}"></span><br/>
  190. <img class="my-img-thumbnail pointer to-add" th:src="${imgUrl}"
  191. th:each="imgUrl,iterStat : ${bugMap.get(masterBug.key).getImgUrls()}"
  192. th:onclick="'javascript:showimage(\''+${imgUrl}+'\');'"/>
  193. </div>
  194. <ul class="list-group collapse" th:id="'dup-list-' + ${masterBug.key}"
  195. style="max-height: 161px; min-height: 161px; overflow: scroll;" >
  196. <li class="list-group-item list-group-item-inner" th:each="bugId : ${masterBug.value}" >
  197. <div th:id="'report-title-' + ${bugId}">
  198. <span th:text="${bugId}">{{ report.print_id
  199. }}</span>
  200. </div>
  201. <div style="margin-top: 5px" th:text="${bugMap.get(bugId).description}">
  202. {{ report.description }}
  203. </div>
  204. </li>
  205. </ul>
  206. </div>
  207. </div>
  208. </th:block>
  209. </div><!-- /.box-body -->
  210. </div>
  211. </section>
  212. </div>
  213. <div class="tab-pane fade" id="treeReport">
  214. <section class="content container-fluid">
  215. <div class="box">
  216. <div class="box-header with-border">
  217. <h3 class="box-title">树状视图 <span class="badge badge-info" th:text="${treeNum}"></span></h3>
  218. </div><!-- /.box-header -->
  219. <div class="box-body agg-report-list">
  220. <th:block th:each="masterBug : ${tree2BugIdsMap}">
  221. <div class="col-md-4">
  222. <div class="box box-solid box-default">
  223. <div class="box-header" id="agg-title-{{aggReport.dup_tag}}">
  224. <div style="overflow: auto;">
  225. <a th:href="@{'/history/report?treeId=' + ${masterBug.key} + '&amp;examId=' + ${examId} + '&amp;caseId=' + ${caseId}}"
  226. class="pull-left agg-title" th:text="|ML-TR-${masterBug.key.substring(10)}|" ></a>
  227. <a th:href="'#dup-list-'+${masterBug.key}"
  228. class="glyphicon glyphicon-menu-hamburger pull-right agg-title"
  229. data-toggle="collapse"></a>
  230. <span class="pull-right" style="margin-right: 5px;">
  231. <label class="badge badge-success" th:if="${bugMap.get(masterBug.key).status == 1}">已审核</label>
  232. <label class="badge badge-warning" th:if="${bugMap.get(masterBug.key).status == 0}">未审核</label>
  233. <!-- <label class="badge badge-little-green" th:if="${bugMap.get(masterBug.key).status == 0}">未审核</label>-->
  234. </span>
  235. <br/>
  236. </div>
  237. <div style="margin-top: 5px;">
  238. <span class="agg-title">拥有报告数<span class="badge badge-default agg-badge" th:text="${masterBug.value.size()}">10</span></span>
  239. </div>
  240. </div>
  241. <div class="sup-title" style="padding: 15px 15px; min-height: 181px;overflow: scroll; max-height: 181px;"
  242. >
  243. <span th:text="${bugMap.get(masterBug.key).description}"></span><br/>
  244. <img class="my-img-thumbnail pointer to-add" th:src="${imgUrl}"
  245. th:each="imgUrl,iterStat : ${bugMap.get(masterBug.key).getImgUrls()}"
  246. th:onclick="'javascript:showimage(\''+${imgUrl}+'\');'"/>
  247. </div>
  248. <ul class="list-group collapse" th:id="'dup-list-' + ${masterBug.key}"
  249. style="max-height: 161px; min-height: 161px; overflow: scroll;" >
  250. <li class="list-group-item list-group-item-inner" th:each="bugId : ${masterBug.value}" >
  251. <div th:id="'report-title-' + ${bugId}">
  252. <span th:text="${bugId}">{{ report.print_id
  253. }}</span>
  254. </div>
  255. <div style="margin-top: 5px" th:text="${bugMap.get(bugId).description}">
  256. {{ report.description }}
  257. </div>
  258. </li>
  259. </ul>
  260. </div>
  261. </div>
  262. </th:block>
  263. </div><!-- /.box-body -->
  264. </div>
  265. </section>
  266. </div>
  267. </div>
  268. </th:block>
  269. </body>
  270. </html>
  271. <div class="modal fade bs-example-modal-lg text-center" id="imgModal" tabindex="-1" role="dialog"
  272. aria-labelledby="myLargeModalLabel">
  273. <div class="modal-dialog modal-lg" style="display: inline-block; max-width: 900px; max-height: 600px">
  274. <div class="modal-content" style="background: transparent">
  275. <center>
  276. <img id="imgInModalID"
  277. class="carousel-inner img-responsive "
  278. onclick="closeImageViewer()"
  279. onmouseover="this.style.cursor='pointer';this.style.cursor='hand'"
  280. onmouseout="this.style.cursor='default'"
  281. style="max-height: 90vh;
  282. max-width: 90vw;
  283. object-fit: contain;"
  284. />
  285. </center>
  286. </div>
  287. </div>
  288. </div>
  289. <!-- section howModal -->
  290. <div id="howModal" class="modal fade" tabindex="-1" role="dialog">
  291. <div class="modal-dialog">
  292. <div class="modal-content">
  293. <div class="modal-header" style="background-color: #3c8dbc;">
  294. <span style="color: #fff;" class="pull-left"><b>How does system aggregate report <span id="reportId"></span> to <span id="aggReportId"></span>?</b></span>
  295. <button class="close pull-right" data-dismiss="modal">&times;</button>
  296. </div>
  297. <div class="modal-body">
  298. <img src="" class="img-responsive" />
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. <script type="text/javascript">
  304. //显示大图
  305. function showimage(source) {
  306. $("#imgModal").find("#imgInModalID").attr("src", source);
  307. $("#imgModal").modal();
  308. }
  309. //关闭
  310. function closeImageViewer() {
  311. $("#imgModal").modal('hide');
  312. }
  313. </script>
  314. <script src="/static/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
  315. <script src="/static/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
  316. <script src="/static/js/all_reports.js"></script>
  317. <!--<script src="/static/js/app_info.js"></script>-->