water_list.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. .textColor{background-color: transparent;color: #333;font-size:12px;font-weight: initial}
  9. </style>
  10. </head>
  11. <body layout:fragment="content">
  12. <nav class="breadcrumb">
  13. <i class="Hui-iconfont">&#xe67f;</i>
  14. 首页
  15. <span class="c-gray en">&gt;</span>客户信息
  16. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
  17. href="javascript:location.replace(location.href);" title="刷新">
  18. <i class="Hui-iconfont">&#xe68f;</i>
  19. </a>
  20. </nav>
  21. <form id="myForm" th:action="@{/build/water/list}" th:method="get">
  22. <div class="page-container">
  23. <div class="text-c">
  24. <input type="text" class="input-text" style="width:250px" placeholder="请输入水表名,客户名" name="keyword"
  25. th:value="${keyword}"/>
  26. <button type="submit" class="btn btn-primary">
  27. 搜索
  28. </button>
  29. </div>
  30. <div class="cl pd-5 bg-1 bk-gray mt-20">
  31. <span class="l">
  32. <a th:onclick="'javascript:dialog(\'新增\',\'/build/water/add\');'"
  33. class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  34. </span>
  35. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span>
  36. </div>
  37. <table class="table table-border table-bordered table-bg table-hover">
  38. <thead>
  39. <tr class="text-c">
  40. <th>序号</th>
  41. <th>水表名</th>
  42. <th>备注</th>
  43. <th >历史使用情况</th>
  44. <th >当前使用住户</th>
  45. <th >操作</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  50. <td th:text="${iterStat.index+1}"></td>
  51. <td th:text="*{name}"></td>
  52. <td th:text="*{remarks}"></td>
  53. <td><a title="详情" th:onclick="'javascript:dialog(\'当前使用情况\',\'/build/water/waterDetailList/'+*{id}+'\',\'950\',\'600\');'" class="ml-5" style="text-decoration:none">详情</a>
  54. </td>
  55. <td><a title="详情" th:onclick="'javascript:dialog(\'当前使用客户\',\'/build/water/waterCompanyList/'+*{id}+'\',\'950\',\'600\');'" class="ml-5" style="text-decoration:none">详情</a>
  56. </td>
  57. <td class="td-manage">
  58. <a title="编辑"
  59. th:onclick="'javascript:dialog(\'编辑\',\'/build/water/edit/'+*{id}+'\');'"
  60. class="ml-5" style="text-decoration:none">编辑</a>
  61. </td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. <div th:replace="admin/common/page :: page"></div>
  66. </div>
  67. </form>
  68. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  69. <script type="text/javascript" th:src="@{/js/build/water/water_list.js}"></script>
  70. <script th:inline="javascript">
  71. </script>
  72. </body>
  73. </html>