From 58a28e1faa15f638a136fefdcfcd0b3106c1fa16 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 24 六月 2020 10:18:54 +0800
Subject: [PATCH] 2020-06-24

---
 src/templates/sharecomponent/actioncomponent/verifyexcelin/columnform/index.jsx |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelin/columnform/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelin/columnform/index.jsx
index b1e6c8f..b53af34 100644
--- a/src/templates/sharecomponent/actioncomponent/verifyexcelin/columnform/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/verifyexcelin/columnform/index.jsx
@@ -1,6 +1,6 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { Form, Row, Col, Select, Button, Input, InputNumber } from 'antd'
+import { Form, Row, Col, Select, Button, Input, InputNumber, Radio } from 'antd'
 import './index.scss'
 
 
@@ -99,6 +99,7 @@
   }
 
   render() {
+    const { dict } = this.props
     const { getFieldDecorator } = this.props.form
     const formItemLayout = {
       labelCol: {
@@ -117,33 +118,33 @@
       <Form {...formItemLayout} className="verify-form">
         <Row gutter={24}>
           <Col span={7}>
-            <Form.Item label={'Column'}>
+            <Form.Item label={dict['model.form.field']}>
               {getFieldDecorator('Column', {
                 initialValue: '',
                 rules: [
                   {
                     required: true,
-                    message: this.props.dict['form.required.input'] + 'Column!'
+                    message: dict['form.required.input'] + dict['model.form.field'] + '!'
                   }
                 ]
               })(<Input placeholder="" autoComplete="off" />)}
             </Form.Item>
           </Col>
           <Col span={7}>
-            <Form.Item label={'Text'}>
+            <Form.Item label={dict['model.name']}>
               {getFieldDecorator('Text', {
                 initialValue: '',
                 rules: [
                   {
                     required: true,
-                    message: this.props.dict['form.required.input'] + 'Text!'
+                    message: this.props.dict['form.required.input'] + dict['model.name'] + '!'
                   }
                 ]
               })(<Input placeholder="" autoComplete="off" />)}
             </Form.Item>
           </Col>
           <Col span={7}>
-            <Form.Item label={'绫诲瀷'}>
+            <Form.Item label={dict['model.form.type']}>
               {getFieldDecorator('type', {
                 initialValue: 'Nvarchar(50)'
               })(
@@ -164,18 +165,18 @@
           </Col>
           <Col span={3} className="add">
             <Button onClick={this.handleConfirm} type="primary" className="mk-green">
-              淇濆瓨
+              {dict['model.save']}
             </Button>
           </Col>
           <Col span={7}>
-            <Form.Item label={'鏄惁蹇呭~'}>
+            <Form.Item label={dict['model.required']}>
               {getFieldDecorator('required', {
                 initialValue: 'true'
               })(
-                <Select disabled={this.state.locked}>
-                  <Select.Option value="false"> 鍚� </Select.Option>
-                  <Select.Option value="true"> 鏄� </Select.Option>
-                </Select>
+                <Radio.Group disabled={this.state.locked}>
+                  <Radio value="true">{dict['model.true']}</Radio>
+                  <Radio value="false">{dict['model.false']}</Radio>
+                </Radio.Group>
               )}
             </Form.Item>
           </Col>

--
Gitblit v1.8.0