list.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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" th:action="@{/projectDeclaration/index}" th:method="post">
  10. <i class="Hui-iconfont">&#xe67f;</i>
  11. 首页
  12. <span th:unless="${is_label}" class="c-gray en">&gt; 项目申报</span>
  13. <span th:unless="${is_label}" class="c-gray en">&gt; 列表</span>
  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="@{/project/list}" th:method="post" >
  19. <div class="page-container">
  20. <div class="text-c">
  21. <input type="text" class="input-text" style="width:250px" placeholder="请输入关键字搜索" id="keyword" name="keyword" th:value="${keyword}"/>
  22. <input type="button" value="搜索" class="btn btn-primary" onclick="$('#myForm').submit();">
  23. </div>
  24. <div class="cl pd-5 bg-1 bk-gray mt-20">
  25. <span class="l">
  26. <a th:onclick="'javascript:open_dialog(\'新增\',\'/project/add\',\'1000\',\'500\');'" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  27. </span>
  28. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span>
  29. </div>
  30. <!-- 表格 -->
  31. <table id="index" class="table table-border table-bordered table-bg table-hover" style="table-layout: fixed;width:100%;">
  32. <thead>
  33. <tr class="text-c">
  34. <th>编号</th>
  35. <th>年份</th>
  36. <th>项目大类</th>
  37. <th>项目小类</th>
  38. <th>互斥类</th>
  39. <th>是否技改</th>
  40. <th>是否申请类</th>
  41. <th>责任单位</th>
  42. <th>操作</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  47. <td th:text="${iterStat.index+1}"></td>
  48. <td th:text="*{project_year}"></td>
  49. <td th:text="*{project_type_name}"></td>
  50. <td th:text="*{project_name}" class="text-overflow" th:title="*{project_name}"></td>
  51. <td th:text="*{mutex}"></td>
  52. <td class="td-status">
  53. <span class="label radius" th:unless="*{is_technical}">否</span>
  54. <span class="label radius label-success" th:if="*{is_technical}">是</span>
  55. </td>
  56. <td class="td-status">
  57. <span class="label radius" th:unless="*{is_application}">否</span>
  58. <span class="label radius label-success" th:if="*{is_application}">是</span>
  59. </td>
  60. <td th:text="*{department_name}"></td>
  61. <td class="td-manage">
  62. <a title="编辑" href="javascript:;" th:onclick="'javascript:open_dialog(\'编辑项目名称\',\'/project/edit/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">编辑</a>
  63. <a title="删除" href="javascript:;" th:onclick="'javascript:project_del(\'/project/delete/'+*{id}+'\');'" class="ml-5" style="text-decoration:none">删除</a>
  64. </td>
  65. </tr>
  66. </tbody>
  67. </table>
  68. <div th:replace="admin/common/page :: page"></div>
  69. </div>
  70. </form>
  71. <script type="text/javascript" th:src="@{/js/government/project/project_list.js}"></script>
  72. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  73. <script th:inline="javascript">
  74. </script>
  75. </body>
  76. </html>