From 25b1262a25df82f32296afe3802836e768f2143f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 15 五月 2020 14:15:30 +0800 Subject: [PATCH] 2020-05-15 --- src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx index abf8146..01ddd1f 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyexcelin/customscript/index.jsx @@ -153,6 +153,16 @@ }) } + handleCancel = () => { + this.setState({ + editItem: null + }) + + this.props.form.setFieldsValue({ + sql: '' + }) + } + selectScript = (value, option) => { const { usefulfields, btn } = this.props @@ -212,7 +222,7 @@ </Col> : null} <Col span={16}> <Form.Item label={'鎶ラ敊瀛楁'} style={{margin: 0}}> - errorCode, errmsg + ErrorCode, retmsg </Form.Item> </Col> {usefulfields ? <Col span={24} className="sqlfield"> @@ -257,10 +267,13 @@ </Select> </Form.Item> </Col> - <Col span={4} className="add"> + <Col span={6} className="add"> <Button onClick={this.handleConfirm} loading={this.state.loading} className="mk-green" style={{marginBottom: 15, marginLeft: 40}}> 淇濆瓨 </Button> + <Button onClick={this.handleCancel} style={{marginBottom: 15, marginLeft: 10}}> + 鍙栨秷 + </Button> </Col> <Col span={24} className="sql"> <Form.Item label={'sql'}> -- Gitblit v1.8.0