notify_list_archive.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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>归档管理 <span class="c-gray en">&gt;</span>
  13. 通知公告
  14. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  15. <i class="Hui-iconfont">&#xe68f;</i>
  16. </a>
  17. </nav>
  18. <form id="myForm" th:action="@{/government/notify/listByStatus}" th:method="get">
  19. <div class="page-container">
  20. <div class="text-c">
  21. <input type="text" class="input-text keyword" style="width:250px" placeholder="请输入标题" name="keyword" th:value="${condition.keyword}"/>
  22. <label>开始日期:</label><input type="text" class="input-text" style="width:250px" readonly placeholder="输入开始日期" id="begin_date" name="begin_date" th:value="${condition.begin_date}"/>
  23. <label>结束日期:</label><input type="text" class="input-text" style="width:250px" readonly placeholder="输入结束日期" id="end_date" name="end_date" th:value="${condition.end_date}"/>
  24. <button type="submit" class="btn btn-primary">
  25. 搜索
  26. </button>
  27. </div>
  28. <div class="cl pd-5 bg-1 bk-gray mt-20">
  29. <span class="l">
  30. <a onClick="report_export()" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe640;</i> 导出Excel</a>
  31. </span>
  32. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">54</strong> 条</span>
  33. </div>
  34. <table id="notifyTb" class="table table-border table-bordered table-bg table-hover">
  35. <thead>
  36. <tr class="text-c">
  37. <!--<th><input type="checkbox" name="" value="" /></th>-->
  38. <th>标题</th>
  39. <th>类型</th>
  40. <th>来源</th>
  41. <th>接收日期</th>
  42. <th>推送日期</th>
  43. <th>状态</th><!--
  44. <th>置顶</th> -->
  45. <th>有效截止日期</th>
  46. <th width="100">操作</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  51. <!--<td><input type="checkbox" value="2" name=""/></td>-->
  52. <!--<td><input type="checkbox" th:id="*{id}" th:notify_detail_id="*{notify_detail_id}" value="" name=""/></td>-->
  53. <td th:text="*{title}"></td>
  54. <td th:text="*{type_code}"></td>
  55. <td >
  56. <span th:if="*{source}==0">政府</span>
  57. <span th:if="*{source}==1">园区</span>
  58. <span th:if="*{source}==4">街道</span>
  59. </td>
  60. <td th:text="*{create_time}"></td>
  61. <td>
  62. <span th:if="*{push_date}" th:text="*{push_date}">已推送</span>
  63. <span th:unless="*{push_date}" th:text="未推送">未推送</span>
  64. </td>
  65. <td class="td-status">
  66. <span class="label radius" th:unless="*{is_read}">未读</span>
  67. <span class="label radius label-success" th:if="*{is_read}">已读</span>
  68. </td>
  69. <!-- <td class="td-status">
  70. <span class="label radius" th:unless="*{is_top}">否</span>
  71. <span class="label radius label-success" th:if="*{is_top}">置顶</span>
  72. </td> -->
  73. <td>
  74. <span th:if="*{expiry_date}!=''" th:text="*{expiry_date}"></span>
  75. <span th:if="*{expiry_date}==''" th:text="无有效日期">无</span>
  76. </td>
  77. <td class="td-manage">
  78. <a title="详情" 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>
  79. <a title="阅读情况" href="javascript:;" onclick="notify_readDetail('通知公告详情','admin-add.html','2','800','500')" th:onclick="'javascript:notify_readDetail(\'阅读情况\',\'/government/notifyDetail/list/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">阅读情况</a>
  80. </td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. <div th:replace="admin/common/page :: page"></div>
  85. </div>
  86. </form>
  87. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  88. <script type="text/javascript" th:src="@{/js/street/notify/notify_list.js}"></script>
  89. <script th:inline="javascript">
  90. function report_export(){
  91. window.open(pagePath + "/export/notifyReport?keyword="+$(".keyword").val());
  92. }
  93. laydate.render({
  94. elem: '#begin_date' //指定元素
  95. });
  96. laydate.render({
  97. elem: '#end_date' //指定元素
  98. });
  99. </script>
  100. </body>
  101. </html>