declaration_list.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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/declaration/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. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  22. <i class="Hui-iconfont">&#xe68f;</i>
  23. </a>
  24. </nav>
  25. <form id="myForm" th:action="@{/projectApplication/declaration/list}" th:method="get" >
  26. <div class="page-container">
  27. <div class="clearfix">
  28. <label>项目名称:</label>
  29. <input type="text" class="input-text conditionInput" placeholder="请输入项目名称查询" id="projectName" name="projectName" th:value="${projectName}"/>
  30. <label >申报开始日期:</label>
  31. <input type="text" class="input-text conditionDate" id="startTime1" name="startTime1" th:value="${startTime1}"/>
  32. <label> - </label>
  33. <input type="text" class="input-text conditionDate" th:id="startTime2" th:name="startTime2" th:value="${startTime2}"/>
  34. <label>申报截止日期:</label>
  35. <input type="text" class="input-text conditionDate" th:id="endTime1" th:name="endTime1" th:value="${endTime1}"/>
  36. <label> - </label>
  37. <input type="text" class="input-text conditionDate" th:id="endTime2" th:name="endTime2" th:value="${endTime2}"/>
  38. <input type="button" value="搜索" class="btn btn-primary" onclick="$('#myForm').submit();">
  39. </div>
  40. <div class="cl pd-5 bg-1 bk-gray mt-20">
  41. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span>
  42. </div>
  43. <!-- 表格 -->
  44. <table id="index" class="table table-border table-bordered table-bg table-hover" style="table-layout: fixed;width:100%;">
  45. <thead>
  46. <tr class="text-c">
  47. <!--<th style="width:0px;"></th>-->
  48. <!-- <th style="width:150px;">项目来源</th>
  49. <th style="width:150px;">项目大类</th> -->
  50. <th style="width:150px;">项目名称</th>
  51. <th style="width:150px;">申报开始日期</th>
  52. <th style="width:150px;">申报截止日期</th>
  53. <th style="width:150px;">操作</th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  58. <!-- <td th:text="*{project_source_name}"></td>
  59. <td th:text="*{project_super_type_name}"></td> -->
  60. <td th:text="*{project_name}" class="text-overflow" th:title="*{project_name}"></td>
  61. <td th:text="*{apply_startdate}"></td>
  62. <td th:text="*{apply_enddate}"></td>
  63. <td class="td-manage">
  64. <a title="详情"
  65. th:onclick="'javascript:open_dialog(\'详情\',\'/projectDeclaration/detail/'+*{id}+'\');'"
  66. class="ml-5" style="text-decoration:none">详情</a>
  67. <a title="项目申报" th:if="*{canApply==true}"
  68. th:onclick="'javascript:open_dialog(\'项目申报\',\'/projectApplication/add/'+*{id}+'\');'"
  69. class="ml-5" style="text-decoration:none">项目申报</a>
  70. </td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. <div th:replace="admin/common/page :: page"></div>
  75. </div>
  76. </form>
  77. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  78. <script th:inline="javascript">
  79. laydate.render({
  80. elem: '#startTime1', //指定元素
  81. //min: 0,
  82. format: 'yyyy-MM-dd',
  83. type: 'date'
  84. });
  85. laydate.render({
  86. elem: '#startTime2', //指定元素
  87. //min: 0,
  88. format: 'yyyy-MM-dd',
  89. type: 'date'
  90. });
  91. laydate.render({
  92. elem: '#endTime1', //指定元素
  93. //min: 0,
  94. format: 'yyyy-MM-dd',
  95. type: 'date'
  96. });
  97. laydate.render({
  98. elem: '#endTime2', //指定元素
  99. //min: 0,
  100. format: 'yyyy-MM-dd',
  101. type: 'date'
  102. });
  103. function open_dialog(title, url, w, h) {
  104. var index = layer_show(title, pagePath+url, w, h);
  105. //默认全屏
  106. layer.full(index);
  107. }
  108. </script>
  109. </body>
  110. </html>