From 7449eee8fa9f8a251e9c4e9162030f1e004bae0f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 15 十月 2020 09:17:04 +0800 Subject: [PATCH] 2020-10-15 --- src/templates/sharecomponent/searchcomponent/index.jsx | 18 +++--------------- 1 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/templates/sharecomponent/searchcomponent/index.jsx b/src/templates/sharecomponent/searchcomponent/index.jsx index aeb9569..6c70ffb 100644 --- a/src/templates/sharecomponent/searchcomponent/index.jsx +++ b/src/templates/sharecomponent/searchcomponent/index.jsx @@ -21,7 +21,6 @@ menu: PropTypes.object, // 褰撳墠鑿滃崟淇℃伅 config: PropTypes.object, // 閰嶇疆淇℃伅 pasteContent: PropTypes.object, // 绮樿创閰嶇疆淇℃伅 - optionLibs: PropTypes.any, // 涓嬫媺瀛楀吀 sysRoles: PropTypes.array, // 瑙掕壊鍒楄〃锛岄粦鍚嶅崟 updatesearch: PropTypes.func // 鏇存柊 } @@ -128,7 +127,7 @@ * 4銆佷笅鎷夎彍鍗曟暟鎹簮璇硶楠岃瘉 */ handleSubmit = () => { - const { optionLibs, menu, config } = this.props + const { config } = this.props let _searchlist = fromJS(this.state.searchlist).toJS() this.searchFormRef.handleConfirm().then(res => { @@ -189,16 +188,6 @@ return } - if ( res.options && res.options.length > 0 ) { // 涓嬫媺鑿滃崟鍙�夐泦鍚� - optionLibs.set(menu.MenuID + res.uuid, { - uuid: menu.MenuID + res.uuid, - label: res.label, - parname: menu.MenuName, - type: 'search', - options: res.options - }) - } - if ((res.type === 'select' || res.type === 'multiselect' || res.type === 'link') && res.resourceType === '1' && /\s/.test(res.dataSource)) { this.setState({ sqlVerifing: true @@ -226,7 +215,7 @@ searchlist: _searchlist, visible: false }, ()=> { - this.props.updatesearch({...config, search: _searchlist}, optionLibs) + this.props.updatesearch({...config, search: _searchlist}) }) } else { this.setState({sqlVerifing: false}) @@ -241,7 +230,7 @@ searchlist: _searchlist, visible: false }, ()=> { - this.props.updatesearch({...config, search: _searchlist}, optionLibs) + this.props.updatesearch({...config, search: _searchlist}) }) } }) @@ -316,7 +305,6 @@ card={this.state.card} formlist={this.state.formlist} inputSubmit={this.handleSubmit} - optionLibs={this.props.optionLibs} wrappedComponentRef={(inst) => this.searchFormRef = inst} /> </Modal> -- Gitblit v1.8.0