|
@@ -26,7 +26,7 @@ const fullWidth= { width: '100%' }
|
26
|
26
|
const Item = Form.Item
|
27
|
27
|
|
28
|
28
|
const BuildingBasic = React.forwardRef((props, ref) => {
|
29
|
|
- const { form, history, setMarketingCode, user } = props;
|
|
29
|
+ const { form, history, setMarketingCode,institutionIdChange, user } = props;
|
30
|
30
|
const { getFieldDecorator, getFieldValue, setFieldsValue } = form;
|
31
|
31
|
const { query } = history.location;
|
32
|
32
|
const { id } = query;
|
|
@@ -55,6 +55,7 @@ const BuildingBasic = React.forwardRef((props, ref) => {
|
55
|
55
|
initForm(form, res)
|
56
|
56
|
setMarketingCode(res.marketingCode)
|
57
|
57
|
setCityId(res.cityId)
|
|
58
|
+ institutionIdChange(res.institutionId)
|
58
|
59
|
})
|
59
|
60
|
|
60
|
61
|
// 视频文件上传前 回调
|
|
@@ -130,7 +131,7 @@ const BuildingBasic = React.forwardRef((props, ref) => {
|
130
|
131
|
}).then((res) => {
|
131
|
132
|
updateFormLoading(false)
|
132
|
133
|
notification.success({ message: '保存项目基础信息成功' })
|
133
|
|
-
|
|
134
|
+ institutionIdChange(res.institutionId)
|
134
|
135
|
if (!id) {
|
135
|
136
|
router.replace(`/building/add?id=${res.buildingId}`)
|
136
|
137
|
}
|
|
@@ -138,6 +139,7 @@ const BuildingBasic = React.forwardRef((props, ref) => {
|
138
|
139
|
console.error(err)
|
139
|
140
|
updateFormLoading(false)
|
140
|
141
|
notification.error({ message: err.message || err })
|
|
142
|
+ institutionIdChange(res.institutionId)
|
141
|
143
|
})
|
142
|
144
|
}
|
143
|
145
|
});
|