| | |
| | | columns: [ |
| | | { |
| | | title: '菜单名称', dataIndex: 'MenuName', key: 'MenuName', align: 'center', render: (text, record) => { |
| | | let className = window.backend && record.backend !== 'level1' ? 'unbackend' : '' |
| | | if (record.extra || this.state.appKeys.includes(record.MenuID)) { |
| | | return <span style={{color: '#1890ff'}}>{text}</span> |
| | | return <span className={className} style={{color: '#1890ff'}}>{text}</span> |
| | | } else if (record.interfaces === 'true' || record.msg === 'true') { |
| | | return <span>{record.interfaces === 'true' ? <ApiOutlined style={{color: 'orange', marginRight: '5px'}} title="菜单中使用了外部接口" /> : null}{record.msg === 'true' ? <SoundOutlined style={{color: 'orange', marginRight: '5px'}} title="菜单中发送了消息" /> : null}{text}</span> |
| | | return <span className={className}>{record.interfaces === 'true' ? <ApiOutlined style={{color: 'orange', marginRight: '5px'}} title="菜单中使用了外部接口" /> : null}{record.msg === 'true' ? <SoundOutlined style={{color: 'orange', marginRight: '5px'}} title="菜单中发送了消息" /> : null}{text}</span> |
| | | } |
| | | return text |
| | | return <span className={className}>{text}</span> |
| | | } |
| | | }, |
| | | { |
| | |
| | | item.nodes = pageParam |
| | | item.interfaces = pageParam.interfaces || 'false' |
| | | item.msg = pageParam.msg || 'false' |
| | | item.backend = pageParam.backend || '' |
| | | |
| | | if (pageParam.type) { |
| | | item.type = pageParam.type |