123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- <?php /*a:2:{s:65:"D:\phpstudy_pro\WWW\caiping\app\admin\view\pushmessage\index.html";i:1723541257;s:59:"D:\phpstudy_pro\WWW\caiping\app\admin\view\common\base.html";i:1723541257;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
- <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
- <script src="/static/dist/xm-select.js"></script>
- <link rel="mobile-prefetch" href=""/>
- <title><?php echo get_system_config('web','admin_title'); ?></title>
- <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
- <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
- <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
- <style>
- .footer{
- width: 100%;
- height: 25px;
- text-align: center;
- position: fixed;
- bottom: 0;
- }
- </style>
- </head>
- <body class="main-body">
- <!-- 主体 -->
-
- <div class="p-3">
- <div class="gg-form-bar border-t border-x" style="padding-bottom:10px;">
- <button class="layui-btn layui-btn-sm add-menu">+ 添加通知设置</button>
- </div>
- <div>
- <table class="layui-hide" id="treeTable" lay-filter="treeTable"></table>
- </div>
- </div>
- <!-- /主体 -->
- <!-- 底部 -->
-
- <div class="footer">
- 逸管工程项目管理系统 © www.yiguanfep.com
- <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
- <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\"noreferrer'target=\”blank\"" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
- <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
- </div>
-
-
- <!-- /底部 -->
-
- <!-- 脚本 -->
-
- <script>
- const moduleInit = ['tool', 'treeGrid'];
- function gouguInit() {
- var treeGrid = layui.treeGrid,table = layui.table, tool = layui.tool;
- var pageTable = treeGrid.render({
- id: 'treeTable',
- elem: '#treeTable',
- idField: 'id',
- url: "/admin/pushmessage/index",
- cellMinWidth: 80,
- treeId: 'id',//树形id字段名称
- treeUpId: 'pid',//树形父id字段名称
- treeShowName: 'title',//以树形式显示的字段
- height: 'full-0',
- isOpenDefault:true,
- cols: [[
- { field: 'id', width: 100, title: 'ID号', align: 'center' },
- // { field: 'pid', title: '上级部门ID',width: 120, align: 'center'},
- { field: 'title', title: '通知情况', width: 315},
- { field: 'content', title: '通知财政局内容'},
- {
- field: 'is_wechat', title: '微信推送',width: 120, align: 'center',
- templet: function(d){
- if(d.rule_url == null || d.content == ''){
- return '';
- }
- if(d.is_wechat == 1){
- return "√";
- }else{
- return "×";
- }
- }
-
- },
- { field: 'content_company', title: '通知公司内容'},
- {
- field: 'is_wechat_company', title: '微信推送',width: 120, align: 'center',
- templet: function(d){
- if(d.rule_url == null || d.content_company == ''){
- return '';
- }
- if(d.is_wechat_company == 1){
- return "√";
- }else{
- return "×";
- }
- }
-
- },
- { field: 'content_proprietor', title: '通知业主内容'},
- {
- field: 'is_wechat_proprietor', title: '微信推送',width: 120, align: 'center',
- templet: function(d){
- if(d.rule_url == null || d.content_proprietor == '' || d.content_proprietor == null){
- return '';
- }
- if(d.is_wechat_proprietor == 1){
- return "√";
- }else{
- return "×";
- }
- }
-
- },
- { field: 'rule_url', title: 'url'},
-
- // { field: 'is_notice', title: '是否通知',width: 120, align: 'center'},
- // { field: 'is_carbon', title: '是否抄送',width: 120, align: 'center'},
-
- { width:180, title: '操作', align: 'center', templet: function (d) {
- var html =
- '<span class="layui-btn-group">' +
- '<button class="layui-btn layui-btn-xs" lay-event="add">添加下级设置</button>' +
- '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">编辑</button>' +
- '<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</button>' +
- '</span>';
- return html;
- }
- },
- ]],
- page: false,
- });
-
- //表头工具栏事件
- $('body').on('click','.add-menu', function(){
- tool.side("/admin/pushmessage/add");
- return;
- });
- //操作按钮
- treeGrid.on('tool(treeTable)', function (obj) {
- if (obj.event === 'add') {
- tool.side("/admin/pushmessage/add?pid="+obj.data.id);
- return;
- }
- if (obj.event === 'edit') {
- tool.side("/admin/pushmessage/edit?id="+obj.data.id);
- return;
- }
- if (obj.event === 'del') {
- layer.confirm('确定要删除吗?', {icon: 3, title:'提示'}, function(index){
- let callback = function (e) {
- layer.msg(e.msg);
- if (e.code == 0) {
- obj.del();
- }
- }
- tool.delete("/admin/pushmessage/delete", { id: obj.data.id }, callback);
- layer.close(index);
- });
- }
- });
- }
- </script>
- <!-- /脚本 -->
-
- <!-- <script src="/static/assets/layui/layui.js"></script> -->
- <script src="/static/assets/layui/layui.js"></script>
- <script src="/static/assets/third_party/echart/echarts.min.js"></script>
- <script src="/static/assets/gougu/gouguInit.js"></script>
- <script src="https://unpkg.com/pinyin-pro"></script>
- <script>
-
- var { pinyin } = pinyinPro;
- </script>
-
-
- <!-- 统计代码 -->
-
- <!-- /统计代码 -->
- </body>
- </html>
|