king
2022-10-17 e8edfdadb561cd83bf6e1c3e00d55b8cc2aee6d5
src/menu/datasource/verifycard/columnform/index.jsx
@@ -6,7 +6,6 @@
class UniqueForm extends Component {
  static propTpyes = {
    dict: PropTypes.object,       // 字典项
    columnChange: PropTypes.func  // 修改函数
  }
@@ -27,7 +26,6 @@
  }
  render() {
    const { dict } = this.props
    const { getFieldDecorator } = this.props.form
    const formItemLayout = {
      labelCol: {
@@ -44,26 +42,26 @@
      <Form {...formItemLayout} className="verify-form" id="verifycard1">
        <Row gutter={24}>
          <Col span={6}>
            <Form.Item label={'名称'}>
            <Form.Item label="名称">
              {getFieldDecorator('label', {
                initialValue: '',
                rules: [
                  {
                    required: true,
                    message: dict['form.required.input'] + '名称!'
                    message: '请输入名称!'
                  }
                ]
              })(<Input placeholder="" autoComplete="off" onPressEnter={this.handleConfirm}/>)}
            </Form.Item>
          </Col>
          <Col span={6}>
            <Form.Item label={'字段'}>
            <Form.Item label="字段">
              {getFieldDecorator('field', {
                initialValue: '',
                rules: [
                  {
                    required: true,
                    message: dict['form.required.input'] + '字段!'
                    message: '请输入字段!'
                  },
                  {
                    pattern: /^[\u4E00-\u9FA50-9a-zA-Z_]*$/ig,
@@ -74,13 +72,13 @@
            </Form.Item>
          </Col>
          <Col span={6}>
            <Form.Item label={'数据类型'}>
            <Form.Item label="数据类型">
              {getFieldDecorator('datatype', {
                initialValue: '',
                rules: [
                  {
                    required: true,
                    message: dict['form.required.select'] + '数据类型!'
                    message: '请选择数据类型!'
                  }
                ]
              })(
@@ -122,7 +120,7 @@
          </Col>
          <Col span={3} className="add">
            <Button onClick={this.handleConfirm} type="primary" className="mk-green">
              {dict['model.add']}
              添加
            </Button>
          </Col>
        </Row>