notify_list.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. <style>
  8. .text-c{text-align:left}
  9. </style>
  10. </head>
  11. <body layout:fragment="content">
  12. <nav class="breadcrumb">
  13. <i class="Hui-iconfont">&#xe67f;</i>
  14. 首页
  15. <span class="c-gray en">&gt;</span>通告管理
  16. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  17. <i class="Hui-iconfont">&#xe68f;</i>
  18. </a>
  19. </nav>
  20. <form id="myForm" th:action="@{/government/notify/list}" th:method="get">
  21. <div class="page-container">
  22. <div class="text-c">
  23. <span class="select-box" style="width:200px">
  24. <select th:id="type" class="select" th:name="type" >
  25. <option value="">--请选择类型--</option>
  26. <option th:each="item : ${notify_type}" th:value="${item.value}" th:text="${item.code}" th:selected="${condition.type}==${item.value}">
  27. </option>
  28. </select>
  29. </span>
  30. <input type="text" class="input-text" style="width:200px" placeholder="请输入来源或标题" name="keyword" th:value="${condition.keyword}"/>
  31. <label>开始日期:</label><input type="text" class="input-text" style="width:200px" readonly placeholder="请输入开始日期" id="begin_date" name="begin_date" th:value="${condition.begin_date}"/>
  32. <label>结束日期:</label><input type="text" class="input-text" style="width:200px" readonly placeholder="请输入结束日期" id="end_date" name="end_date" th:value="${condition.end_date}"/>
  33. <button type="submit" class="btn btn-primary">
  34. 搜索
  35. </button>
  36. </div>
  37. <div class="cl pd-5 bg-1 bk-gray mt-20">
  38. <span class="l" th:if="${is_admin} eq true" ><!-- -->
  39. <!-- <a href="javascript:;" th:onclick="'javascript:notify_status(\'/government/notify/status\',\'false\');'" class="btn btn-primary radius">启用</a>
  40. <a href="javascript:;" th:onclick="'javascript:notify_status(\'/government/notify/status\',\'true\');'" class="btn btn-primary radius">禁用</a>
  41. -->
  42. <!-- <a href="javascript:;" onclick="notify_del()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> -->
  43. <a href="javascript:;" onclick="notify_archive()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe60e;</i> 归档</a>
  44. <a href="javascript:;" th:onclick="'javascript:notify_add(\'新增\',\'/government/notify/add\',\'800\',\'500\');'" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  45. </span>
  46. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">54</strong> 条</span>
  47. </div>
  48. <table id="notifyTb" class="table table-border table-bordered table-bg table-hover" style="table-layout: fixed;width:100%;">
  49. <thead>
  50. <tr class="text-c">
  51. <th><input type="checkbox" name="" value=""/></th>
  52. <th style="width:250px;">标题</th>
  53. <th width="44">类型</th>
  54. <th>来源</th>
  55. <th style="width:150px;">接收日期</th>
  56. <th style="width:150px;">推送日期</th>
  57. <th>有效截止日期</th>
  58. <th style="width:150px;">操作</th>
  59. </tr>
  60. </thead>
  61. <tbody>
  62. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  63. <!--<td><input type="checkbox" value="2" name=""/></td>-->
  64. <td><input type="checkbox" th:id="*{id}" th:value="*{id}" name="id"/></td>
  65. <td th:text="*{title}" class="text-overflow" th:title="*{title}"></td>
  66. <td th:text="*{type_code}"></td>
  67. <td th:text="*{source_name}"></td>
  68. <td th:text="*{create_time}"></td>
  69. <td>
  70. <span th:if="*{push_date}" th:text="*{push_date}">已推送</span>
  71. <span th:unless="*{push_date}" th:text="未推送">未推送</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" th:if="*{source}=='0'">
  78. <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>
  79. <a th:unless="*{push_date}" href="javascript:;" onclick="notify_edit('编辑','admin-add.html','2','800','500')" th:onclick="'javascript:notify_edit(\'编辑\',\'/government/notify/edit/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">编辑</a>
  80. <a title="推送" href="javascript:;" onclick="notify_detailInfo('详情','admin-add.html','2','800','500')" th:onclick="'javascript:notify_detailInfo(\'推送\',\'/government/notify/directPush/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">推送</a>
  81. <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>
  82. </td>
  83. <td class="td-manage" th:unless="*{source}=='0'">
  84. <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>
  85. <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>
  86. </td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. <div th:replace="admin/common/page :: page"></div>
  91. </div>
  92. </form>
  93. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  94. <script type="text/javascript" th:src="@{/js/government/notify/notify_list.js}"></script>
  95. <script th:inline="javascript">
  96. laydate.render({
  97. elem: '#begin_date' //指定元素
  98. });
  99. laydate.render({
  100. elem: '#end_date' //指定元素
  101. });
  102. </script>
  103. </body>
  104. </html>