notify_list_archive.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>园区通告管理</title>
  7. </head>
  8. <body layout:fragment="content">
  9. <nav class="breadcrumb">
  10. <i class="Hui-iconfont">&#xe67f;</i>
  11. 首页
  12. <span class="c-gray en">&gt;</span>归档管理
  13. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  14. <i class="Hui-iconfont">&#xe68f;</i>
  15. </a>
  16. </nav>
  17. <form id="myForm" th:action="@{/government/notify/listByStatus}" th:method="get">
  18. <div class="page-container">
  19. <div class="text-c">
  20. <input type="text" class="input-text keyword" style="width:250px" placeholder="请输入标题" name="keyword" th:value="${condition.keyword}"/>
  21. <label>开始日期:</label><input type="text" class="input-text" style="width:250px" readonly placeholder="请输入开始日期" id="begin_date" name="begin_date" th:value="${condition.begin_date}"/>
  22. <label>结束日期:</label><input type="text" class="input-text" style="width:250px" readonly placeholder="请输入结束日期" id="end_date" name="end_date" th:value="${condition.end_date}"/>
  23. <button type="submit" class="btn btn-primary">
  24. 搜索
  25. </button>
  26. </div>
  27. <div class="cl pd-5 bg-1 bk-gray mt-20">
  28. <span class="l">
  29. <a onClick="report_export()" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe640;</i> 导出Excel</a>
  30. </span>
  31. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">54</strong> 条</span>
  32. </div>
  33. <table id="notifyTb" class="table table-border table-bordered table-bg table-hover">
  34. <thead>
  35. <tr class="text-c">
  36. <th>标题</th>
  37. <th>类型</th>
  38. <th>接收日期</th>
  39. <th>推送日期</th>
  40. <th>有效截止日期</th>
  41. <th width="100">操作</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  46. <!--<td><input type="checkbox" value="2" name=""/></td>-->
  47. <!--<td><input type="checkbox" th:id="*{id}" value="" name=""/></td>-->
  48. <td th:text="*{title}"></td>
  49. <td th:text="*{type_code}"></td>
  50. <td th:text="*{create_time}"></td>
  51. <td>
  52. <span th:if="*{push_date}" th:text="*{push_date}">已推送</span>
  53. <span th:unless="*{push_date}" th:text="未推送">未推送</span>
  54. </td>
  55. <td>
  56. <span th:if="*{expiry_date}!=''" th:text="*{expiry_date}"></span>
  57. <span th:if="*{expiry_date}==''" th:text="无有效日期">无</span>
  58. </td>
  59. <td class="td-manage">
  60. <a href="javascript:;" onclick="notify_info('详情','admin-add.html','2','800','500')" th:onclick="'javascript:notify_info(\'详情\',\'/government/notify/info/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a>
  61. <a title="阅读情况" href="javascript:;" onclick="notify_detailInfo('详情','admin-add.html','2','800','500')" th:onclick="'javascript:notify_detailInfo(\'阅读情况\',\'/government/notifyDetail/list/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">阅读情况</a>
  62. </td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. <div th:replace="admin/common/page :: page"></div>
  67. </div>
  68. </form>
  69. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  70. <script type="text/javascript" th:src="@{/js/government/notify/notify_list.js}"></script>
  71. <script th:inline="javascript">
  72. function report_export(){
  73. window.open(pagePath + "/export/notifyReport?keyword="+$(".keyword").val());
  74. }
  75. laydate.render({
  76. elem: '#begin_date' //指定元素
  77. });
  78. laydate.render({
  79. elem: '#end_date' //指定元素
  80. });
  81. </script>
  82. </body>
  83. </html>