|
@@ -114,7 +114,15 @@ function AddBuilding(props) {
|
114
|
114
|
{getFieldDecorator('openingDate')(<DatePicker format="YYYY/MM/DD" />)}
|
115
|
115
|
</Form.Item>
|
116
|
116
|
<Form.Item label="电话" hasFeedback>
|
117
|
|
- {getFieldDecorator('tel')(<Input />)}
|
|
117
|
+ {getFieldDecorator('tel',{
|
|
118
|
+ initialValue:'',
|
|
119
|
+ rules:[
|
|
120
|
+ {
|
|
121
|
+ pattern:new RegExp('^1[0-9]{10}$'),
|
|
122
|
+ message:'请输入正确的电话号码'
|
|
123
|
+ }
|
|
124
|
+ ]
|
|
125
|
+ })(<Input />)}
|
118
|
126
|
</Form.Item>
|
119
|
127
|
<Form.Item label="项目动态" hasFeedback>
|
120
|
128
|
{getFieldDecorator('dynamic')(<Input />)}
|