diagnostic_user_group.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. 首页 <span class="c-gray en">&gt;</span>
  12. 诊断用户组列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
  13. href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
  14. </nav>
  15. <form id="myForm" th:action="@{/policy/list/diagnosticUserGroup}" th:method="get">
  16. <div class="page-container">
  17. <div style="text-align:center">
  18. <input type="text" class="input-text" style="width:200px" placeholder="请输入企业名称" name="companyName"
  19. th:value="${companyName}"/>
  20. <button type="submit" class="btn btn-primary">
  21. 搜索
  22. </button>
  23. </div>
  24. <div class="cl pd-5 bg-1 bk-gray mt-20">
  25. <span class="l">
  26. <a th:onclick="'javascript:open_dialog(\'新增授权\',\'/policy/add/diagnosticUserGroup\');'"
  27. class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 新增授权</a>
  28. </span>
  29. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">0</strong> 条</span>
  30. </div>
  31. <table class="table table-border table-bordered table-bg table-hover" style="table-layout: fixed;width:100%;">
  32. <thead>
  33. <tr class="text-c">
  34. <th>企业名称</th>
  35. <th>授权时间</th>
  36. <th width="180">操作</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <tr class="text-c" th:each="m,iterStat:${pageInfo.list}">
  41. <td th:text="${m.company_name}"></td>
  42. <td th:text="${m.create_time}"></td>
  43. <td class="td-manage">
  44. <a class="ml-5" th:onclick="'javascript:deleteItem(\''+${m.id}+'\');'">删除权限</a>
  45. </td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. <div th:replace="admin/common/page :: page"></div>
  50. </div>
  51. </form>
  52. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  53. <script th:inline="javascript">
  54. //推送
  55. function open_dialog(title, url, w, h) {
  56. sessionStorage.removeItem("hidden_array");
  57. var index = layer_show(title, pagePath + url, w, h);
  58. layer.full(index);
  59. }
  60. /*删除*/
  61. function deleteItem(id) {
  62. layer.confirm('确认要删除吗?', function (index) {
  63. $.ajax({
  64. type: "GET",
  65. dataType: "json",
  66. url: pagePath + "/policy/delete/diagnosticUserGroup/" + id,
  67. success: function (result) {
  68. if (result.success) {
  69. smileMessage(result.message)
  70. setTime();
  71. } else {
  72. errorMessage(result.message);
  73. }
  74. },
  75. error: function () {
  76. errorMessage('系统错误!');
  77. }
  78. });
  79. });
  80. }
  81. </script>
  82. </body>
  83. </html>