8b90ff8a103010d2be66fd136fa17370.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <?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;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="360-site-verification" content="a7c876fae8b6e3175a52ea9f19543f51" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
  10. <script src="/static/dist/xm-select.js"></script>
  11. <link rel="mobile-prefetch" href=""/>
  12. <title><?php echo get_system_config('web','admin_title'); ?></title>
  13. <meta name="keywords" content="<?php echo get_system_config('web','keywords'); ?>"/>
  14. <meta name="description" content="<?php echo get_system_config('web','desc'); ?>"/>
  15. <link rel="stylesheet" href="/static/assets/gougu/css/gougu.css?v=<?php echo get_system_config('web','version'); ?>" media="all">
  16. <style>
  17. .footer{
  18. width: 100%;
  19. height: 25px;
  20. text-align: center;
  21. position: fixed;
  22. bottom: 0;
  23. }
  24. </style>
  25. </head>
  26. <body class="main-body">
  27. <!-- 主体 -->
  28. <div class="p-3">
  29. <div class="gg-form-bar border-t border-x" style="padding-bottom:10px;">
  30. <button class="layui-btn layui-btn-sm add-menu">+ 添加通知设置</button>
  31. </div>
  32. <div>
  33. <table class="layui-hide" id="treeTable" lay-filter="treeTable"></table>
  34. </div>
  35. </div>
  36. <!-- /主体 -->
  37. <!-- 底部 -->
  38. <div class="footer">
  39. 逸管工程项目管理系统 © www.yiguanfep.com
  40. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  41. <a href="https://beian.mps.gov.cn/#/query/websearch?code=45030202000160 " rel="\&quot;noreferrer'target=\”blank\&quot;" onclick="window.open(this.href); return false;">桂公网安备45030202000160号</a>
  42. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  43. </div>
  44. <!-- /底部 -->
  45. <!-- 脚本 -->
  46. <script>
  47. const moduleInit = ['tool', 'treeGrid'];
  48. function gouguInit() {
  49. var treeGrid = layui.treeGrid,table = layui.table, tool = layui.tool;
  50. var pageTable = treeGrid.render({
  51. id: 'treeTable',
  52. elem: '#treeTable',
  53. idField: 'id',
  54. url: "/admin/pushmessage/index",
  55. cellMinWidth: 80,
  56. treeId: 'id',//树形id字段名称
  57. treeUpId: 'pid',//树形父id字段名称
  58. treeShowName: 'title',//以树形式显示的字段
  59. height: 'full-0',
  60. isOpenDefault:true,
  61. cols: [[
  62. { field: 'id', width: 100, title: 'ID号', align: 'center' },
  63. // { field: 'pid', title: '上级部门ID',width: 120, align: 'center'},
  64. { field: 'title', title: '通知情况', width: 315},
  65. { field: 'content', title: '通知财政局内容'},
  66. {
  67. field: 'is_wechat', title: '微信推送',width: 120, align: 'center',
  68. templet: function(d){
  69. if(d.rule_url == null || d.content == ''){
  70. return '';
  71. }
  72. if(d.is_wechat == 1){
  73. return "√";
  74. }else{
  75. return "×";
  76. }
  77. }
  78. },
  79. { field: 'content_company', title: '通知公司内容'},
  80. {
  81. field: 'is_wechat_company', title: '微信推送',width: 120, align: 'center',
  82. templet: function(d){
  83. if(d.rule_url == null || d.content_company == ''){
  84. return '';
  85. }
  86. if(d.is_wechat_company == 1){
  87. return "√";
  88. }else{
  89. return "×";
  90. }
  91. }
  92. },
  93. { field: 'content_proprietor', title: '通知业主内容'},
  94. {
  95. field: 'is_wechat_proprietor', title: '微信推送',width: 120, align: 'center',
  96. templet: function(d){
  97. if(d.rule_url == null || d.content_proprietor == '' || d.content_proprietor == null){
  98. return '';
  99. }
  100. if(d.is_wechat_proprietor == 1){
  101. return "√";
  102. }else{
  103. return "×";
  104. }
  105. }
  106. },
  107. { field: 'rule_url', title: 'url'},
  108. // { field: 'is_notice', title: '是否通知',width: 120, align: 'center'},
  109. // { field: 'is_carbon', title: '是否抄送',width: 120, align: 'center'},
  110. { width:180, title: '操作', align: 'center', templet: function (d) {
  111. var html =
  112. '<span class="layui-btn-group">' +
  113. '<button class="layui-btn layui-btn-xs" lay-event="add">添加下级设置</button>' +
  114. '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">编辑</button>' +
  115. '<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</button>' +
  116. '</span>';
  117. return html;
  118. }
  119. },
  120. ]],
  121. page: false,
  122. });
  123. //表头工具栏事件
  124. $('body').on('click','.add-menu', function(){
  125. tool.side("/admin/pushmessage/add");
  126. return;
  127. });
  128. //操作按钮
  129. treeGrid.on('tool(treeTable)', function (obj) {
  130. if (obj.event === 'add') {
  131. tool.side("/admin/pushmessage/add?pid="+obj.data.id);
  132. return;
  133. }
  134. if (obj.event === 'edit') {
  135. tool.side("/admin/pushmessage/edit?id="+obj.data.id);
  136. return;
  137. }
  138. if (obj.event === 'del') {
  139. layer.confirm('确定要删除吗?', {icon: 3, title:'提示'}, function(index){
  140. let callback = function (e) {
  141. layer.msg(e.msg);
  142. if (e.code == 0) {
  143. obj.del();
  144. }
  145. }
  146. tool.delete("/admin/pushmessage/delete", { id: obj.data.id }, callback);
  147. layer.close(index);
  148. });
  149. }
  150. });
  151. }
  152. </script>
  153. <!-- /脚本 -->
  154. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  155. <script src="/static/assets/layui/layui.js"></script>
  156. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  157. <script src="/static/assets/gougu/gouguInit.js"></script>
  158. <script src="https://unpkg.com/pinyin-pro"></script>
  159. <script>
  160. var { pinyin } = pinyinPro;
  161. </script>
  162. <!-- 统计代码 -->
  163. <!-- /统计代码 -->
  164. </body>
  165. </html>