Commit eafb1e8b authored by zhengke's avatar zhengke

行程保存成功,通知erp

parent 7bc80462
...@@ -7,6 +7,8 @@ export const domainManager = () => { ...@@ -7,6 +7,8 @@ export const domainManager = () => {
UploadUrl: locationName.indexOf('oytour') !== -1 ? "http://upload.oytour.com" : "http://192.168.10.214:8120", 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', 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 return obj
} }
\ No newline at end of file
...@@ -241,7 +241,6 @@ const SetTripTemplateSlide = async () => { ...@@ -241,7 +241,6 @@ const SetTripTemplateSlide = async () => {
type: 'warning', type: 'warning',
}) })
} }
} catch (error) {} } catch (error) {}
datas.loading = false datas.loading = false
} }
...@@ -314,13 +313,7 @@ const SetTripTemplateConfig = async () => { ...@@ -314,13 +313,7 @@ const SetTripTemplateConfig = async () => {
message: '操作成功', message: '操作成功',
type: 'success', type: 'success',
}) })
// window.parent.postMessage({ window.parent.postMessage('行程数据保存成功', `${domainManager().notificationUrl}`);
// cmd: 'returnHeight',
// params: {
// success: true,
// data: '行程数据保存成功'
// }
// }, '*');
dataLoadingStore.setDataLoading(2) dataLoadingStore.setDataLoading(2)
}else{ }else{
ElMessage({ ElMessage({
...@@ -329,13 +322,9 @@ const SetTripTemplateConfig = async () => { ...@@ -329,13 +322,9 @@ const SetTripTemplateConfig = async () => {
type: 'warning', type: 'warning',
}) })
} }
FeatureImgStore.setFeatureImg([]) } catch (error) {}
datas.loading = false FeatureImgStore.setFeatureImg([])
} catch (error) { datas.loading = false
FeatureImgStore.setFeatureImg([])
datas.loading = false
}
} }
// 保存 // 保存
......
...@@ -191,7 +191,6 @@ const GetTripFiledData = async () =>{ ...@@ -191,7 +191,6 @@ const GetTripFiledData = async () =>{
value=value[oo] value=value[oo]
} }
}else{ }else{
console.log(value[oo],'-----',oo)
value = null value = null
} }
}) })
...@@ -202,7 +201,7 @@ const GetTripFiledData = async () =>{ ...@@ -202,7 +201,7 @@ const GetTripFiledData = async () =>{
//替换 //替换
if(y.type=='image'){ if(y.type=='image'){
y.src = value[0] y.src = value[0]
} }
} }
} }
}) })
...@@ -216,7 +215,7 @@ const GetTripFiledData = async () =>{ ...@@ -216,7 +215,7 @@ const GetTripFiledData = async () =>{
// 获取行程模版数据 // 获取行程模版数据
const GetTripTemplate = async () =>{ const GetTripTemplate = async () =>{
console.log('模版数据------',searchData.value.TempId,TempId.value) console.log('模版数据------')
if(!searchData.value.TempId&&!TempId.value) { if(!searchData.value.TempId&&!TempId.value) {
let list = [ 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