index.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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/projectIntelligent/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="@{/government/projectIntelligent/index}" th:method="post">
  30. <div class="page-container">
  31. <div style="text-align: center;">
  32. <label class="" style="width: 80px">项目标题:</label>
  33. <input style="width:200px;" type="text" class="input-text" placeholder="请输入项目标题"
  34. id="projectName" name="projectName" th:value="${projectName}"/>
  35. <!--<label class="" style="width: 80px">申报项:</label>
  36. <input style="width:200px;" type="text" class="input-text" placeholder="请输入申报项"
  37. id="projectType" name="projectType" th:value="${projectType}"/>-->
  38. <label>项目来源:</label>
  39. <span class="select-box" style="width:200px; margin-right: 20px;">
  40. <select class="select" th:name="projectSource" id="projectSource" placeholder="请选择项目来源">
  41. <option value="">-- 请选择项目来源 --</option>
  42. <option th:value="1" th:text="国家" th:selected="1==${projectSource}"></option>
  43. <option th:value="2" th:text="江苏省" th:selected="2==${projectSource}"></option>
  44. <option th:value="3" th:text="苏州市" th:selected="3==${projectSource}"></option>
  45. <option th:value="4" th:text="高新区" th:selected="4==${projectSource}"></option>
  46. </select>
  47. </span>
  48. <input type="button" value="搜索" class="btn btn-primary" onclick="$('#myForm').submit();">
  49. </div>
  50. <div class="cl pd-5 bg-1 bk-gray mt-20">
  51. <span class="l">
  52. <a th:onclick="'javascript:add1(\'新增\',\'/government/projectIntelligent/add\',\'1000\',\'500\');'"
  53. class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  54. </span>
  55. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">0</strong> 条</span>
  56. </div>
  57. <!-- 表格 -->
  58. <table id="index" class="table table-border table-bordered table-bg table-hover"
  59. style="table-layout: fixed;width:100%;">
  60. <thead>
  61. <tr class="text-c">
  62. <!--<th style="width:135px;">项目标题</th>-->
  63. <th style="width:135px;">项目标题</th>
  64. <th style="width:100px;">项目来源</th>
  65. <th style="width:100px;">发布日期</th>
  66. <th style="width:100px;">状态</th>
  67. <th style="width:200px;">操作</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  72. <td th:text="*{project_name}" class="text-overflow" th:title="*{project_name}"></td>
  73. <!--<td th:text="*{project_service_type_name}" class="text-overflow"></td>-->
  74. <td th:if="*{project_source!='1' && project_source!='2'&& project_source!='3'&& project_source!='4'}"></td>
  75. <td th:if="*{project_source=='1'}">国家</td>
  76. <td th:if="*{project_source=='2'}">江苏省</td>
  77. <td th:if="*{project_source=='3'}">苏州市</td>
  78. <td th:if="*{project_source=='4'}">高新区</td>
  79. <td th:text="*{release_date}"></td>
  80. <td th:if="*{status=='0'}">待发布</td>
  81. <td th:if="*{status=='1'}">已发布</td>
  82. <td class="td-manage">
  83. <a title="详情" href="javascript:;" class="ml-5" style="text-decoration:none"
  84. th:onclick="'javascript:projectDetail(\'详情\',\'/government/projectIntelligent/detail/'+*{id}+'\');'">详情</a>
  85. <a title="编辑" href="javascript:;" class="ml-5" style="text-decoration:none"
  86. th:onclick="'javascript:editProject(\'编辑\',\'/government/projectIntelligent/edit/'+*{id}+'\');'">编辑</a>
  87. <!--<a title="填报情况" th:if="*{status=='1'}" href="javascript:;"
  88. class="ml-5" style="text-decoration:none"
  89. th:onclick="'javascript:notify_detailInfo(\'填报情况\',\'/government/projectIntelligent/fillingDetail/'+*{id}+'\',\'800\',\'500\');'">填报情况</a>
  90. <a title="已推送" th:if="*{status=='1'}" href="javascript:;"
  91. class="ml-5" style="text-decoration:none"
  92. th:onclick="'javascript:notify_detailInfo(\'已推送\',\'/government/projectIntelligent/pushed/'+*{id}+'\',\'800\',\'500\');'">已推送</a>
  93. <a title="推送" th:if="*{status=='1'}" href="javascript:;"
  94. class="ml-5" style="text-decoration:none"
  95. th:onclick="'javascript:notify_addPush(\'推送\',\'/government/projectIntelligent/directPush/'+*{id}+'\',\'800\',\'500\');'">推送</a>-->
  96. <!--<a title="推送" th:if="*{status=='1'}" href="javascript:;"
  97. class="ml-5" style="text-decoration:none"
  98. th:onclick="'javascript:notify_detailInfo(\'推送\',\'/government/projectIntelligent/push_new/'+*{id}+'\',\'800\',\'500\');'">推送</a>-->
  99. <a title="删除" th:if="*{status=='0'}" href="javascript:;" class="ml-5" style="text-decoration:none"
  100. th:onclick="'javascript:deleteProject(\''+*{id}+'\');'">删除</a>
  101. </td>
  102. </tr>
  103. </tbody>
  104. </table>
  105. <div th:replace="admin/common/page :: page"></div>
  106. </div>
  107. </form>
  108. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  109. <script th:inline="javascript">
  110. //添加
  111. function add1(title, url, w, h) {
  112. sessionStorage.removeItem("hidden_array");
  113. var index = layer_show(title, pagePath + url, w, h);
  114. layer.full(index);
  115. }
  116. /*详情*/
  117. function projectDetail(title, url, w, h) {
  118. var index = layer_show(title, pagePath + url, w, h);
  119. layer.full(index);
  120. }
  121. /*编辑*/
  122. function editProject(title, url, w, h) {
  123. sessionStorage.removeItem("hidden_array");
  124. var index = layer_show(title, pagePath + url, w, h);
  125. layer.full(index);
  126. }
  127. /*删除*/
  128. function deleteProject(id) {
  129. layer.confirm('确认要删除吗?', function (index) {
  130. $.ajax({
  131. type: "GET",
  132. dataType: "json",
  133. url: pagePath + "/government/projectIntelligent/delete/" + id,
  134. success: function (result) {
  135. if (result.success) {
  136. smileMessage(result.message)
  137. setTime();
  138. } else {
  139. errorMessage(result.message);
  140. }
  141. },
  142. error: function () {
  143. errorMessage('系统错误!');
  144. }
  145. });
  146. });
  147. }
  148. function notify_addPush(title, url, w, h) {
  149. layer_show(title, pagePath + url, w, h);
  150. }
  151. function notify_detailInfo(title, url, w, h) {
  152. var index = layer_show(title, pagePath + url, w, h);
  153. layer.full(index);
  154. }
  155. </script>
  156. </body>
  157. </html>