index.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. .dateform {
  9. float: left;
  10. width: 120px;
  11. }
  12. .datelabel {
  13. float: left;
  14. width: 120px;
  15. }
  16. </style>
  17. </head>
  18. <body layout:fragment="content">
  19. <nav class="breadcrumb" th:action="@{/government/projectProvinces/index}" th:method="post">
  20. <i class="Hui-iconfont">&#xe67f;</i>
  21. 政府服务管理
  22. <span th:unless="${is_label}" class="c-gray en">&gt; 退二优二</span>
  23. <span th:unless="${is_label}" class="c-gray en">&gt; 列表</span>
  24. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
  25. href="javascript:location.replace(location.href);" title="刷新">
  26. <i class="Hui-iconfont">&#xe68f;</i>
  27. </a>
  28. </nav>
  29. <form id="myForm" th:action="@{/retreatOpt/index}" th:method="get">
  30. <div class="page-container">
  31. <div style="text-align: center;">
  32. <span class="select-box" style="width:200px; margin-right: 20px;">
  33. <select class="select" th:name="type" id="type" placeholder="请选择项目来源">
  34. <option value="">-- 请选择项目来源 --</option>
  35. <option th:value="1" th:text="每年度初上报材料" th:selected="1==${condition.type}"></option>
  36. <option th:value="2" th:text="季度进展情况" th:selected="2==${condition.type}"></option>
  37. <option th:value="3" th:text="项目完成上报材料" th:selected="3==${condition.type}"></option>
  38. <option th:value="4" th:text="需提交会办材料" th:selected="4==${condition.type}"></option>
  39. </select>
  40. </span>
  41. <span class="select-box" style="width:200px; margin-right: 20px;" th:if="${userType}==0">
  42. <select class="select" th:name="street_id" id="street_id" placeholder="请选择板块">
  43. <option value="">-- 请选择板块 --</option>
  44. <option th:each="item : ${streetList}" th:value="${item.id}" th:text="${item.name}"
  45. th:selected="${condition.street_id==item.id}">
  46. </select>
  47. </span>
  48. <span class="select-box" style="width:200px; margin-right: 20px;" th:if="${userType}==0">
  49. <select class="select" th:name="is_read" id="is_read" placeholder="请选择查看状态">
  50. <option value="">-- 请选择查看状态 --</option>
  51. <option th:value="0" th:text="未读" th:selected="0==${condition.is_read}"></option>
  52. <option th:value="1" th:text="已读" th:selected="1==${condition.is_read}"></option>
  53. </select>
  54. </span>
  55. <span class="select-box" style="width:150px; margin-right: 20px;">
  56. <select class="select" th:name="status" id="status" placeholder="请选择状态">
  57. <option value="">-- 请选择状态 --</option>
  58. <option th:value="1" th:text="提交属地审核" th:selected="1==${condition.status}"></option>
  59. <option th:value="2" th:text="退回" th:selected="2==${condition.status}"></option>
  60. <option th:value="3" th:text="待确认接收" th:selected="3==${condition.status}"></option>
  61. <option th:value="4" th:text="接收成功" th:selected="4==${condition.status}"></option>
  62. </select>
  63. </span>
  64. <input style="width:200px;" type="text" class="input-text" placeholder="请输入编号"
  65. id="no" name="no" th:value="${condition.no}"/>
  66. <input type="button" value="搜索" class="btn btn-primary" onclick="$('#myForm').submit();">
  67. </div>
  68. <div class="cl pd-5 bg-1 bk-gray mt-20">
  69. <span class="l" th:if="${userType}==4">
  70. <a th:onclick="'javascript:add(\'新增\',\'/retreatOpt/add\',\'1000\',\'500\');'"
  71. class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  72. </span>
  73. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">0</strong> 条</span>
  74. </div>
  75. <!-- 表格 -->
  76. <table id="index" class="table table-border table-bordered table-bg table-hover"
  77. style="table-layout: fixed;width:100%;">
  78. <thead>
  79. <tr class="text-c">
  80. <th style="width:135px;">编号</th>
  81. <th style="width:135px;">类型</th>
  82. <th style="width:100px;">板块</th>
  83. <th style="width:100px;">提交日期</th>
  84. <th style="width:100px;" th:if="${userType}==0">查看状态</th>
  85. <th style="width:100px;">状态</th>
  86. <th style="width:200px;">操作</th>
  87. </tr>
  88. </thead>
  89. <tbody>
  90. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  91. <td th:text="*{no}" class="text-overflow" th:title="*{no}"></td>
  92. <td th:if="*{type==1}">每年度初上报材料</td>
  93. <td th:if="*{type==2}">季度进展情况</td>
  94. <td th:if="*{type==3}">项目完成上报材料</td>
  95. <td th:if="*{type==4}">需提交会办材料</td>
  96. <td th:text="*{plateName}" class="text-overflow"></td>
  97. <td th:text="*{commit_time}"></td>
  98. <td th:if="*{is_read==false} and ${userType}==0">未读</td>
  99. <td th:if="*{is_read==true} and ${userType}==0">已读</td>
  100. <td th:if="*{status==1}">提交属地审核</td>
  101. <td th:if="*{status==2}">退回</td>
  102. <td th:if="*{status==3}">待确认接收</td>
  103. <td th:if="*{status==4}">接收成功</td>
  104. <td class="td-manage">
  105. <!--<a th:if="${userType}==0" title="查看" href="javascript:;" class="ml-5" style="text-decoration:none"
  106. th:onclick="'javascript:projectDetail(\'查看\',\'/retreatOpt/detail/'+*{id}+'\');'">查看</a>-->
  107. <a title="详情" href="javascript:;" class="ml-5" style="text-decoration:none"
  108. th:onclick="'javascript:projectDetail(\'详情\',\'/retreatOpt/detail/'+*{id}+'\');'">详情</a>
  109. <a th:if="*{canEdit}==true and *{status}==2" title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  110. th:onclick="'javascript:editProject(\'编辑\',\'/retreatOpt/edit/'+*{id}+'\');'">编辑</a>
  111. <a th:if="${userType}==4 and *{canAudit}==true " title="审核" href="javascript:;" class="ml-5" style="text-decoration:none"
  112. th:onclick="'javascript:editProject(\'审核\',\'/retreatOpt/audit/'+*{id}+'\');'">审核</a>
  113. <a th:if="${userType}==0 and *{canAudit}==true " title="待确认" href="javascript:;" class="ml-5" style="text-decoration:none"
  114. th:onclick="'javascript:editProject(\'审核\',\'/retreatOpt/audit/'+*{id}+'\');'">待确认</a>
  115. </td>
  116. </tr>
  117. </tbody>
  118. </table>
  119. <div th:replace="admin/common/page :: page"></div>
  120. </div>
  121. </form>
  122. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  123. <script th:inline="javascript">
  124. //添加
  125. function add(title, url, w, h) {
  126. sessionStorage.removeItem("hidden_array");
  127. var index = layer_show(title, pagePath + url, w, h);
  128. layer.full(index);
  129. }
  130. /*详情*/
  131. function projectDetail(title, url, w, h) {
  132. var index = layer_show(title, pagePath + url, w, h);
  133. layer.full(index);
  134. }
  135. /*编辑*/
  136. function editProject(title, url, w, h) {
  137. sessionStorage.removeItem("hidden_array");
  138. var index = layer_show(title, pagePath + url, w, h);
  139. layer.full(index);
  140. }
  141. </script>
  142. </body>
  143. </html>