| | |
| | | type: 'main', |
| | | label: MenuName + '(主表)', |
| | | easyCode: config.easyCode || '', |
| | | setting: { |
| | | actionfixed: config.setting.actionfixed, |
| | | columnfixed: config.setting.columnfixed, |
| | | tableType: config.setting.tableType |
| | | }, |
| | | action: config.action.map(item => { |
| | | let _item = { |
| | | uuid: item.uuid, |
| | |
| | | subconfig.action = subconfig.action.filter(item => permAction[item.uuid]) |
| | | |
| | | subconfig.columns = subconfig.columns.filter(col => { |
| | | if (!col.field || !col.blacklist || col.blacklist.length === 0 || subconfig.setting.primaryKey === col.field) return true |
| | | if (!col.field || !col.blacklist || col.blacklist.length === 0) return true |
| | | |
| | | let _black = col.blacklist.filter(v => { |
| | | return permRoles.indexOf(v) !== -1 |
| | |
| | | }) |
| | | |
| | | if (subUserConfig) { |
| | | subconfig.setting.tableType = subUserConfig.setting.tableType |
| | | |
| | | subconfig.action = subconfig.action.map(item => { |
| | | if (subUserConfig.action[item.uuid]) { |
| | | delete subUserConfig.action[item.uuid].label |
| | |
| | | uuid: res.tab.uuid, |
| | | linkTab: res.tab.linkTab, |
| | | label: res.tab.label, |
| | | setting: {tableType: subconfig.setting.tableType}, |
| | | action: subconfig.action.map(item => { |
| | | let _item = { |
| | | uuid: item.uuid, |
| | |
| | | config.forEach(tab => { |
| | | let _tab = { |
| | | label: tab.label, |
| | | setting: tab.setting, |
| | | action: {}, |
| | | columns: {} |
| | | } |