懒羊羊
2023-08-30 1ac2bc1590406d9babec036e154d8d08f34a6aa1
提交 | 用户 | 时间
1ac2bc 1 @layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/system/notice/notice.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-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="condition" 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("/notice/add")){
20                                 <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
21                                 @}
22                             </div>
23                         </div>
24                     </div>
25                     <table class="layui-table" id="noticeTable" lay-filter="noticeTable"></table>
26                 </div>
27             </div>
28         </div>
29     </div>
30 </div>
31
32 <script type="text/html" id="tableBar">
33     @if(shiro.hasPermission("/notice/update")){
34     <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
35     @}
36     @if(shiro.hasPermission("/notice/delete")){
37     <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
38     @}
39 </script>
40
41 <script type="text/html" id="statusTpl">
42     <input type="checkbox" lay-filter="status" value="{{d.userId}}" lay-skin="switch" lay-text="正常|冻结" {{d.status=='ENABLE'?'checked':''}} />
43 </script>
44 @}