notify_list.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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="queryStr" 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:unless="${condition.user_type}==3">
  39. <a onclick="notify_archive()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe60e;</i> 归档</a>
  40. <a th:onclick="'javascript:notify_add(\'新增\',\'/government/notify/add\',\'800\',\'500\');'" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  41. </span>
  42. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">54</strong> 条</span>
  43. </div>
  44. <table id="notifyTb" class="table table-border table-bordered table-bg table-hover">
  45. <thead>
  46. <tr class="text-c">
  47. <th th:unless="${condition.user_type}==3"><input type="checkbox" name="" value="" /></th>
  48. <th >标题</th>
  49. <th width="44">类型</th>
  50. <th width="70">来源</th>
  51. <th width="150">接收日期</th>
  52. <th width="150" th:unless="${condition.user_type}==3">推送日期</th>
  53. <th width="70">状态</th>
  54. <th width="100">有效截止日期</th>
  55. <th width="120">操作</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  60. <!--<td><input type="checkbox" value="2" name=""/></td>-->
  61. <td th:unless="${condition.user_type}==3"><input type="checkbox" th:id="*{id}" th:notify_detail_id="*{notify_detail_id}" th:value="*{id}" name="id"/></td>
  62. <td th:text="*{title}"></td>
  63. <td th:text="*{type_code}"></td>
  64. <td>
  65. <span th:text="*{source_name}">政府</span>
  66. </td>
  67. <td th:text="*{create_time}"></td>
  68. <td th:unless="${condition.user_type}==3">
  69. <span th:if="*{push_date}" th:text="*{push_date}">已推送</span>
  70. <span th:unless="*{push_date}" th:text="未推送">未推送</span>
  71. </td>
  72. <td class="td-status">
  73. <span class="label radius" th:unless="*{is_read}">未读</span>
  74. <span class="label radius label-success" th:if="*{is_read}">已读</span>
  75. </td>
  76. <td>
  77. <span th:if="*{expiry_date}!=''" th:text="*{expiry_date}"></span>
  78. <span th:if="*{expiry_date}==''" th:text="无有效日期">无</span>
  79. </td>
  80. <td class="td-manage" th:unless="${condition.user_type}==*{source}">
  81. <div th:if="${condition.user_type}==4">
  82. <a title="详情" th:onclick="'javascript:notify_info(\'详情\',\'/government/notify/info/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a>
  83. <a title="推送" th:onclick="'javascript:notify_edit(\'推送\',\'/government/notify/directPush/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">推送</a>
  84. <a title="阅读情况" th:onclick="'javascript:notify_edit(\'阅读情况\',\'/government/notifyDetail/list/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">阅读情况</a>
  85. </div>
  86. <div th:if="${condition.user_type}==1">
  87. <a title="详情" th:onclick="'javascript:notify_info(\'详情\',\'/government/notify/info/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a>
  88. <a title="推送" th:onclick="'javascript:notify_edit(\'推送\',\'/government/notify/directPush/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">推送</a>
  89. <a title="阅读情况" th:onclick="'javascript:notify_edit(\'阅读情况\',\'/government/notifyDetail/list/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">阅读情况</a>
  90. </div>
  91. <div th:if="${condition.user_type}==3">
  92. <a title="详情" th:onclick="'javascript:notify_info(\'详情\',\'/government/notify/info/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a>
  93. </div>
  94. </td>
  95. <td class="td-manage" th:if="${condition.user_type}==*{source}">
  96. <a th:unless="*{is_push}"><a th:unless="*{notify_detail_id}" title="编辑" 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></a>
  97. <a title="详情" th:onclick="'javascript:notify_info(\'详情\',\'/government/notify/info/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a>
  98. <a title="推送" th:onclick="'javascript:notify_edit(\'编辑\',\'/government/notify/directPush/'+*{id}+'/'+*{notify_detail_id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">推送</a>
  99. <a title="阅读情况" th:onclick="'javascript:notify_readDetail(\'阅读情况\',\'/government/notifyDetail/list/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">阅读情况</a>
  100. </td>
  101. </tr>
  102. </tbody>
  103. </table>
  104. <div th:replace="admin/common/page :: page"></div>
  105. </div>
  106. </form>
  107. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  108. <script type="text/javascript" th:src="@{/js/street/notify/notify_list.js}"></script>
  109. <script th:inline="javascript">
  110. laydate.render({
  111. elem: '#begin_date' //指定元素
  112. });
  113. laydate.render({
  114. elem: '#end_date' //指定元素
  115. });
  116. </script>
  117. </body>
  118. </html>