懒羊羊
2023-08-30 1ac2bc1590406d9babec036e154d8d08f34a6aa1
提交 | 用户 | 时间
1ac2bc 1 @layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/system/menu/menu.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="menuName" class="layui-input" type="text" placeholder="菜单名称/编码"/>
16                             </div>
17                             <div class="layui-inline">
18                                 <input id="level" class="layui-input" type="text" placeholder="层级"/>
19                             </div>
20                             <div class="layui-inline">
21                                 <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
22                                 @if(shiro.hasPermission("/menu/add")){
23                                 <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
24                                 @}
25                                 <button id="expandAll" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>展开所有</button>
26                                 <button id="foldAll" class="layui-btn icon-btn"><i class="layui-icon">&#xe656;</i>折叠所有</button>
27                             </div>
28                         </div>
29                     </div>
30                     <table class="layui-table" id="menuTable"></table>
31                 </div>
32             </div>
33         </div>
34     </div>
35 </div>
36
37 <script type="text/html" id="menuTableBar">
38     @if(shiro.hasPermission("/menu/edit")){
39     <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
40     @}
41     @if(shiro.hasPermission("/menu/remove")){
42     <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
43     @}
44 </script>
45
46 @}