From ab941662167dc16d4b4e73522b275f47f4a89ff0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 06 九月 2020 23:22:19 +0800 Subject: [PATCH] 2020-09-06 --- src/menu/actioncomponent/index.jsx | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/menu/actioncomponent/index.jsx b/src/menu/actioncomponent/index.jsx index 6c626c7..e5de539 100644 --- a/src/menu/actioncomponent/index.jsx +++ b/src/menu/actioncomponent/index.jsx @@ -28,7 +28,6 @@ type: PropTypes.string, // 鑿滃崟绫诲瀷锛屼富琛ㄦ垨瀛愯〃 menu: PropTypes.object, // 鑿滃崟淇℃伅锛堣彍鍗昳d锛岃彍鍗曞弬鏁帮紝鑿滃崟鍚嶇О锛� config: PropTypes.object, // 鑿滃崟閰嶇疆淇℃伅 - usefulFields: PropTypes.array, // 鑷畾涔夊嚱鏁板彲鐢ㄥ瓧娈� tabs: PropTypes.array, // 鎵�鏈夋爣绛� setSubConfig: PropTypes.func, // 璁剧疆瀛愰厤缃俊鎭� updateaction: PropTypes.func // 鑿滃崟閰嶇疆鏇存柊 @@ -84,8 +83,7 @@ * @description 鎸夐挳缂栬緫锛岃幏鍙栨寜閽〃鍗曚俊鎭� */ handleAction = (card) => { - const { menu } = this.props - const { config } = this.props + const { menu, config } = this.props let ableField = menu.permFuncField ? menu.permFuncField.join(', ') : '' let functip = <div> @@ -104,6 +102,23 @@ }) } + // let modules = [] + + // menu.components.forEach(item => { + // if (item.uuid === config.uuid) return + + // modules.push({ + // value: item.uuid, + // text: item.setting.name + // }) + // }) + + // if (supModule && supModule !== 'empty') { + // if (modules.filter(item => item.value === supModule).length === 0) { + // supModule = '' + // } + // } + if (menu.fstMenuList && card.linkmenu && card.linkmenu.length > 0) { let _param = { func: 'sPC_Get_FunMenu', -- Gitblit v1.8.0