king
2020-02-25 0c86e5e2eaf907dfcb63aea13e6efac3ccc52cce
src/templates/tableshare/verifycardexcelin/columnform/index.jsx
@@ -7,7 +7,7 @@
class UniqueForm extends Component {
  static propTpyes = {
    dict: PropTypes.object,         // 字典项
    range: PropTypes.any,           // 字典项
    columns: PropTypes.array,       // 列名集合
    columnChange: PropTypes.func    // 修改函数
  }
@@ -68,6 +68,7 @@
  handleConfirm = () => {
    // const { columns } = this.props
    // 表单提交时检查输入值是否正确
    this.props.form.validateFieldsAndScroll((err, values) => {
      if (!err) {
@@ -81,10 +82,21 @@
          values.limit = ''
        }
        // let _col = columns.filter(col => col.uuid !== values.uuid && col.Column === values.Column)
        // if (_col.length > 0) {
        //   notification.warning({
        //     top: 92,
        //     message: 'Excel列字段名,不可重复!',
        //     duration: 10
        //   })
        //   return
        // }
        this.props.columnChange(values)
        this.setState({
          editItem: null,
          locked: false
          locked: false,
          type: 'Nvarchar(50)'
        })
        this.props.form.setFieldsValue({
          Column: '',