| | |
| | | loading: false, |
| | | menulist: [], |
| | | columns: [ |
| | | { title: '菜单名称', dataIndex: 'MenuName', key: 'MenuName', align: 'center' }, |
| | | { title: '菜单名称', dataIndex: 'MenuName', key: 'MenuName', align: 'center', render: (text, record) => { |
| | | if (record.extra) { |
| | | return <span style={{color: '#1890ff'}}>{text}</span> |
| | | } |
| | | return text |
| | | } }, |
| | | { |
| | | title: '操作', |
| | | key: 'action', |
| | |
| | | delete item.menus_rolelist |
| | | } |
| | | |
| | | if (!ub && app.userbind === item.MenuID) { |
| | | if (app.userbind === item.MenuID) { |
| | | item.extra = true |
| | | ub = true |
| | | } |
| | | if (!im && app.instantMessage === item.MenuID) { |
| | | if (app.instantMessage === item.MenuID) { |
| | | item.extra = true |
| | | im = true |
| | | } |
| | | |
| | |
| | | }) |
| | | |
| | | if (!im) { |
| | | menus.push({nodes: '', type: 'none', MenuID: app.instantMessage, MenuName: '即时通信'}) |
| | | menus.push({nodes: '', type: 'none', extra: true, MenuID: app.instantMessage, MenuName: '即时通信'}) |
| | | } |
| | | if (!ub) { |
| | | menus.push({nodes: '', type: 'none', MenuID: app.userbind, MenuName: '用户绑定'}) |
| | | menus.push({nodes: '', type: 'none', extra: true, MenuID: app.userbind, MenuName: '用户绑定'}) |
| | | } |
| | | |
| | | this.setState({ |