From fa2c99a6ed8574878c1bdefae5dcb839fc4ebcf8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 十一月 2024 21:10:43 +0800 Subject: [PATCH] 2024-11-07 --- src/views/rolemanage/index.jsx | 7 ++++--- src/views/design/sidemenu/index.jsx | 4 ++-- src/views/pcdesign/index.jsx | 8 ++++++++ src/utils/utils-custom.js | 1 + src/views/mobdesign/index.jsx | 8 ++++++++ src/views/menudesign/index.jsx | 9 ++++++++- 6 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/utils/utils-custom.js b/src/utils/utils-custom.js index 3de3779..231ece6 100644 --- a/src/utils/utils-custom.js +++ b/src/utils/utils-custom.js @@ -1733,6 +1733,7 @@ if (config.interfaces) { config.interfaces.forEach(item => { + if (item.status !== 'true') return if (item.setting && item.setting.interType === 'outer' && item.setting.sysInterface !== 'true') { inters = 'true' } diff --git a/src/views/design/sidemenu/index.jsx b/src/views/design/sidemenu/index.jsx index 49a8a0d..897bd86 100644 --- a/src/views/design/sidemenu/index.jsx +++ b/src/views/design/sidemenu/index.jsx @@ -1,7 +1,7 @@ import React, {Component} from 'react' import { is, fromJS } from 'immutable' import { Menu, Popover, Modal, notification } from 'antd' -import { EditOutlined, PlusOutlined, SettingOutlined, ApiOutlined, SoundOutlined } from '@ant-design/icons' +import { EditOutlined, PlusOutlined, SettingOutlined, ApiOutlined, SoundOutlined, DatabaseOutlined } from '@ant-design/icons' import moment from 'moment' import asyncComponent from '@/utils/asyncComponent' @@ -330,7 +330,7 @@ {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}</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: 'inherit'}} title="鑿滃崟涓娇鐢ㄤ簡鍏叡鏁版嵁婧�" /> : null}</span> </Menu.Item> ) })} diff --git a/src/views/menudesign/index.jsx b/src/views/menudesign/index.jsx index 83ff054..41ba0b2 100644 --- a/src/views/menudesign/index.jsx +++ b/src/views/menudesign/index.jsx @@ -907,6 +907,13 @@ let msg = getOutMessage(config) let urlFields = config.urlFields ? config.urlFields.join(',') : '' let langSql = getLangTrans(config) + let pds = 'false' + if (config.interfaces) { + config.interfaces.forEach(item => { + if (item.status !== 'true') return + pds = 'true' + }) + } let param = { func: 'sPC_TrdMenu_AddUpt', @@ -918,7 +925,7 @@ 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, backend: 'level1', urlFields}), + PageParam: JSON.stringify({Template: 'CustomPage', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, pds, backend: 'level1', urlFields}), open_edition: config.open_edition, long_data: long_data, debug_md5: key, diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx index 4d66399..4a44a02 100644 --- a/src/views/mobdesign/index.jsx +++ b/src/views/mobdesign/index.jsx @@ -1629,6 +1629,14 @@ roleParam.msg = msg roleParam.backend = 'level1' let langSql = getLangTrans(config) + + roleParam.pds = 'false' + if (config.interfaces) { + config.interfaces.forEach(item => { + if (item.status !== 'true') return + roleParam.pds = 'true' + }) + } let param = { func: 'sPC_TrdMenu_AddUpt', diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx index 7fef173..d3a7101 100644 --- a/src/views/pcdesign/index.jsx +++ b/src/views/pcdesign/index.jsx @@ -1311,6 +1311,14 @@ roleParam.backend = 'level1' let langSql = getLangTrans(config) + roleParam.pds = 'false' + if (config.interfaces) { + config.interfaces.forEach(item => { + if (item.status !== 'true') return + roleParam.pds = 'true' + }) + } + let param = { func: 'sPC_TrdMenu_AddUpt', FstID: 'mk_app', diff --git a/src/views/rolemanage/index.jsx b/src/views/rolemanage/index.jsx index bb9d731..2bd8b09 100644 --- a/src/views/rolemanage/index.jsx +++ b/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 } from '@ant-design/icons' +import { ApiOutlined, SoundOutlined, DatabaseOutlined } from '@ant-design/icons' import Api from '@/api' import Utils from '@/utils/utils.js' @@ -29,8 +29,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') { - 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> + } 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={{marginLeft: '5px'}} title="鑿滃崟涓娇鐢ㄤ簡鍏叡鏁版嵁婧�" /> : null}</span> } return <span className={className}>{text}</span> } @@ -159,6 +159,7 @@ item.nodes = pageParam item.interfaces = pageParam.interfaces || 'false' item.msg = pageParam.msg || 'false' + item.pds = pageParam.pds || 'false' item.backend = pageParam.backend || '' if (pageParam.type) { -- Gitblit v1.8.0