|
@@ -65,6 +65,7 @@ function AddBuilding(props) {
|
65
|
65
|
}
|
66
|
66
|
|
67
|
67
|
res.avatarImage = res.buildingImg.map(item => item.url)
|
|
68
|
+ res.mapCoordinate = res.coordinate
|
68
|
69
|
props.form.setFieldsValue(res)
|
69
|
70
|
})
|
70
|
71
|
}
|
|
@@ -219,7 +220,7 @@ function AddBuilding(props) {
|
219
|
220
|
})(<Input disabled />)}
|
220
|
221
|
</Form.Item>
|
221
|
222
|
<Form.Item label="地图位置" >
|
222
|
|
- {getFieldDecorator('coordinate')(<Amap />)}
|
|
223
|
+ {getFieldDecorator('mapCoordinate')(<Amap onChange={e => props.form.setFieldsValue({ coordinate: e })}/>)}
|
223
|
224
|
</Form.Item>
|
224
|
225
|
<Form.Item label="周边交通" >
|
225
|
226
|
{getFieldDecorator('buildingTransport')(
|