| | |
| | | where: param, |
| | | page: false, |
| | | cols: [[ |
| | | { type: 'numbers' }, |
| | | { field: 'name', minWidth: 200, title: '菜单名称' }, |
| | | { field: 'tenantId', minWidth: 80, title: '应用标识' }, |
| | | { field: 'url', title: '菜单url' }, |
| | | { field: 'path', title: '菜单path' }, |
| | | { field: 'css', align: 'center', title: '样式' }, |
| | | { field: 'sort', width: 80, align: 'center', title: '排序号' }, |
| | | { type: 'numbers' ,width: "10%" }, |
| | | { field: 'name',width: "10%", minWidth: 200, title: '菜单名称' }, |
| | | { field: 'tenantId',width: "10%", minWidth: 80, title: '应用标识' }, |
| | | { field: 'url',width: "10%", title: '菜单url' }, |
| | | { field: 'path',width: "10%", title: '菜单path' }, |
| | | { field: 'css',width: "10%", align: 'center', title: '样式' }, |
| | | { field: 'sort', width: "10%", align: 'center', title: '排序号' }, |
| | | { |
| | | field: 'type', width: 80, align: 'center', templet: function (d) { |
| | | field: 'type', width: "10%", align: 'center', templet: function (d) { |
| | | if (d.type === 2) { |
| | | return '<span class="layui-badge layui-bg-gray">资源</span>'; |
| | | } |
| | |
| | | } |
| | | }, title: '类型' |
| | | }, |
| | | { field: 'enabled', width: 100, sort: true, templet: '#menu-tpl-state', title: '状态' }, |
| | | { templet: '#menus-state', width: 120, align: 'center', title: '操作' } |
| | | { field: 'enabled', width: "10%", sort: true, templet: '#menu-tpl-state', title: '状态' }, |
| | | { templet: '#menus-state', width: "10%", align: 'center', title: '操作' } |
| | | ]], |
| | | done: function (res) { |
| | | permissionsInput(res,config); |