From 9cf5fc474d2159aad973e3208fbef670f325307f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 25 十一月 2020 17:57:41 +0800 Subject: [PATCH] 2020-11-25 --- src/templates/sharecomponent/actioncomponent/actionform/index.jsx | 23 +---------------------- 1 files changed, 1 insertions(+), 22 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx index 6d94404..d934b69 100644 --- a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx @@ -76,7 +76,6 @@ UNSAFE_componentWillMount () { const { card } = this.props - let _menulist = this.props.formlist.filter(form => form.key === 'linkmenu')[0] || '' let _opentype = card.OpenType // 鎵撳紑鏂瑰紡 let _tabType = card.tabType || 'SubTable' // 鎸夐挳涓哄脊绐楋紙鏍囩锛夋椂锛屾爣绛剧殑绫诲瀷 let _intertype = card.intertype || 'system' // 鎺ュ彛绫诲瀷 @@ -99,7 +98,6 @@ this.setState({ openType: _opentype, pageTemplate: _pageTemplate, - menulist: _menulist.options || [], interType: _intertype, position: card.position || 'toolbar', funcType: _funcType, @@ -627,7 +625,7 @@ } ] })( - <Cascader options={this.state.menulist} placeholder="" /> + <Cascader options={item.options || []} placeholder="" /> )} </Form.Item> </Col> @@ -639,7 +637,6 @@ handleConfirm = () => { const { setting } = this.props - const { menulist } = this.state // 琛ㄥ崟鎻愪氦鏃舵鏌ヨ緭鍏ュ�兼槸鍚︽纭� return new Promise((resolve, reject) => { this.props.form.validateFieldsAndScroll((err, values) => { @@ -677,24 +674,6 @@ } } - // 鍏宠仈涓夌骇鑿滃崟 - if (values.OpenType === 'tab' && values.linkmenu && values.linkmenu.length > 0) { - let linkThdMenu = '' - menulist.forEach(menu => { - if (menu.value === values.linkmenu[0]) { - menu.children.forEach(item => { - if (item.value === values.linkmenu[1]) { - item.children.forEach(cell => { - if (cell.value === values.linkmenu[2]) { - linkThdMenu = cell - } - }) - } - }) - } - }) - values.linkThdMenu = linkThdMenu - } resolve(values) } else { reject(err) -- Gitblit v1.8.0