shenhao vor 5 Jahren
Ursprung
Commit
62922f98e4
1 geänderte Dateien mit 12 neuen und 3 gelöschten Zeilen
  1. 12 3
      src/main/resources/templates/sys/fx/curator/homeworkIndex.html

+ 12 - 3
src/main/resources/templates/sys/fx/curator/homeworkIndex.html

@@ -87,17 +87,26 @@
 					<td th:text="${item.get('create_time')}" ></td>
 					<td><a class="tablelink" href="javascript:;" th:onclick="'updateById(\''+${item.get('file_keys')}+'\')'">[[${item.get('pictureCount')}]]</a></td>
 					<td>
-						<a th:href="@{/sys/admin/curator/homeworkInfoVip.html(vipId=${item.get('vip_id')},subject='语文',queryDate=${item.get('create_time')},libId=${search.get('libId')},childName=${item.get('child_name')})}">
+						<a th:if="${item.get('count1') > 0}" th:href="@{/sys/admin/curator/homeworkInfoVip.html(vipId=${item.get('vip_id')},subject='语文',queryDate=${item.get('create_time')},libId=${search.get('libId')},childName=${item.get('child_name')})}">
+							[[${item.get('count1')}]]
+						</a>
+						<a th:if="${item.get('count1') == 0}">
 							[[${item.get('count1')}]]
 						</a>
 					</td>
 					<td>
-						<a th:href="@{/sys/admin/curator/homeworkInfoVip.html(vipId=${item.get('vip_id')},subject='数学',queryDate=${item.get('create_time')},libId=${search.get('libId')},childName=${item.get('child_name')})}">
+						<a th:if="${item.get('count2') > 0}"  th:href="@{/sys/admin/curator/homeworkInfoVip.html(vipId=${item.get('vip_id')},subject='数学',queryDate=${item.get('create_time')},libId=${search.get('libId')},childName=${item.get('child_name')})}">
+							[[${item.get('count2')}]]
+						</a>
+						<a th:if="${item.get('count2') == 0}">
 							[[${item.get('count2')}]]
 						</a>
 					</td>
 					<td>
-						<a th:href="@{/sys/admin/curator/homeworkInfoVip.html(vipId=${item.get('vip_id')},subject='英语',queryDate=${item.get('create_time')},libId=${search.get('libId')},childName=${item.get('child_name')})}">
+						<a th:if="${item.get('count3') > 0}" th:href="@{/sys/admin/curator/homeworkInfoVip.html(vipId=${item.get('vip_id')},subject='英语',queryDate=${item.get('create_time')},libId=${search.get('libId')},childName=${item.get('child_name')})}">
+							[[${item.get('count3')}]]
+						</a>
+						<a th:if="${item.get('count3') == 0}">
 							[[${item.get('count3')}]]
 						</a>
 					</td>