| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>内容列表</title>
- <style>
- .textColor{background-color: transparent;color: #333;font-size:12px;font-weight: initial}
- </style>
- </head>
- <body layout:fragment="content">
- <nav class="breadcrumb">
- <i class="Hui-iconfont"></i>
- 首页
- <span class="c-gray en">></span>客户信息
- <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
- href="javascript:location.replace(location.href);" title="刷新">
- <i class="Hui-iconfont"></i>
- </a>
- </nav>
- <form id="myForm" th:action="@{/build/company/list}" th:method="get">
- <div class="page-container">
- <div class="text-c">
- <input type="text" class="input-text" style="width:250px" placeholder="请输入名称,联系人,联系电话" name="keyword"
- th:value="${keyword}"/>
- <button type="submit" class="btn btn-primary">
- 搜索
- </button>
- </div>
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <span class="l">
- <a onClick="company_start('/build/company/startBatch')" class="btn btn-primary radius"><i
- class="Hui-iconfont"></i> 启用</a>
- <a onClick="company_stop('/build/company/stopBatch')" class="btn btn-default radius"><i
- class="Hui-iconfont"></i> 禁用</a>
- <!--<a onClick="company_del('/build/company/deleteBatch')" class="btn btn-danger radius"><i-->
- <!--class="Hui-iconfont"></i> 删除</a>-->
- <a th:onclick="'javascript:company_dialog(\'新增\',\'/build/company/add\');'"
- class="btn btn-primary radius"><i class="Hui-iconfont"></i> 新增</a>
- </span>
- <span class="r">共有数据:<strong th:text="${pageInfo.total}" id="total">54</strong> 条</span>
- </div>
- <table class="table table-border table-bordered table-bg table-hover">
- <thead>
- <tr class="text-c">
- <th width="25"><input type="checkbox" name="" value=""/></th>
- <th>序号</th>
- <th>客户名称</th>
- <th>联系人</th>
- <th>联系电话</th>
- <th>客户地址</th>
- <th>客户类型</th>
- <th>是否经营</th>
- <th>企业性质</th>
- <th>状态</th>
- <th width="100">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
- <td><input type="checkbox" th:value="*{id}" th:id="${iterStat.index+1}" name="id"/></td>
- <td th:text="${iterStat.index+1}"></td>
- <td th:text="*{company_name}"></td>
- <td> <span th:each="companyContact,iterStat:*{companyContacts}" th:object="${companyContact}">
- [[*{contact}]] <span th:if="${iterStat.last}"></span><span th:unless="${iterStat.last}">,</span>
- </span></td>
- <td> <span th:each="companyContact,iterStat:*{companyContacts}" th:object="${companyContact}">
- [[*{phone}]] <span th:if="${iterStat.last}"></span><span th:unless="${iterStat.last}">,</span>
- </span></td>
- <td th:text="*{location}"></td>
- <td><span th:if="*{nature==0}">个人</span><span th:if="*{nature==1}">企业</span></td>
- <td >
- <span class="label radius textColor" th:unless="*{is_product==true}">否</span>
- <span class="label radius label-success textColor" th:if="*{is_product==true}">是</span>
- </td>
- <td th:text="*{type_name}">
- </td>
- <td class="td-status">
- <span class="label radius" th:unless="*{is_start}">禁用</span>
- <span class="label radius label-success" th:if="*{is_start}">启用</span>
- </td>
- <td class="td-manage">
- <a title="编辑"
- th:onclick="'javascript:company_dialog(\'编辑\',\'/build/company/edit/'+*{id}+'\');'"
- class="ml-5" style="text-decoration:none">编辑</a>
- <a title="详情"
- th:onclick="'javascript:company_dialog(\'详情\',\'/build/company/check/'+*{id}+'\',\'800\',\'400\');'"
- class="ml-5" style="text-decoration:none">详情</a>
- </td>
- </tr>
- </tbody>
- </table>
- <div th:replace="admin/common/page :: page"></div>
- </div>
- </form>
- <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
- <script type="text/javascript" th:src="@{/js/build/company/company_list.js}"></script>
- <script th:inline="javascript">
- </script>
- </body>
- </html>
|