| | |
| | | import { Spin, notification, Button, Table, Modal, Tree, Input, Empty } from 'antd' |
| | | import moment from 'moment' |
| | | import md5 from 'md5' |
| | | import { ApiOutlined, SoundOutlined, DatabaseOutlined } from '@ant-design/icons' |
| | | import { ApiOutlined, SoundOutlined, DatabaseOutlined, LockOutlined } from '@ant-design/icons' |
| | | |
| | | import Api from '@/api' |
| | | import Utils from '@/utils/utils.js' |
| | |
| | | let className = window.backend && record.backend !== 'level1' ? 'unbackend' : '' |
| | | if (record.extra || this.state.appKeys.includes(record.MenuID)) { |
| | | return <span className={className} style={{color: '#1890ff'}}>{text}</span> |
| | | } else if (record.interfaces === 'true' || record.msg === 'true' || record.pds === 'true') { |
| | | 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}{record.pds === 'true' ? <DatabaseOutlined style={{color: 'orange', marginLeft: '5px'}} title="菜单中使用了公共数据源" /> : null}</span> |
| | | } else if (record.interfaces === 'true' || record.msg === 'true' || record.pds === 'true' || record.enabled === false) { |
| | | 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}{record.pds === 'true' ? <DatabaseOutlined style={{color: 'orange', marginLeft: '5px'}} title="菜单中使用了公共数据源" /> : null}{record.enabled === false ? <LockOutlined style={{color: 'orange', marginLeft: '5px'}} title="菜单未启用" /> : null}</span> |
| | | } |
| | | return <span className={className}>{text}</span> |
| | | } |
| | |
| | | item.interfaces = pageParam.interfaces || 'false' |
| | | item.msg = pageParam.msg || 'false' |
| | | item.pds = pageParam.pds || 'false' |
| | | item.enabled = pageParam.enabled |
| | | item.backend = pageParam.backend || '' |
| | | |
| | | if (pageParam.type) { |