From 8532d67575bf2a43f0195302db8c5d518c43144a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 30 三月 2022 11:21:36 +0800 Subject: [PATCH] 2022-03-30 --- src/pc/createview/settingform/index.jsx | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/pc/createview/settingform/index.jsx b/src/pc/createview/settingform/index.jsx index 638c2a5..eb82755 100644 --- a/src/pc/createview/settingform/index.jsx +++ b/src/pc/createview/settingform/index.jsx @@ -20,6 +20,14 @@ if (appMenus) { try { appMenus = JSON.parse(appMenus) + appMenus = appMenus.map(item => { + item.name = item.MenuName + if (item.MenuNo && item.MenuNo !== item.MenuName) { + item.name = item.MenuName + `锛�${item.MenuNo}锛塦 + } + + return item + }) } catch (e) { appMenus = [] } @@ -114,9 +122,14 @@ {getFieldDecorator('copymenuId', { initialValue: '' })( - <Select allowClear showSearch onChange={(val) => this.setState({copymenuId: val})} filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}> + <Select + allowClear + showSearch + onChange={(val) => this.setState({copymenuId: val})} + filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0} + > {appMenus.map(option => - <Select.Option key={option.MenuID} value={option.MenuID}>{option.MenuName}</Select.Option> + <Select.Option key={option.MenuID} value={option.MenuID}>{option.name}</Select.Option> )} </Select> )} -- Gitblit v1.8.0