Browse Source

修复聚合报告内补充报告为0时,没有数据的情况改为提示没有补充报告

insomniaLee 6 years ago
parent
commit
d42f9401c2
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/main/resources/templates/agg_report_new.html

+ 7 - 2
src/main/resources/templates/agg_report_new.html

@@ -94,10 +94,13 @@
                             <td class="dup-create-time" th:text="${#dates.format(createTime, 'yyyy-MM-dd')}"></td>
                             <td class="attr-title">Bug 严重性</td>
                             <td class="dup-severity">
-                                <span th:each="severityCount : ${severityCounts}">
+                                <span th:each="severityCount : ${severityCounts}" >
                                     <span th:text="${severityCount.key}"></span>
                                     <span class="badge" th:text="${severityCount.value}"></span>
                                 </span>
+                                <span th:if="${severityCounts.size()}==0">
+                                    该报告没有补充报告
+                                </span>
                             </td>
                         </tr>
                         <tr>
@@ -109,6 +112,9 @@
                                     <span th:text="${categoryCounts.key}"></span>
                                     <span class="badge" th:text="${categoryCounts.value}"></span>
                                 </span>
+                                <span th:if="${categoryCounts.size()}==0">
+                                    该报告没有补充报告
+                                </span>
                             </td>
                         </tr>
                         <tr>
@@ -369,7 +375,6 @@
                      style="max-height: 90vh;
                      max-width: 90vw;
                      object-fit: contain;"
-
                 />
             </center>
         </div>