懒羊羊
2023-11-14 8286c62256f23bc2367a6729c0f46f84215e380b
提交 | 用户 | 时间
8286c6 1 @layout("/common/_tree_container.html",{plugins:["ztree"],js:["/assets/modular/system/dept/dept.js"]}){
2
3 <div class="layui-body-header">
4     <span class="layui-body-header-title">部门管理</span>
5 </div>
6
7 <div id="myContiner" style="height: 100%">
8     <div class="ui-layout-west">
9         <div class="box box-main">
10             <div class="ui-layout-content">
11                 <div id="deptTree"></div>
12             </div>
13         </div>
14     </div>
15
16     <div class="ui-layout-center">
17         <div class="layui-fluid">
18             <div class="layui-row">
19                 <div class="layui-col-md12">
20                     <div class="layui-card">
21                         <div class="layui-card-body">
22                             <div class="layui-form toolbar">
23                                 <div class="layui-form-item">
24                                     <div class="layui-inline">
25                                         <input id="name" class="layui-input" type="text" placeholder="部门名称"/>
26                                     </div>
27                                     <div class="layui-inline">
28                                         <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
29                                         @if(shiro.hasPermission("/dept/add")){
30                                         <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
31                                         @}
32                                         <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
33                                     </div>
34                                 </div>
35                             </div>
36                             <table class="layui-table" id="deptTable" lay-filter="deptTable"></table>
37                         </div>
38                     </div>
39                 </div>
40             </div>
41         </div>
42     </div>
43 </div>
44
45 <script type="text/html" id="tableBar">
46     @if(shiro.hasPermission("/dept/update")){
47     <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
48     @}
49     @if(shiro.hasPermission("/dept/delete")){
50     <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
51     @}
52 </script>
53 @}