|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react';
|
2
|
|
-import { Form, Icon, Input, Button, DatePicker, Select, Card, Row, Col, Pagination, Alert, Radio, Tag, Tooltip, Tabs } from 'antd';
|
|
2
|
+import { Form, Icon, Input, Button, DatePicker, Select, Card, Row, Col, Pagination, Alert, Radio, Tag, Tooltip, Tabs, InputNumber } from 'antd';
|
3
|
3
|
import moment from 'moment';
|
4
|
4
|
import request from '../../../../../utils/request';
|
5
|
5
|
import apis from '../../../../../services/apis';
|
|
@@ -24,12 +24,6 @@ const formItemLayout = {
|
24
|
24
|
};
|
25
|
25
|
|
26
|
26
|
function AddBuilding(props) {
|
27
|
|
- // eslint-disable-next-line react-hooks/rules-of-hooks
|
28
|
|
- const [dataSource, setDataSource] = useState({ records: [] })
|
29
|
|
-
|
30
|
|
- const [buildingAreaTags, setBuildingAreaTags] = useState({ tags: ['Unremovable', 'Tag 2', 'Tag 3'], inputVisible: false, inputValue: '' })
|
31
|
|
-
|
32
|
|
-
|
33
|
27
|
const { getFieldDecorator } = props.form;
|
34
|
28
|
|
35
|
29
|
function handleSubmit(e) {
|
|
@@ -80,7 +74,7 @@ function AddBuilding(props) {
|
80
|
74
|
<Form.Item label="标签" hasFeedback>
|
81
|
75
|
{getFieldDecorator('tags')(
|
82
|
76
|
<Select mode="multiple" placeholder="标签" style={{ width: '1016px' }}>
|
83
|
|
- <Option value="未知">未知</Option>
|
|
77
|
+ <Option value="未知">未知</Option>
|
84
|
78
|
</Select>,
|
85
|
79
|
)}
|
86
|
80
|
</Form.Item>
|
|
@@ -172,7 +166,7 @@ function AddBuilding(props) {
|
172
|
166
|
{getFieldDecorator('parkingRate')(<Input />)}
|
173
|
167
|
</Form.Item>
|
174
|
168
|
<Form.Item label="规划户数" hasFeedback>
|
175
|
|
- {getFieldDecorator('familyNum')(<Input />)}
|
|
169
|
+ {getFieldDecorator('familyNum')(<InputNumber />)}
|
176
|
170
|
</Form.Item>
|
177
|
171
|
<Form.Item label="物业公司" hasFeedback>
|
178
|
172
|
{getFieldDecorator('serviceCompany')(<Input />)}
|
|
@@ -187,7 +181,7 @@ function AddBuilding(props) {
|
187
|
181
|
{getFieldDecorator('receivedDate')(<DatePicker />)}
|
188
|
182
|
</Form.Item>
|
189
|
183
|
<Form.Item label="产权年限" hasFeedback>
|
190
|
|
- {getFieldDecorator('rightsYear')(<Input />)}
|
|
184
|
+ {getFieldDecorator('rightsYear')(<InputNumber />)}
|
191
|
185
|
</Form.Item>
|
192
|
186
|
<Form.Item label="预售许可证" hasFeedback>
|
193
|
187
|
{getFieldDecorator('decoration')(
|