king
2022-10-17 e8edfdadb561cd83bf6e1c3e00d55b8cc2aee6d5
src/templates/zshare/verifycard/contrastform/index.jsx
@@ -5,7 +5,6 @@
class UniqueForm extends Component {
  static propTpyes = {
    dict: PropTypes.object,       // 字典项
    contrastChange: PropTypes.func  // 修改函数
  }
@@ -40,26 +39,26 @@
      <Form {...formItemLayout} className="verify-form" id="verifycard1">
        <Row gutter={24}>
          <Col span={7}>
            <Form.Item label={'内容1'}>
            <Form.Item label="内容1">
              {getFieldDecorator('frontfield', {
                initialValue: '',
                rules: [
                  {
                    required: true,
                    message: this.props.dict['form.required.input'] + '内容1!'
                    message: '请输入内容1!'
                  }
                ]
              })(<Input placeholder="" autoComplete="off" />)}
            </Form.Item>
          </Col>
          <Col span={7}>
            <Form.Item label={'运算符'}>
            <Form.Item label="运算符">
              {getFieldDecorator('operator', {
                initialValue: '=',
                rules: [
                  {
                    required: true,
                    message: this.props.dict['form.required.select'] + '运算符!'
                    message: '请选择运算符!'
                  }
                ]
              })(
@@ -77,13 +76,13 @@
            </Form.Item>
          </Col>
          <Col span={7}>
            <Form.Item label={'内容2'}>
            <Form.Item label="内容2">
              {getFieldDecorator('backfield', {
                initialValue: '',
                rules: [
                  {
                    required: true,
                    message: this.props.dict['form.required.input'] + '内容2!'
                    message: '请输入内容2!'
                  }
                ]
              })(<Input placeholder="" autoComplete="off" />)}
@@ -91,17 +90,17 @@
          </Col>
          <Col span={3} className="add">
            <Button onClick={this.handleConfirm} type="primary" className="mk-green">
              {this.props.dict['model.add']}
              添加
            </Button>
          </Col>
          <Col span={7}>
            <Form.Item label={'提示信息'}>
            <Form.Item label="提示信息">
              {getFieldDecorator('errmsg', {
                initialValue: '',
                rules: [
                  {
                    required: true,
                    message: this.props.dict['form.required.input'] + '提示信息!'
                    message: '请输入提示信息!'
                  },
                  {
                    pattern: /^[^']*$/ig,
@@ -118,7 +117,7 @@
                rules: [
                  {
                    required: true,
                    message: this.props.dict['form.required.select'] + '报错编码!'
                    message: '请选择报错编码!'
                  }
                ]
              })(