| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!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>
- </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="@{/policy/list/diagnosticUserGroup}" th:method="get">
- <div class="page-container">
- <div style="text-align:center">
- <input type="text" class="input-text" style="width:200px" placeholder="请输入企业名称" name="companyName"
- th:value="${companyName}"/>
- <button type="submit" class="btn btn-primary">
- 搜索
- </button>
- </div>
- <div class="cl pd-5 bg-1 bk-gray mt-20">
- <span class="l">
- <a th:onclick="'javascript:open_dialog(\'新增授权\',\'/policy/add/diagnosticUserGroup\');'"
- class="btn btn-primary radius"><i class="Hui-iconfont"></i> 新增授权</a>
- </span>
- <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">0</strong> 条</span>
- </div>
- <table class="table table-border table-bordered table-bg table-hover" style="table-layout: fixed;width:100%;">
- <thead>
- <tr class="text-c">
- <th>企业名称</th>
- <th>授权时间</th>
- <th width="180">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="m,iterStat:${pageInfo.list}">
- <td th:text="${m.company_name}"></td>
- <td th:text="${m.create_time}"></td>
- <td class="td-manage">
- <a class="ml-5" th:onclick="'javascript:deleteItem(\''+${m.id}+'\');'">删除权限</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 th:inline="javascript">
- //推送
- function open_dialog(title, url, w, h) {
- sessionStorage.removeItem("hidden_array");
- var index = layer_show(title, pagePath + url, w, h);
- layer.full(index);
- }
- /*删除*/
- function deleteItem(id) {
- layer.confirm('确认要删除吗?', function (index) {
- $.ajax({
- type: "GET",
- dataType: "json",
- url: pagePath + "/policy/delete/diagnosticUserGroup/" + id,
- success: function (result) {
- if (result.success) {
- smileMessage(result.message)
- setTime();
- } else {
- errorMessage(result.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- });
- }
- </script>
- </body>
- </html>
|