Commit eafb1e8b authored by zhengke's avatar zhengke

行程保存成功,通知erp

parent 7bc80462
......@@ -7,6 +7,8 @@ export const domainManager = () => {
UploadUrl: locationName.indexOf('oytour') !== -1 ? "http://upload.oytour.com" : "http://192.168.10.214:8120",
//文件站点
ViittoFileUrl: locationName.indexOf('oytour') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.10.214:8130',
// 通知erp
notificationUrl: locationName.indexOf('oytour') !== -1 ? "http://reborn.oytour.com" : "http://localhost:8081",
}
return obj
}
\ No newline at end of file
......@@ -241,7 +241,6 @@ const SetTripTemplateSlide = async () => {
type: 'warning',
})
}
} catch (error) {}
datas.loading = false
}
......@@ -314,13 +313,7 @@ const SetTripTemplateConfig = async () => {
message: '操作成功',
type: 'success',
})
// window.parent.postMessage({
// cmd: 'returnHeight',
// params: {
// success: true,
// data: '行程数据保存成功'
// }
// }, '*');
window.parent.postMessage('行程数据保存成功', `${domainManager().notificationUrl}`);
dataLoadingStore.setDataLoading(2)
}else{
ElMessage({
......@@ -329,13 +322,9 @@ const SetTripTemplateConfig = async () => {
type: 'warning',
})
}
FeatureImgStore.setFeatureImg([])
datas.loading = false
} catch (error) {
FeatureImgStore.setFeatureImg([])
datas.loading = false
}
} catch (error) {}
FeatureImgStore.setFeatureImg([])
datas.loading = false
}
// 保存
......
......@@ -191,7 +191,6 @@ const GetTripFiledData = async () =>{
value=value[oo]
}
}else{
console.log(value[oo],'-----',oo)
value = null
}
})
......@@ -202,7 +201,7 @@ const GetTripFiledData = async () =>{
//替换
if(y.type=='image'){
y.src = value[0]
}
}
}
}
})
......@@ -216,7 +215,7 @@ const GetTripFiledData = async () =>{
// 获取行程模版数据
const GetTripTemplate = async () =>{
console.log('模版数据------',searchData.value.TempId,TempId.value)
console.log('模版数据------')
if(!searchData.value.TempId&&!TempId.value) {
let list = [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment