|
@@ -115,7 +115,9 @@ function AddBuilding(props) {
|
115
|
115
|
{getFieldDecorator('name')(<Input />)}
|
116
|
116
|
</Form.Item> */}
|
117
|
117
|
<Form.Item label="项目类型">
|
118
|
|
- {getFieldDecorator('buildingProjectType')(<BudildingProjectType />)}
|
|
118
|
+ {getFieldDecorator('buildingProjectType', {
|
|
119
|
+ rules: [{ required: true, message: '请选择项目类型' }],
|
|
120
|
+ })(<BudildingProjectType />)}
|
119
|
121
|
</Form.Item>
|
120
|
122
|
<Form.Item label="均价" >
|
121
|
123
|
{getFieldDecorator('price')(<Input type="number" style={{ width: '210px' }}/>)}元/m²
|
|
@@ -146,7 +148,9 @@ function AddBuilding(props) {
|
146
|
148
|
)}
|
147
|
149
|
</Form.Item>
|
148
|
150
|
<Form.Item label="销售状态" >
|
149
|
|
- {getFieldDecorator('marketStatus')(
|
|
151
|
+ {getFieldDecorator('marketStatus', {
|
|
152
|
+ rules: [{ required: true, message: '请选择销售状态' }],
|
|
153
|
+ })(
|
150
|
154
|
<Select placeholder="销售状态" style={{ width: '1016px' }}>
|
151
|
155
|
<Option value="待定">待定</Option>
|
152
|
156
|
<Option value="在售">在售</Option>
|
|
@@ -162,7 +166,9 @@ function AddBuilding(props) {
|
162
|
166
|
)}
|
163
|
167
|
</Form.Item>
|
164
|
168
|
<Form.Item label="项目主图" help="建议图片尺寸:640px*360px">
|
165
|
|
- {getFieldDecorator('avatarImage')(
|
|
169
|
+ {getFieldDecorator('avatarImage', {
|
|
170
|
+ rules: [{ required: true, message: '请选择项目主图' }],
|
|
171
|
+ })(
|
166
|
172
|
<ImageListUpload />,
|
167
|
173
|
)}
|
168
|
174
|
</Form.Item>
|
|
@@ -198,13 +204,19 @@ function AddBuilding(props) {
|
198
|
204
|
)}
|
199
|
205
|
</Form.Item>
|
200
|
206
|
<Form.Item label="楼盘区域" >
|
201
|
|
- {getFieldDecorator('buildingArea')(<Input />)}
|
|
207
|
+ {getFieldDecorator('buildingArea', {
|
|
208
|
+ rules: [{ required: true, message: '请输入楼盘区域' }],
|
|
209
|
+ })(<Input />)}
|
202
|
210
|
</Form.Item>
|
203
|
211
|
<Form.Item label="项目地址" >
|
204
|
|
- {getFieldDecorator('address')(<Input />)}
|
|
212
|
+ {getFieldDecorator('address', {
|
|
213
|
+ rules: [{ required: true, message: '请输入项目地址' }],
|
|
214
|
+ })(<Input />)}
|
205
|
215
|
</Form.Item>
|
206
|
216
|
<Form.Item label="项目坐标" >
|
207
|
|
- {getFieldDecorator('coordinate')(<Input disabled />)}
|
|
217
|
+ {getFieldDecorator('coordinate', {
|
|
218
|
+ rules: [{ required: true, message: '请输入项目坐标' }],
|
|
219
|
+ })(<Input disabled />)}
|
208
|
220
|
</Form.Item>
|
209
|
221
|
<Form.Item label="地图位置" >
|
210
|
222
|
{getFieldDecorator('coordinate')(<Amap />)}
|