| | |
| | | {item.children.map(cell => { |
| | | return ( |
| | | <Menu.Item key={cell.MenuID}> |
| | | <span className={'editable-menu-item ' + (cell.up_action ? 'unupdate' : '')} onDoubleClick={() => this.editmenu(cell)}>{cell.PageParam && cell.PageParam.interfaces === 'true' ? <ApiOutlined title="菜单中使用了外部接口" /> : null}{cell.PageParam && cell.PageParam.msg === 'true' ? <SoundOutlined title="菜单中发送了消息" /> : null}{cell.MenuName}</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}</span> |
| | | </Menu.Item> |
| | | ) |
| | | })} |
| | |
| | | .editable-menu-item.unupdate { |
| | | color: orange; |
| | | } |
| | | .editable-menu-item.unbackend::before { |
| | | content: ''; |
| | | display: block; |
| | | position: absolute; |
| | | width: 4px; |
| | | height: 4px; |
| | | background-color: orange; |
| | | border-radius: 4px; |
| | | top: 10px; |
| | | left: 42px; |
| | | } |
| | | } |
| | | .ant-menu-sub.ant-menu-inline { |
| | | position: relative; |
| | |
| | | } else if (this.checklog()) { |
| | | if (sessionStorage.getItem('langList') && !config.trans) { |
| | | |
| | | } else if (window.backend && config.enabled && !config.allSqls) { |
| | | } else if (config.enabled && !config.allSqls) { |
| | | |
| | | } else { |
| | | notification.success({ |
| | |
| | | } |
| | | |
| | | let long_data = '' |
| | | if (window.backend && config.enabled) { |
| | | if (config.enabled) { |
| | | let sqls = getAllSqls(config) |
| | | let _t = moment().format('YYYYMMDDHHmmss') |
| | | let getguid = () => { |
| | |
| | | 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, urlFields}), |
| | | PageParam: JSON.stringify({Template: 'CustomPage', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, backend: 'level1', urlFields}), |
| | | open_edition: config.open_edition, |
| | | long_data: long_data, |
| | | debug_md5: key, |
| | |
| | | } else if (this.checklog()) { |
| | | if ((sessionStorage.getItem('applangList') && !config.trans) || (adapters.includes('wxmini') && !config.hasOwnProperty('miniStyle'))) { |
| | | |
| | | } else if (window.backend && config.enabled && !config.allSqls) { |
| | | } else if (config.enabled && !config.allSqls) { |
| | | |
| | | } else { |
| | | notification.success({ |
| | |
| | | } |
| | | |
| | | let long_data = '' |
| | | if (window.backend && config.enabled) { |
| | | if (config.enabled) { |
| | | let sqls = getAllSqls(config) |
| | | let _t = moment().format('YYYYMMDDHHmmss') |
| | | let getguid = () => { |
| | |
| | | TypeCharOne: sessionStorage.getItem('kei_no'), |
| | | Typename: sessionStorage.getItem('typename'), |
| | | MenuName: config.MenuName || '', |
| | | PageParam: JSON.stringify({Template: 'webPage', interfaces, msg}), |
| | | PageParam: JSON.stringify({Template: 'webPage', interfaces, msg, backend: 'level1'}), |
| | | open_edition: config.open_edition, |
| | | menus_rolelist: window.btoa(window.encodeURIComponent(JSON.stringify(roleParam))), |
| | | long_data: long_data, |
| | |
| | | TypeCharOne: sessionStorage.getItem('kei_no'), |
| | | Typename: sessionStorage.getItem('typename'), |
| | | MenuName: NavBar.name || '', |
| | | PageParam: JSON.stringify({Template: NavBar.type}), |
| | | PageParam: JSON.stringify({Template: NavBar.type, backend: 'level1'}), |
| | | open_edition: _item ? (_item.open_edition || '') : '', |
| | | menus_rolelist: window.btoa(window.encodeURIComponent(JSON.stringify(roles))), |
| | | // LText: '', |
| | |
| | | } else if (this.checklog()) { |
| | | if (sessionStorage.getItem('applangList') && !config.trans) { |
| | | |
| | | } else if (window.backend && config.enabled && !config.allSqls) { |
| | | } else if (config.enabled && !config.allSqls) { |
| | | |
| | | } else { |
| | | notification.success({ |
| | |
| | | } |
| | | |
| | | let long_data = '' |
| | | if (window.backend && config.enabled) { |
| | | if (config.enabled) { |
| | | let sqls = getAllSqls(config) |
| | | let _t = moment().format('YYYYMMDDHHmmss') |
| | | let getguid = () => { |
| | |
| | | TypeCharOne: sessionStorage.getItem('kei_no'), |
| | | Typename: 'pc', |
| | | MenuName: config.MenuName || '', |
| | | PageParam: JSON.stringify({Template: 'webPage', interfaces, msg}), |
| | | PageParam: JSON.stringify({Template: 'webPage', interfaces, msg, backend: 'level1'}), |
| | | menus_rolelist: window.btoa(window.encodeURIComponent(JSON.stringify(roleParam))), |
| | | open_edition: config.open_edition, |
| | | long_data: long_data, |
| | |
| | | TypeCharOne: sessionStorage.getItem('kei_no'), |
| | | Typename: 'pc', |
| | | MenuName: NavBar.name || '', |
| | | PageParam: JSON.stringify({Template: NavBar.type}), |
| | | PageParam: JSON.stringify({Template: NavBar.type, backend: 'level1'}), |
| | | menus_rolelist: window.btoa(window.encodeURIComponent(JSON.stringify(roles))), |
| | | open_edition: NavBar.open_edition, |
| | | // LText: '', |
| | |
| | | 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 |
| | |
| | | margin-right: 0px; |
| | | } |
| | | } |
| | | .unbackend { |
| | | position: relative; |
| | | } |
| | | .unbackend::before { |
| | | content: ''; |
| | | display: block; |
| | | position: absolute; |
| | | width: 4px; |
| | | height: 4px; |
| | | background-color: orange; |
| | | border-radius: 4px; |
| | | top: 0px; |
| | | left: -5px; |
| | | } |
| | | } |
| | |
| | | } else if (this.checklog()) { |
| | | if (sessionStorage.getItem('langList') && !config.trans) { |
| | | |
| | | } else if (window.backend && config.enabled && !config.allSqls) { |
| | | } else if (config.enabled && !config.allSqls) { |
| | | |
| | | } else { |
| | | notification.success({ |
| | |
| | | } |
| | | |
| | | let long_data = '' |
| | | if (window.backend && config.enabled) { |
| | | if (config.enabled) { |
| | | let sqls = getAllSqls(config) |
| | | let _t = moment().format('YYYYMMDDHHmmss') |
| | | let getguid = () => { |
| | |
| | | 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, urlFields}), |
| | | PageParam: JSON.stringify({Template: 'BaseTable', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, backend: 'level1', urlFields}), |
| | | open_edition: config.open_edition, |
| | | long_data: long_data, |
| | | debug_md5: key, |