|
@@ -7,6 +7,7 @@ import request from '../../../../../utils/request';
|
7
|
7
|
import apis from '../../../../../services/apis';
|
8
|
8
|
import Styles from '../style.less';
|
9
|
9
|
import ImageUpload from '../../../../../components/XForm/ImageUpload'
|
|
10
|
+import NewImageUpload from '../../../../../components/uploadImage/ImageUpload';
|
10
|
11
|
import ImageListUpload from '../../../../../components/XForm/ImageListUpload'
|
11
|
12
|
import Wangedit from '../../../../../components/Wangedit/Wangedit'
|
12
|
13
|
import TagGroup from './tags'
|
|
@@ -202,11 +203,14 @@ function AddBuilding(props) {
|
202
|
203
|
data.buildingRestaurant = tagFilter(data.buildingRestaurant, 'Restaurant')
|
203
|
204
|
}
|
204
|
205
|
|
205
|
|
- if(typeof(data.highlights) != "undefined" && (typeof(data.highlightsCover) == "undefined" || data.highlightsCover == null)){
|
206
|
|
- openNotificationWithIcon('error', '请上传项目亮点封面')
|
207
|
|
- return;
|
|
206
|
+ // if(typeof(data.highlights) != "undefined" && (typeof(data.highlightsCover) == "undefined" || data.highlightsCover == null)){
|
|
207
|
+ // openNotificationWithIcon('error', '请上传项目亮点封面')
|
|
208
|
+ // return;
|
|
209
|
+ // }
|
|
210
|
+ console.log(data,"datadataddata")
|
|
211
|
+ if(typeof(data.highlights) == "undefined"){
|
|
212
|
+ data.highlights = null;
|
208
|
213
|
}
|
209
|
|
-
|
210
|
214
|
|
211
|
215
|
const api = data.buildingId === undefined ? apis.building.addBuilding : apis.building.updateBuilding
|
212
|
216
|
request({ ...api, data: { ...data } }).then(res => {
|
|
@@ -587,7 +591,7 @@ function AddBuilding(props) {
|
587
|
591
|
</Form.Item>*/}
|
588
|
592
|
<Form.Item label="亮点封面" help="建议尺寸:比例3:1 690*230px,用于项目详情-项目亮点封面图">
|
589
|
593
|
{getFieldDecorator('highlightsCover')(
|
590
|
|
- <ImageUpload />,
|
|
594
|
+ <NewImageUpload onChange={e => console.log(e,"66")}/>,
|
591
|
595
|
)}
|
592
|
596
|
</Form.Item>
|
593
|
597
|
<Form.Item label="亮点类型">
|