|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react';
|
2
|
|
-import { Form, Input, Button, Icon, Select, Tabs, Radio, DatePicker, message, Upload, Table } from 'antd';
|
|
2
|
+import { Form, Input, Button, Icon, Select, Tabs, Radio, DatePicker, message, Upload, Table, Modal } from 'antd';
|
3
|
3
|
import { FormattedMessage } from 'umi-plugin-react/locale';
|
4
|
4
|
import moment from 'moment';
|
5
|
5
|
import router from 'umi/router';
|
|
@@ -76,14 +76,21 @@ function batchSaveHouse() {
|
76
|
76
|
uploadData.append('buildingId', props.location.query.buildingId)
|
77
|
77
|
|
78
|
78
|
request({ ...apis.house.saveExcelValue, data: uploadData,headers: "content-type=multipart/form-data" }).then(res => {
|
79
|
|
- message.info('新增房源成功!请确认全部数据正常,然后在房源详情页 销售批次栏 选择 发布状态 为“是” 将房源 发布到小程序。如需要置业顾问或用户分享,请在房源详情中配套海报图和分享图。')
|
80
|
|
- router.push({
|
81
|
|
- pathname: '/house/edit',
|
82
|
|
- query: {
|
83
|
|
- id: props.location.query.salesBatchId,
|
84
|
|
- buildingId: props.location.query.buildingId,
|
|
79
|
+ Modal.info({
|
|
80
|
+ title: '新增房源成功',
|
|
81
|
+ content: '请确认全部数据正常,然后在房源详情页 销售批次栏 选择 发布状态 为“是” 将房源 发布到小程序。如需要置业顾问或用户分享,请在房源详情中配套海报图和分享图。',
|
|
82
|
+ okText: '确定',
|
|
83
|
+ onOk() {
|
|
84
|
+ router.push({
|
|
85
|
+ pathname: '/house/edit',
|
|
86
|
+ query: {
|
|
87
|
+ id: props.location.query.salesBatchId,
|
|
88
|
+ buildingId: props.location.query.buildingId,
|
|
89
|
+ },
|
|
90
|
+ });
|
85
|
91
|
},
|
86
|
92
|
});
|
|
93
|
+
|
87
|
94
|
}).catch(err => {
|
88
|
95
|
// openNotificationWithIcon('error', err.message)
|
89
|
96
|
})
|