1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <title>权限管理</title>
7 <#include "../common/link.ftl">
8 <script>
9 function permissionreset(){
10 $.post('/permission/reload.do',function (data){
11 if (data.flag){
12 //刷新页面即可
13 window.location.reload();
14 }else {
15 $.messager.popup(data.msg);
16 }
17
18 });
19 }
20 </script>
21 </head>
22 <body class="hold-transition skin-blue sidebar-mini">
23 <div class="wrapper">
24 <#include "../common/navbar.ftl">
25 <!--菜单回显-->
26 <#assign currentMenu="permission">
27 <#include "../common/menu.ftl">
28 <div class="content-wrapper">
29 <section class="content-header">
30 <h1>权限管理</h1>
31 </section>
32 <section class="content">
33 <div class="box" >
34 <!--高级查询--->
35 <form class="form-inline" id="searchForm" action="/permission/list.do" method="post">
36 <input type="hidden" name="currentPage" id="currentPage" value="1">
37 <a href="javascript:permissionreset();" class="btn btn-success btn_reload" style="margin: 10px;">
38 <span class="glyphicon glyphicon-repeat"></span> 重新加载
39 </a>
40 </form>
41
42 <table class="table table-striped table-hover" >
43 <thead>
44 <tr>
45 <th>编号</th>
46 <th>权限名称</th>
47 <th>权限表达式</th>
48 <th>操作</th>
49 </tr>
50 </thead>
51 <#list pageInfo.list as permission>
52 <tr>
53 <td>${permission?counter}</td>
54 <td>${permission.name}</td>
55 <td>${permission.expression}</td>
56 <td>
57 <@shiro.hasPermission name="permission:delete">
58 <a href="/permission/delete.do?id=${permission.id}" class="btn btn-danger btn-xs btn_delete" >
59 <span class="glyphicon glyphicon-trash"></span> 删除
60 </a>
61 </@shiro.hasPermission>
62 </td>
63 </tr>
64 </#list>
65 </table>
66 <!--分页-->
67 <#include "../common/page.ftl">
68 </div>
69 </section>
70 </div>
71 <#include "../common/footer.ftl">
72 </div>
73 </body>
74 </html>