From f45b2ad61211cf2821cdaab07676c7906c96410a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 05 七月 2023 18:23:56 +0800 Subject: [PATCH] 2023-07-05 --- src/templates/sharecomponent/searchcomponent/settingform/index.jsx | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/templates/sharecomponent/searchcomponent/settingform/index.jsx b/src/templates/sharecomponent/searchcomponent/settingform/index.jsx index 1adb220..913d5a6 100644 --- a/src/templates/sharecomponent/searchcomponent/settingform/index.jsx +++ b/src/templates/sharecomponent/searchcomponent/settingform/index.jsx @@ -12,14 +12,16 @@ } state = { - advanceType: '' + advanceType: '', + show: '' } UNSAFE_componentWillMount () { const { setting } = this.props this.setState({ - advanceType: setting.advanceType || 'modal' + advanceType: setting.advanceType || 'modal', + show: setting.show || 'true' }) } @@ -39,7 +41,7 @@ render() { const { setting } = this.props const { getFieldDecorator } = this.props.form - const { advanceType } = this.state + const { advanceType, show } = this.state const formItemLayout = { labelCol: { @@ -60,7 +62,7 @@ {getFieldDecorator('show', { initialValue: setting.show || 'true' })( - <Radio.Group> + <Radio.Group onChange={(e) => this.setState({show: e.target.value})}> <Radio value="true">鏄剧ず</Radio> <Radio value="false">闅愯棌</Radio> </Radio.Group> @@ -152,6 +154,18 @@ })(<InputNumber min={0} precision={0} onPressEnter={this.props.inputSubmit}/>)} </Form.Item> </Col> + {show === 'true' ? <Col span={12}> + <Form.Item label="閲嶇疆鏃�"> + {getFieldDecorator('resetContrl', { + initialValue: setting.resetContrl || 'init', + })( + <Radio.Group> + <Radio value="init">鎭㈠鍒濆鍊�</Radio> + <Radio value="clear">娓呯┖</Radio> + </Radio.Group> + )} + </Form.Item> + </Col> : null} </Row> </Form> ) -- Gitblit v1.8.0