|
@@ -196,12 +196,22 @@ class ModalImage extends React.Component {
|
196
|
196
|
</Form.Item>
|
197
|
197
|
<Form.Item label="面积" help="单位 ㎡">
|
198
|
198
|
{getFieldDecorator('buildingArea', {
|
199
|
|
- rules: [{ required: true, message: '请填写面积' }],
|
|
199
|
+ rules: [{ required: true, message: '请填写面积' },
|
|
200
|
+ {
|
|
201
|
+ pattern: new RegExp('^[0-9]*$'),
|
|
202
|
+ message: '只允许输入数字',
|
|
203
|
+ },
|
|
204
|
+ ],
|
200
|
205
|
})(<Input type="number" />)}
|
201
|
206
|
</Form.Item>
|
202
|
207
|
<Form.Item label="套内面积" help="单位 ㎡">
|
203
|
208
|
{getFieldDecorator('insideArea', {
|
204
|
|
- rules: [{ required: true, message: '请填写套内面积' }],
|
|
209
|
+ rules: [{ required: true, message: '请填写套内面积' },
|
|
210
|
+ {
|
|
211
|
+ pattern: new RegExp('^[0-9]*$'),
|
|
212
|
+ message: '只允许输入数字',
|
|
213
|
+ },
|
|
214
|
+ ],
|
205
|
215
|
})(<Input type="number" />)}
|
206
|
216
|
</Form.Item>
|
207
|
217
|
<Form.Item style={{ width: '400px', margin: 'auto', display: 'flex', justifyContent: 'space-between' }}>
|