king
2025-04-10 cd84b8f81b7da32e05f5cff6498242c7b77d1986
src/views/rolemanage/index.jsx
@@ -3,7 +3,7 @@
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'
@@ -32,8 +32,8 @@
          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>
        }
@@ -162,6 +162,7 @@
              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) {