From cd84b8f81b7da32e05f5cff6498242c7b77d1986 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 10 四月 2025 11:53:37 +0800 Subject: [PATCH] 2025-04-10 --- src/views/rolemanage/index.jsx | 7 ++++--- src/views/tabledesign/index.jsx | 2 +- src/views/design/sidemenu/index.jsx | 4 ++-- src/views/pcdesign/index.jsx | 3 ++- src/views/mobdesign/index.jsx | 3 ++- src/views/menudesign/index.jsx | 4 ++-- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/views/design/sidemenu/index.jsx b/src/views/design/sidemenu/index.jsx index 293e3a3..f6a8a05 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, 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' @@ -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}{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> ) })} diff --git a/src/views/menudesign/index.jsx b/src/views/menudesign/index.jsx index 56d8e6c..f50902f 100644 --- a/src/views/menudesign/index.jsx +++ b/src/views/menudesign/index.jsx @@ -899,7 +899,7 @@ 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' @@ -916,7 +916,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, 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, diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx index f2d1763..e024273 100644 --- a/src/views/mobdesign/index.jsx +++ b/src/views/mobdesign/index.jsx @@ -1627,10 +1627,11 @@ 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' diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx index 681427f..2515dc9 100644 --- a/src/views/pcdesign/index.jsx +++ b/src/views/pcdesign/index.jsx @@ -1312,10 +1312,11 @@ 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' diff --git a/src/views/rolemanage/index.jsx b/src/views/rolemanage/index.jsx index a63b474..2e930ee 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, 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) { diff --git a/src/views/tabledesign/index.jsx b/src/views/tabledesign/index.jsx index 722129a..a526f99 100644 --- a/src/views/tabledesign/index.jsx +++ b/src/views/tabledesign/index.jsx @@ -664,7 +664,7 @@ 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, -- Gitblit v1.8.0