company_show_list.html 5.9 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 th:if="${is_build}" class="c-gray en">&gt; 企业展示</span>
  13. <span th:unless="${is_build}" class="c-gray en">&gt; 产品发布</span>
  14. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  15. <i class="Hui-iconfont">&#xe68f;</i>
  16. </a>
  17. </nav>
  18. <form id="myForm" th:action="@{/build/companyShow/list}" th:method="get">
  19. <div class="page-container">
  20. <div th:unless="${isCompany}" class="text-c">
  21. <span class="select-box" style="width:250px">
  22. <select th:id="searchStatus" class="select" th:name="searchStatus" onChange="$('#myForm').submit();">
  23. <option value="">--全部--</option>
  24. <option th:value="0" th:text="待审核" th:selected="${searchStatus}==0"></option>
  25. <option th:value="1" th:text="已审核" th:selected="${searchStatus}==1"></option>
  26. <option th:value="2" th:text="退回" th:selected="${searchStatus}==2"></option>
  27. </select>
  28. </span>
  29. <input type="text" class="input-text" style="width:250px" placeholder="请输入企业名称,产品名称,联系人" name="keyword" th:value="${keyword}"/>
  30. <button type="submit" class="btn btn-primary">
  31. 搜索
  32. </button>
  33. </div>
  34. <div class="cl pd-5 bg-1 bk-gray mt-20">
  35. <span class="l">
  36. <a th:if="${isCompany}" th:onclick="'javascript:company_add(\'新增\',\'/build/companyShow/add\',\'800\',\'500\');'" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增</a>
  37. </span>
  38. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">54</strong> 条</span>
  39. </div>
  40. <table id="companyTb" class="table table-border table-bordered table-bg table-hover">
  41. <thead>
  42. <tr class="text-c">
  43. <th><span th:unless="${searchStatus}==1">序号</span></th>
  44. <th>产品名称</th>
  45. <th>企业名称</th>
  46. <th>联系人</th>
  47. <th>联系方式</th>
  48. <th>发布时间</th>
  49. <th>状态</th>
  50. <th th:if="${searchStatus}==1">启禁用状态</th>
  51. <!-- <th>是否启用</th> -->
  52. <th width="150">操作</th>
  53. </tr>
  54. </thead>
  55. <tbody>
  56. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  57. <td><input th:if="${searchStatus}==1" type="checkbox" th:id="*{id}"/><span th:unless="${searchStatus}==1" th:text="${iterStat.index+1}"></span></td>
  58. <td th:text="*{product_name}"></td>
  59. <td th:text="*{company_name}"></td>
  60. <td th:text="*{contact}"></td>
  61. <td th:text="*{phone}"></td>
  62. <td th:text="*{create_time}"></td>
  63. <td class="td-status" th:switch="*{status}">
  64. <span class="label radius" th:case="0">待审核</span>
  65. <span class="label radius label-success" th:case="1">已审核</span>
  66. <span class="label radius" th:case="2">退回</span>
  67. </td>
  68. <td class="td-status" th:if="${searchStatus}==1">
  69. <span class="label radius" th:unless="*{is_start}">禁用</span>
  70. <span class="label radius label-success" th:if="*{is_start}">启用</span>
  71. </td>
  72. <td th:if="${isCompany}" class="td-manage">
  73. <span th:if="*{status}==2"><a title="编辑" onclick="company_edit('企业信息发布编辑','admin-add.html','2')" th:onclick="'javascript:company_edit(\'编辑\',\'/build/companyShow/edit/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">编辑</a></span>
  74. <span><a title="详情" th:onclick="'javascript:company_edit(\'详情\',\'/build/companyShow/show/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a></span>
  75. <span><a title="删除" th:onclick="'javascript:companyShow_delete(\'删除\',\'/build/companyShow/delete/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">删除</a></span>
  76. </td>
  77. <td th:unless="${isCompany}" class="td-manage">
  78. <span th:unless="*{status}"><a title="审核" th:onclick="'javascript:company_edit(\'审核\',\'/build/companyShow/auditPage/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">审核</a></span>
  79. <span th:if="*{status}"> <a title="详情" th:onclick="'javascript:company_edit(\'详情\',\'/build/companyShow/show/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">详情</a></span>
  80. <span th:if="*{status==1} and !*{is_start}" > <a th:onclick="'javascript:company_status(\'/build/companyShow/switch/'+*{id}+'\',\'true\');'">启用</a></span>
  81. <span th:if="*{status==1} and *{is_start}" > <a th:onclick="'javascript:company_status(\'/build/companyShow/switch/'+*{id}+'\',\'false\');'" >禁用</a></span>
  82. </td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. <div th:replace="admin/common/page :: page"></div>
  87. </div>
  88. </form>
  89. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  90. <script type="text/javascript" th:src="@{/js/build/company/company_show_list.js}"></script>
  91. <script th:inline="javascript">
  92. </script>
  93. </body>
  94. </html>