魏熙美 5 years ago
parent
commit
fdd7941376
1 changed files with 4 additions and 10 deletions
  1. 4
    10
      src/pages/building/list/add/components/base.jsx

+ 4
- 10
src/pages/building/list/add/components/base.jsx View File

1
 import React, { useState, useEffect } from 'react';
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
 import moment from 'moment';
3
 import moment from 'moment';
4
 import request from '../../../../../utils/request';
4
 import request from '../../../../../utils/request';
5
 import apis from '../../../../../services/apis';
5
 import apis from '../../../../../services/apis';
24
 };
24
 };
25
 
25
 
26
 function AddBuilding(props) {
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
   const { getFieldDecorator } = props.form;
27
   const { getFieldDecorator } = props.form;
34
 
28
 
35
   function handleSubmit(e) {
29
   function handleSubmit(e) {
80
           <Form.Item label="标签" hasFeedback>
74
           <Form.Item label="标签" hasFeedback>
81
             {getFieldDecorator('tags')(
75
             {getFieldDecorator('tags')(
82
               <Select mode="multiple" placeholder="标签" style={{ width: '1016px' }}>
76
               <Select mode="multiple" placeholder="标签" style={{ width: '1016px' }}>
83
-              <Option value="未知">未知</Option>
77
+                <Option value="未知">未知</Option>
84
               </Select>,
78
               </Select>,
85
             )}
79
             )}
86
           </Form.Item>
80
           </Form.Item>
172
             {getFieldDecorator('parkingRate')(<Input />)}
166
             {getFieldDecorator('parkingRate')(<Input />)}
173
           </Form.Item>
167
           </Form.Item>
174
           <Form.Item label="规划户数" hasFeedback>
168
           <Form.Item label="规划户数" hasFeedback>
175
-            {getFieldDecorator('familyNum')(<Input />)}
169
+            {getFieldDecorator('familyNum')(<InputNumber />)}
176
           </Form.Item>
170
           </Form.Item>
177
           <Form.Item label="物业公司" hasFeedback>
171
           <Form.Item label="物业公司" hasFeedback>
178
             {getFieldDecorator('serviceCompany')(<Input />)}
172
             {getFieldDecorator('serviceCompany')(<Input />)}
187
             {getFieldDecorator('receivedDate')(<DatePicker />)}
181
             {getFieldDecorator('receivedDate')(<DatePicker />)}
188
           </Form.Item>
182
           </Form.Item>
189
           <Form.Item label="产权年限" hasFeedback>
183
           <Form.Item label="产权年限" hasFeedback>
190
-            {getFieldDecorator('rightsYear')(<Input />)}
184
+            {getFieldDecorator('rightsYear')(<InputNumber />)}
191
           </Form.Item>
185
           </Form.Item>
192
           <Form.Item label="预售许可证" hasFeedback>
186
           <Form.Item label="预售许可证" hasFeedback>
193
             {getFieldDecorator('decoration')(
187
             {getFieldDecorator('decoration')(