| | |
| | | '<button lay-event="del" class="layui-btn layui-btn-sm layui-btn-danger icon-btn"><i class="layui-icon"></i>删除</button>', |
| | | '</p>'].join(''), |
| | | tree: { |
| | | iconIndex: 1, // 折叠图标显示在第几列 |
| | | iconIndex: 2, // 折叠图标显示在第几列 |
| | | isPidData: true, // 是否是id、pid形式数据 |
| | | idName: 'id', // id字段名称 |
| | | pidName: 'parentId' // pid字段名称 |
| | | }, |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{type: 'numbers'} |
| | | ,{field: 'name', align: 'left',title: '名称', minWidth: 150} |
| | | ,{field: 'uuid', align: 'center',title: '编号'} |
| | | // ,{field: 'parentId', align: 'center',title: '父级'} |
| | | ,{field: 'parentName', align: 'center',title: '父级名称'} |
| | | // ,{field: 'path', align: 'center',title: '关联路径'} |
| | | // ,{field: 'pathName', align: 'center',title: '关联路径名'} |
| | | ,{field: 'type$', align: 'center',title: '类型'} |
| | | ,{field: 'leading', align: 'center',title: '负责人'} |
| | | ,{field: 'img', align: 'center',title: '图片'} |
| | |
| | | |
| | | /* 显示表单弹窗 */ |
| | | function showEditModel(mData) { |
| | | layer.open({ |
| | | admin.open({ |
| | | type: 1, |
| | | area: '600px', |
| | | offset: '100px', |
| | | title: (mData ? '修改' : '添加') + '权限', |
| | | content: $('#editDialog').html(), |
| | | skin: 'layui-cool-class', |
| | | success: function (layero, dIndex) { |
| | | // 回显表单数据 |
| | | form.val('detail', mData); |