懒羊羊
2023-08-30 1ac2bc1590406d9babec036e154d8d08f34a6aa1
提交 | 用户 | 时间
1ac2bc 1 @layout("/common/_container.html",{js:["/assets/modular/system/role/role.js"]}){
2
3 <div class="layui-body-header">
4     <span class="layui-body-header-title">角色管理</span>
5 </div>
6
7 <div class="layui-fluid">
8     <div class="layui-row layui-col-space15">
9         <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
10             <div class="layui-card">
11                 <div class="layui-card-body">
12                     <div class="layui-form toolbar">
13                         <div class="layui-form-item">
14                             <div class="layui-inline">
15                                 <input id="roleName" class="layui-input" type="text" placeholder="角色名称"/>
16                             </div>
17                             <div class="layui-inline">
18                                 <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
19                                 @if(shiro.hasPermission("/role/add")){
20                                 <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
21                                 @}
22                                 <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
23                             </div>
24                         </div>
25                     </div>
26                     <table class="layui-table" id="roleTable" lay-filter="roleTable"></table>
27                 </div>
28             </div>
29         </div>
30     </div>
31 </div>
32
33 <script type="text/html" id="tableBar">
34     @if(shiro.hasPermission("/role/edit")){
35     <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
36     @}
37     @if(shiro.hasPermission("/role/remove")){
38     <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
39     @}
40     @if(shiro.hasPermission("/role/setAuthority")){
41     <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="roleAssign">权限配置</a>
42     @}
43 </script>
44 @}