king
2020-07-22 0c94290767a88c913ed736e65970eafee9e41519
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"