apply_list.html 5.0 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. .conditionInput {
  9. width:250px;
  10. }
  11. .conditionDate {
  12. width:150px;
  13. }
  14. </style>
  15. </head>
  16. <body layout:fragment="content">
  17. <nav class="breadcrumb" th:action="@{/projectApplication/list}" th:method="post">
  18. <i class="Hui-iconfont">&#xe67f;</i>
  19. 首页
  20. <span th:unless="${is_label}" class="c-gray en">&gt; 我的申报项目</span>
  21. <input type="hidden" id="project_year_date"th:value="${searchCondition.project_year}"/>
  22. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  23. <i class="Hui-iconfont">&#xe68f;</i>
  24. </a>
  25. </nav>
  26. <form id="myForm" th:action="@{/projectApplication/list}" th:method="get" >
  27. <div class="page-container">
  28. <div class="clearfix">
  29. <span class="select-box" style="width:140px;">
  30. <select class="select" th:name="project_year" id="project_year" onchange="changeProjectByYear()">
  31. <option value="">-- 请选择年份 --</option>
  32. </select>
  33. </span>
  34. <span class="select-box conditionInput" >
  35. <select class="select" th:name="project_type" id="project_type" >
  36. <option value="" >-- 请选择项目类别 --</option>
  37. <option th:each="item : ${projectTypeList}" th:value="${item.id}"
  38. th:text="${item.type_name}" th:selected = "${searchCondition.project_type}==${item.id}">
  39. </option>
  40. </select>
  41. </span>
  42. <label>项目名称:</label>
  43. <input type="text" class="input-text conditionInput" placeholder="请输入项目名称查询" id="project_name" name="project_name" th:value="${searchCondition.project_name}"/>
  44. <label>申请日期:</label>
  45. <input type="text" class="input-text conditionDate" id="startTime" name="startTime" th:value="${searchCondition.startTime}"/>
  46. <label> - </label>
  47. <input type="text" class="input-text conditionDate" th:id="endTime" th:name="endTime" th:value="${searchCondition.endTime}"/>
  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:open_dialog(\'项目申报\',\'/projectApplication/add/0'+'\');'"
  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">54</strong> 条</span>
  56. </div>
  57. <!-- 表格 -->
  58. <table id="index" class="table table-border table-bordered table-bg table-hover" style="table-layout: fixed;width:100%;">
  59. <thead>
  60. <tr class="text-c">
  61. <!--<th style="width:0px;"></th>-->
  62. <th>申请单号</th>
  63. <th>申报项目</th>
  64. <th>项目来源</th>
  65. <th>项目大类</th>
  66. <th>项目类别</th>
  67. <th>申请日期</th>
  68. <th>单据状态</th>
  69. <th>操作</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  74. <td th:text="*{apply_no}"></td>
  75. <td th:text="*{project_name}"></td>
  76. <td th:text="*{project_source_name}"></td>
  77. <td th:text="*{project_super_type_name}"></td>
  78. <td th:text="*{project_type_name}"></td>
  79. <td th:text="*{apply_date}"></td>
  80. <td th:text="*{apply_status_name}"></td>
  81. <td class="td-manage">
  82. <a title="查看"
  83. th:onclick="'javascript:open_dialog(\'查看\',\'/projectApplication/check/'+*{id}+'\',\'800\',\'400\');'"
  84. class="ml-5" style="text-decoration:none">查看</a>
  85. <a th:if="*{canEdit}" title="编辑"
  86. th:onclick="'javascript:open_dialog(\'编辑\',\'/projectApplication/edit/'+*{id}+'\',\'800\',\'400\');'"
  87. class="ml-5" style="text-decoration:none">编辑</a>
  88. <a th:if="*{canDelete}" title="删除"
  89. th:onclick="'javascript:apply_delete(\'/projectApplication/delete/'+*{id}+'\');'"
  90. class="ml-5" style="text-decoration:none">删除</a>
  91. </td>
  92. </tr>
  93. </tbody>
  94. </table>
  95. <div th:replace="admin/common/page :: page"></div>
  96. </div>
  97. </form>
  98. <script type="text/javascript" th:src="@{/js/company/project_application/apply_list.js}"></script>
  99. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  100. <script th:inline="javascript">
  101. /*laydate.render({
  102. elem: '#startTime', //指定元素
  103. //min: 0,
  104. format: 'yyyy-MM-dd',
  105. type: 'date',
  106. //showBottom: false
  107. });
  108. laydate.render({
  109. elem: '#endTime', //指定元素
  110. //min: 0,
  111. format: 'yyyy-MM-dd',
  112. type: 'date',
  113. //showBottom: false
  114. });
  115. */
  116. </script>
  117. </body>
  118. </html>