company_list.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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/company/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 onClick="company_start('/build/company/startBatch')" class="btn btn-primary radius"><i
  33. class="Hui-iconfont">&#xe605;</i> 启用</a>
  34. <a onClick="company_stop('/build/company/stopBatch')" class="btn btn-default radius"><i
  35. class="Hui-iconfont">&#xe60e;</i> 禁用</a>
  36. <!--<a onClick="company_del('/build/company/deleteBatch')" class="btn btn-danger radius"><i-->
  37. <!--class="Hui-iconfont">&#xe6e2;</i> 删除</a>-->
  38. <a th:onclick="'javascript:company_dialog(\'新增\',\'/build/company/add\');'"
  39. class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  40. </span>
  41. <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span>
  42. </div>
  43. <table class="table table-border table-bordered table-bg table-hover">
  44. <thead>
  45. <tr class="text-c">
  46. <th width="25"><input type="checkbox" name="" value=""/></th>
  47. <th>序号</th>
  48. <th>客户名称</th>
  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="checkbox" th:value="*{id}" th:id="${iterStat.index+1}" name="id"/></td>
  62. <td th:text="${iterStat.index+1}"></td>
  63. <td th:text="*{company_name}"></td>
  64. <td> <span th:each="companyContact,iterStat:*{companyContacts}" th:object="${companyContact}">
  65. [[*{contact}]] <span th:if="${iterStat.last}"></span><span th:unless="${iterStat.last}">,</span>
  66. </span></td>
  67. <td> <span th:each="companyContact,iterStat:*{companyContacts}" th:object="${companyContact}">
  68. [[*{phone}]] <span th:if="${iterStat.last}"></span><span th:unless="${iterStat.last}">,</span>
  69. </span></td>
  70. <td th:text="*{location}"></td>
  71. <td><span th:if="*{nature==0}">个人</span><span th:if="*{nature==1}">企业</span></td>
  72. <td >
  73. <span class="label radius textColor" th:unless="*{is_product==true}">否</span>
  74. <span class="label radius label-success textColor" th:if="*{is_product==true}">是</span>
  75. </td>
  76. <td th:text="*{type_name}">
  77. </td>
  78. <td class="td-status">
  79. <span class="label radius" th:unless="*{is_start}">禁用</span>
  80. <span class="label radius label-success" th:if="*{is_start}">启用</span>
  81. </td>
  82. <td class="td-manage">
  83. <a title="编辑"
  84. th:onclick="'javascript:company_dialog(\'编辑\',\'/build/company/edit/'+*{id}+'\');'"
  85. class="ml-5" style="text-decoration:none">编辑</a>
  86. <a title="详情"
  87. th:onclick="'javascript:company_dialog(\'详情\',\'/build/company/check/'+*{id}+'\',\'800\',\'400\');'"
  88. class="ml-5" style="text-decoration:none">详情</a>
  89. </td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. <div th:replace="admin/common/page :: page"></div>
  94. </div>
  95. </form>
  96. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  97. <script type="text/javascript" th:src="@{/js/build/company/company_list.js}"></script>
  98. <script th:inline="javascript">
  99. </script>
  100. </body>
  101. </html>