From 0c94290767a88c913ed736e65970eafee9e41519 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 22 七月 2020 15:49:16 +0800 Subject: [PATCH] 2020-07-22 --- src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx index 19bcb12..9c23b01 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx @@ -12,6 +12,7 @@ const { TabPane } = Tabs const { TextArea } = Input +const { confirm } = Modal class VerifyCard extends Component { static propTpyes = { @@ -399,6 +400,26 @@ }) } + clearField = () => { + const { verify } = this.state + const _this = this + + confirm({ + content: `纭畾娓呯┖Excel鍒楀悧锛焋, + okText: this.props.dict['model.confirm'], + cancelText: this.props.dict['model.cancel'], + onOk() { + _this.setState({ + verify: { + ...verify, + columns: [] + } + }) + }, + onCancel() {} + }) + } + render() { const { card } = this.props const { verify, excelColumns, defaultscript } = this.state @@ -426,6 +447,9 @@ <Button className="excel-col-add mk-green" title="娣诲姞鏄剧ず鍒楀瓧娈�" onClick={this.columnFieldInput}> 鍚屾鏄剧ず鍒� </Button> + <Button className="excel-col-add mk-red" title="娓呯┖Excel鍒�" onClick={this.clearField}> + 娓呯┖Excel鍒� + </Button> <Table bordered rowKey="uuid" -- Gitblit v1.8.0