| | |
| | | |
| | | state = { |
| | | enable: this.props.autoMatic.enable, |
| | | onFinish: this.props.autoMatic.onFinish || 'over' |
| | | onFinish: this.props.autoMatic.onFinish || 'restart' |
| | | } |
| | | |
| | | handleConfirm = () => { |
| | |
| | | {enable === 'true' ? <Col span={12}> |
| | | <Form.Item label="完成后"> |
| | | {getFieldDecorator('onFinish', { |
| | | initialValue: autoMatic.onFinish || 'over', |
| | | initialValue: autoMatic.onFinish || 'restart', |
| | | })( |
| | | <Radio.Group onChange={(e) => this.setState({onFinish: e.target.value})}> |
| | | <Radio value="over">结束</Radio> |
| | | <Radio value="restart">重新启动</Radio> |
| | | <Radio value="over">结束</Radio> |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |