| | |
| | | _config.wrap.selected = 'false' |
| | | } |
| | | |
| | | _config.wrap.selStyle = _config.wrap.selStyle || 'active' |
| | | _config.wrap.selStyle = _config.wrap.selStyle || 'none' |
| | | _config.wrap.pagestyle = _config.wrap.pagestyle || 'page' |
| | | _config.wrap.scale = _config.wrap.scale === 'true' ? 'scale' : '' |
| | | _config.wrap.layout = (_config.wrap.layout || 'grid') + '-layout float-' + (_config.wrap.cardFloat || 'left') |
| | |
| | | }) |
| | | |
| | | _config.subcards = null |
| | | |
| | | if (!_config.wrap.cardType) { |
| | | _config.wrap.selStyle = 'none' |
| | | _config.wrap.selected = 'false' |
| | | _config.wrap.pickup = 'false' |
| | | } |
| | | |
| | | let selected = 'false' |
| | | if (_config.wrap.selected === 'always' || _config.wrap.selected === 'init' || _config.wrap.selected === 'sign') { |
| | |
| | | _config.wrap.selected = 'false' |
| | | } |
| | | |
| | | _config.wrap.selStyle = _config.wrap.selStyle || 'active' |
| | | _config.wrap.selStyle = _config.wrap.selStyle || 'check' |
| | | _config.wrap.pagestyle = _config.wrap.pagestyle || 'page' |
| | | |
| | | _config.wrap.wrapClass = `${_config.wrap.selStyle} ${_config.wrap.cardType || ''} ${config.wrap.empSign === 'hidden' ? 'mk-empty-hide' : ''}` |
| | |
| | | |
| | | let selected = _config.wrap.selected || 'false' |
| | | |
| | | _config.wrap.selStyle = _config.wrap.selStyle || 'active' |
| | | _config.wrap.selStyle = _config.wrap.selStyle || 'none' |
| | | _config.wrap.priKeyType = _config.wrap.priKeyType || 'static' |
| | | _config.wrap.scale = _config.wrap.scale === 'true' ? 'scale' : '' |
| | | |
| | |
| | | import React, {Component} from 'react' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Menu, Popover, Modal, notification } from 'antd' |
| | | import { EditOutlined, PlusOutlined, SettingOutlined, ApiOutlined, SoundOutlined, DatabaseOutlined } from '@ant-design/icons' |
| | | import { EditOutlined, PlusOutlined, SettingOutlined, ApiOutlined, SoundOutlined, DatabaseOutlined, LockOutlined } from '@ant-design/icons' |
| | | import moment from 'moment' |
| | | |
| | | import asyncComponent from '@/utils/asyncComponent' |
| | |
| | | {item.children.map(cell => { |
| | | return ( |
| | | <Menu.Item key={cell.MenuID}> |
| | | <span className={'editable-menu-item ' + (cell.up_action ? 'unupdate' : '') + (window.backend && window.GLOB.systemType !== 'production' && cell.PageParam.backend !== 'level1' ? ' unbackend' : '')} onDoubleClick={() => this.editmenu(cell)}>{cell.PageParam.interfaces === 'true' ? <ApiOutlined title="菜单中使用了外部接口" /> : null}{cell.PageParam.msg === 'true' ? <SoundOutlined title="菜单中发送了消息" /> : null}{cell.MenuName}{cell.PageParam.pds === 'true' ? <DatabaseOutlined style={{marginLeft: '5px', color: 'orange'}} title="菜单中使用了公共数据源" /> : null}</span> |
| | | <span className={'editable-menu-item ' + (cell.up_action ? 'unupdate' : '') + (window.backend && window.GLOB.systemType !== 'production' && cell.PageParam.backend !== 'level1' ? ' unbackend' : '')} onDoubleClick={() => this.editmenu(cell)}>{cell.PageParam.interfaces === 'true' ? <ApiOutlined title="菜单中使用了外部接口" /> : null}{cell.PageParam.msg === 'true' ? <SoundOutlined title="菜单中发送了消息" /> : null}{cell.MenuName}{cell.PageParam.pds === 'true' ? <DatabaseOutlined style={{marginLeft: '5px', color: 'orange'}} title="菜单中使用了公共数据源" /> : null}{cell.PageParam.enabled === false ? <LockOutlined style={{marginLeft: '5px', color: 'orange'}} title="菜单未启用" /> : null}</span> |
| | | </Menu.Item> |
| | | ) |
| | | })} |
| | |
| | | let urlFields = config.urlFields ? config.urlFields.join(',') : '' |
| | | let langSql = getLangTrans(config) |
| | | let pds = 'false' |
| | | if (config.interfaces) { |
| | | if (config.interfaces && config.enabled) { |
| | | config.interfaces.forEach(item => { |
| | | if (item.status !== 'true') return |
| | | pds = 'true' |
| | |
| | | EasyCode: config.easyCode || '', |
| | | Template: 'CustomPage', |
| | | MenuName: config.MenuName || '', |
| | | PageParam: JSON.stringify({Template: 'CustomPage', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, pds, backend: 'level1', urlFields}), |
| | | PageParam: JSON.stringify({Template: 'CustomPage', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, pds, backend: 'level1', enabled: config.enabled, urlFields}), |
| | | open_edition: config.open_edition, |
| | | long_data: long_data, |
| | | debug_md5: key, |
| | |
| | | roleParam.interfaces = interfaces |
| | | roleParam.msg = msg |
| | | roleParam.backend = 'level1' |
| | | roleParam.enabled = config.enabled |
| | | let langSql = getLangTrans(config) |
| | | |
| | | roleParam.pds = 'false' |
| | | if (config.interfaces) { |
| | | if (config.interfaces && config.enabled) { |
| | | config.interfaces.forEach(item => { |
| | | if (item.status !== 'true') return |
| | | roleParam.pds = 'true' |
| | |
| | | roleParam.interfaces = interfaces |
| | | roleParam.msg = msg |
| | | roleParam.backend = 'level1' |
| | | roleParam.enabled = config.enabled |
| | | let langSql = getLangTrans(config) |
| | | |
| | | roleParam.pds = 'false' |
| | | if (config.interfaces) { |
| | | if (config.interfaces && config.enabled) { |
| | | config.interfaces.forEach(item => { |
| | | if (item.status !== 'true') return |
| | | roleParam.pds = 'true' |
| | |
| | | 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) { |
| | |
| | | EasyCode: config.easyCode || '', |
| | | Template: 'BaseTable', |
| | | MenuName: config.MenuName || '', |
| | | PageParam: JSON.stringify({Template: 'BaseTable', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, backend: 'level1', urlFields}), |
| | | PageParam: JSON.stringify({Template: 'BaseTable', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, backend: 'level1', enabled: config.enabled, urlFields}), |
| | | open_edition: config.open_edition, |
| | | long_data: long_data, |
| | | debug_md5: key, |