05f037ffdadccacb91a836a14118d072.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php /*a:2:{s:64:"D:\phpstudy_pro\WWW\caiping\app\admin\view\pushmember\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>
  30. <table class="layui-hide" id="treeTable" lay-filter="treeTable"></table>
  31. </div>
  32. </div>
  33. <!-- /主体 -->
  34. <!-- 底部 -->
  35. <div class="footer">
  36. 逸管工程项目管理系统 © www.yiguanfep.com
  37. <img src="/static/home/images/police.png" alt="" style="width:14.5px;height:16px;">
  38. <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>
  39. <a href="https://beian.miit.gov.cn/#/Integrated/index" onclick="window.open(this.href); return false;">桂ICP备17000971号</a>
  40. </div>
  41. <!-- /底部 -->
  42. <!-- 脚本 -->
  43. <script>
  44. const moduleInit = ['tool', 'treeGrid'];
  45. function gouguInit() {
  46. var treeGrid = layui.treeGrid,table = layui.table, tool = layui.tool;
  47. var allcount;
  48. var pageTable = treeGrid.render({
  49. id: 'treeTable',
  50. elem: '#treeTable',
  51. idField: 'id',
  52. url: "/admin/pushmember/index",
  53. cellMinWidth: 80,
  54. parseData: function (res) { // 数据解析回调函数
  55. // 在这里可以获取数据总数
  56. allcount = res.data.length;
  57. return {
  58. code: res.code, // 数据状态码
  59. msg: res.msg, // 状态信息
  60. count: res.count, // 数据总数
  61. data: res.data // 当前页数据
  62. };
  63. },
  64. treeId: 'id',//树形id字段名称
  65. treeUpId: 'pid',//树形父id字段名称
  66. treeShowName: 'title',//以树形式显示的字段
  67. height: 'full-0',
  68. isOpenDefault:true,
  69. cols: [[
  70. { field: 'id', width: 100, title: '编号', align: 'center',
  71. templet: function (d) {
  72. console.log(allcount,d.LAY_NUM)
  73. return allcount - (d.LAY_INDEX - 1);
  74. } },
  75. // { field: 'pid', title: '上级部门ID',width: 120, align: 'center'},
  76. { field: 'title', title: '通知情况', width: 315},
  77. { field: 'pushmember', title: '抄送人员', width: 315},
  78. // { field: 'financial', title: '财政局抄送人员', width: 315},
  79. { width:180, title: '操作', align: 'center', templet: function (d) {
  80. if(d.pid == 0){
  81. return '';
  82. }else{
  83. var html =
  84. '<span class="layui-btn-group">' +
  85. '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">设置</button>' +
  86. '</span>';
  87. return html;
  88. }
  89. }
  90. },
  91. ]],
  92. page: false,
  93. });
  94. //操作按钮
  95. treeGrid.on('tool(treeTable)', function (obj) {
  96. if (obj.event === 'edit') {
  97. tool.side("/admin/pushmember/edit?id="+obj.data.id);
  98. return;
  99. }
  100. });
  101. }
  102. </script>
  103. <!-- /脚本 -->
  104. <!-- <script src="/static/assets/layui/layui.js"></script> -->
  105. <script src="/static/assets/layui/layui.js"></script>
  106. <script src="/static/assets/third_party/echart/echarts.min.js"></script>
  107. <script src="/static/assets/gougu/gouguInit.js"></script>
  108. <script src="https://unpkg.com/pinyin-pro"></script>
  109. <script>
  110. var { pinyin } = pinyinPro;
  111. </script>
  112. <!-- 统计代码 -->
  113. <!-- /统计代码 -->
  114. </body>
  115. </html>