build_list.html 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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">
  10. <i class="Hui-iconfont">&#xe67f;</i>
  11. 首页
  12. <span class="c-gray en">&gt;</span>园区
  13. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  14. <i class="Hui-iconfont">&#xe68f;</i>
  15. </a>
  16. </nav>
  17. <form id="myForm" th:action="@{/super/buildList}" th:method="get">
  18. <div class="page-container">
  19. <div class="text-c">所属街道:
  20. <span class="select-box width-180">
  21. <select th:id="street_id" class="select" th:name="street_id" >
  22. <option value="">--全部--</option>
  23. <option value="" th:selected="${street_id==item.id}" th:each="item : ${streeList}" th:value="${item.id}" th:text="${item.name}">
  24. </option>
  25. </select>
  26. </span>
  27. 园区类型:
  28. <span class="select-box width-180">
  29. <select th:id="type" class="select" th:name="type" >
  30. <option value="">--全部--</option>
  31. <option value="" th:selected="${type==item.id}" th:each="item : ${buildTypeList}" th:value="${item.id}" th:text="${item.type}">
  32. </option>
  33. </select>
  34. </span>
  35. <input type="text" class="input-text" style="width:250px" placeholder="输入园区名称" name="keyword" th:value="${keyword}"/>
  36. <button type="submit" class="btn btn-primary">
  37. 搜索
  38. </button>
  39. </div>
  40. <div class="cl pd-5 bg-1 bk-gray mt-20">
  41. <span class="l">
  42. <a href="javascript:;" th:onclick="'javascript:slides_add(\'新增园区\',\'/super/build/add\',\'800\',\'500\');'" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i>新增</a>
  43. </span>
  44. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">54</strong> 条</span>
  45. </div>
  46. <table id="slidesTb" class="table table-border table-bordered table-bg table-hover">
  47. <thead>
  48. <tr class="text-c">
  49. <th>编号</th>
  50. <th>所属街道 </th>
  51. <th>园区名称</th>
  52. <th>园区位置</th>
  53. <th>园区类型</th>
  54. <th>状态</th>
  55. <th>创建时间</th>
  56. <th width="100">操作</th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  61. <td><input type="hidden" th:id="*{id}" value="" name=""/><span th:text="${iterStat.index+1}" ></span></td>
  62. <td th:text="*{street_name}"></td>
  63. <td th:text="*{name}"></td>
  64. <td th:text="*{location}"></td>
  65. <td th:text="*{type_name}"></td>
  66. <td class="td-status">
  67. <span class="label radius" th:if="*{is_start==false}">禁用</span>
  68. <span class="label radius label-success" th:unless="*{is_start==false}">启用</span>
  69. </td>
  70. <td th:text="*{create_time}"></td>
  71. <td class="td-manage">
  72. <a title="编辑" href="javascript:;" th:onclick="'javascript:slides_edit(\'编辑园区\',\'/super/build/edit/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">编辑</a>
  73. <!--<a title="删除" href="javascript:;" th:onclick="'javascript:slides_del(this);'" class="ml-5" style="text-decoration:none">删除</a>-->
  74. <a title="启用" th:if="*{is_start==false}" th:onclick="'javascript:slides_status(\'/build/buildInfo/status/'+*{id}+'\',true,this);'" class="ml-5" style="text-decoration:none">启用</a>
  75. <a title="禁用" th:unless="*{is_start==false}" th:onclick="'javascript:slides_status(\'/build/buildInfo/status/'+*{id}+'\',false,this);'" class="ml-5" style="text-decoration:none">禁用</a>
  76. </td>
  77. </tr>
  78. </tbody>
  79. </table>
  80. <div th:replace="admin/common/page :: page"></div>
  81. </div>
  82. </form>
  83. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  84. <script type="text/javascript" th:src="@{/js/super/build_list.js}"></script>
  85. <script th:inline="javascript">
  86. </script>
  87. <style>
  88. .width-180 {
  89. width: 180px
  90. }
  91. </style>
  92. </body>
  93. </html>