task_detail.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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/app_info.css" />
  8. <!-- dataTables -->
  9. <link rel="stylesheet" type="text/css" href="/static/AdminLTE/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css" />
  10. <!-- Select2 -->
  11. <link rel="stylesheet" type="text/css" href="/static/AdminLTE/bower_components/select2/dist/css/select2.min.css" />
  12. </head>
  13. <body>
  14. <th:block layout:fragment="sidebar">
  15. <li>
  16. <a th:href="'/final_reports?examId=' + ${examId} + '&amp;caseId=' + ${caseId}">
  17. <i class="fa fa-calendar-check-o"></i>
  18. <span>预交付报告</span>
  19. </a>
  20. </li>
  21. <li class="treeview">
  22. <a href="#">
  23. <i class="fa fa-list"></i>
  24. <span>Reports</span>
  25. <span class="pull-right-container">
  26. <i class="fa fa-angle-left pull-right"></i>
  27. </span>
  28. </a>
  29. <ul class="treeview-menu" style="display: block;">
  30. <li>
  31. <a href="#">
  32. <i class="fa fa-circle-o"></i>
  33. <span>全部报告</span>
  34. <span class="badge pull-right all-number" th:text="${task.numOfTotalBug}">199</span>
  35. </a>
  36. </li>
  37. <li>
  38. <a href="#">
  39. <i class="fa fa-check-circle-o text-success"></i>
  40. <span>已审核报告</span>
  41. <span class="badge badge-success pull-right assigned-number" th:text="${task.numOfTotalBug - task.numOfUndeal}">50</span>
  42. </a>
  43. </li>
  44. <li>
  45. <a href="#">
  46. <i class="fa fa-clock-o text-danger"></i>
  47. <span>未审核报告</span>
  48. <span class="badge badge-danger pull-right unassign-number" th:text="${task.numOfUndeal}">149</span>
  49. </a>
  50. </li>
  51. </ul>
  52. </li>
  53. </th:block>
  54. <th:block layout:fragment="maincontent">
  55. <section class="content-header">
  56. <h1>Dashboard<small th:text="${task.name}">{{ app.name }}</small></h1>
  57. <ol class="breadcrumb">
  58. <li>
  59. <a href="/home">
  60. <i class="fa fa-dashboard"></i>
  61. 全部任务
  62. </a>
  63. </li>
  64. <li class="active" th:text="|${task.name} Dashboard|">
  65. </li>
  66. </ol>
  67. </section>
  68. <section class="content container-fluid">
  69. <!-- Today Summary -->
  70. <div class="row">
  71. <div class="col-md-4 col-sm-6 col-xs-12">
  72. <div class="info-box bg-aqua all">
  73. <span class="info-box-icon">
  74. </span>
  75. <div class="info-box-content">
  76. <span class="info-box-text">全部报告</span>
  77. <span class="info-box-number" th:text="${task.numOfTotalBug}">{{ count_all }}</span>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="col-md-4 col-sm-6 col-xs-12">
  82. <div class="info-box bg-green assigned">
  83. <span class="info-box-icon">
  84. </span>
  85. <div class="info-box-content">
  86. <span class="info-box-text">已审核</span>
  87. <span class="info-box-number">
  88. <b th:text="${task.numOfTotalBug - task.numOfUndeal}">{{ count_assigned }} </b>
  89. (<span th:text="${#numbers.formatDecimal((1 - task.numOfUndeal * 1.0 / task.numOfTotalBug) * 100, 1, 0)}">40</span>%)
  90. </span>
  91. <!-- Progress Bar -->
  92. <div class="progress">
  93. <div class="progress-bar" th:style="'width: '+${(1 - task.numOfUndeal * 1.0 / task.numOfTotalBug) * 100}+'%;'"></div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="col-md-4 col-sm-6 col-xs-12">
  99. <div class="info-box bg-red unassign">
  100. <span class="info-box-icon">
  101. </span>
  102. <div class="info-box-content">
  103. <span class="info-box-text">未审核</span>
  104. <span class="info-box-number">
  105. <b th:text="${task.numOfUndeal}"></b>
  106. (<span class="" th:text="${#numbers.formatDecimal((task.numOfUndeal * 1.0 / task.numOfTotalBug) * 100, 1, 0)}"></span>%)
  107. </span>
  108. <!-- Progress Bar -->
  109. <div class="progress">
  110. <div class="progress-bar" th:style="'width: '+${(task.numOfUndeal * 1.0 / task.numOfTotalBug) * 100}+'%;'"></div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <!-- Report List Table -->
  117. <div class="assign-div pull-right">
  118. <button th:if="${!aggregated}" id="assign-btn" class="btn btn-sm btn-assign pull-right">
  119. <i class="fa fa-coffee" style="margin-right: 3px;"></i>
  120. <span>自动融合</span>
  121. </button>
  122. <a th:if="${aggregated}" id="agg-view" class="btn btn-sm btn-assign pull-right" th:href="'/agg_report_list?examId=' + ${examId} + '&amp;caseId=' + ${caseId}">
  123. <i class="fa fa-eye" style="margin-right: 3px;"></i>
  124. <span>聚合视图</span>
  125. </a>
  126. </div>
  127. <table id="report-list" class="table table-striped table-bordered" cellpadding="0" width="100%">
  128. <thead>
  129. <tr>
  130. <th>ID</th>
  131. <th>可复现程度</th>
  132. <th>分类</th>
  133. <th>严重程度</th>
  134. <th>描述</th>
  135. <!-- <th>Aggregated Report</th> -->
  136. <th>审核状态</th>
  137. <th>审核人</th>
  138. <th>所属聚合报告</th>
  139. </tr>
  140. </thead>
  141. <tbody>
  142. <th:block th:each="report : ${allReports}">
  143. <tr th:class="|row-${report.id}|">
  144. <td class="report-id" th:value="${report.id}" th:text="|ML-${report.id.substring(10)}|"></td>
  145. <td>
  146. <span th:text="${recurrent2String.get(report.recurrent)}"></span>
  147. </td>
  148. <td>
  149. <!--<i class="fa fa-square" style="color: {{ report.print_bug_category_color }};"></i>-->
  150. <span th:text="${report.bugCategory}"></span>
  151. </td>
  152. <td>
  153. <img th:alt="|${severity2String.get(report.severity)} Image|" height="14" th:src="'/static/images/icons/priorities/' + ${report.severity} + '.png'" />
  154. <span th:text="${severity2String.get(report.severity)}"></span>
  155. </td>
  156. <td style="width: 300px;">
  157. <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}">
  158. </div>
  159. <div th:id="'full-content-' + ${report.id}" data-toggle="collapse" th:attr="data-target='#ab-content-' + ${report.id}" class="full-content collapse">
  160. <span th:text="${report.description}"></span>
  161. <br/>
  162. <!--<img class="my-img-thumbnail pointer" th:src="${imgUrl}"-->
  163. <!--th:each="imgUrl,iterStat : ${report.getImgUrls()}"-->
  164. <!--th:onclick="'javascript:showimage(\''+${imgUrl}+'\');'"/>-->
  165. </div>
  166. </td>
  167. <td>
  168. <label class="label label-warning" th:if="${report.status == 0}">待审核</label>
  169. <label class="label label-success" th:if="${report.status == 1}">已审核</label>
  170. </td>
  171. <td class="report-assignee">
  172. <span th:if="${report.reviewerId != null}" th:text="${reviewMap.get(report.reviewerId)}"></span>
  173. </td>
  174. <td class="report-aggregator">
  175. <span th:if="${!aggregated}">暂无</span>
  176. <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>
  177. </td>
  178. </tr>
  179. </th:block>
  180. </tbody>
  181. </table>
  182. </section>
  183. <!-- section howModal -->
  184. <div id="howModal" class="modal fade" tabindex="-1" role="dialog">
  185. <div class="modal-dialog">
  186. <div class="modal-content">
  187. <div class="modal-header" style="background-color: #3c8dbc;">
  188. <span style="color: #fff;" class="pull-left"><b>How does system aggregate report <span id="reportId"></span> to <span id="aggReportId"></span>?</b></span>
  189. <button class="close pull-right" data-dismiss="modal">&times;</button>
  190. </div>
  191. <div class="modal-body">
  192. <img src="" class="img-responsive" />
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. </th:block>
  198. </body>
  199. </html>
  200. <div class="modal fade bs-example-modal-lg text-center" id="imgModal" tabindex="-1" role="dialog"
  201. aria-labelledby="myLargeModalLabel">
  202. <div class="modal-dialog modal-lg" style="display: inline-block; width: 300px;">
  203. <div class="modal-content">
  204. <img id="imgInModalID"
  205. class="carousel-inner img-responsive img-rounded"
  206. onclick="closeImageViewer()"
  207. onmouseover="this.style.cursor='pointer';this.style.cursor='hand'"
  208. onmouseout="this.style.cursor='default'"
  209. />
  210. </div>
  211. </div>
  212. </div>
  213. <script src="/static/AdminLTE/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
  214. <script src="/static/AdminLTE/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
  215. <script src="/static/AdminLTE/bower_components/select2/dist/js/select2.min.js"></script>
  216. <script src="/static/js/app_info.js"></script>