Commit fcdd707b authored by 黄奎's avatar 黄奎

页面修改

parent 8ba47927
...@@ -140,6 +140,13 @@ class ConfigService{ ...@@ -140,6 +140,13 @@ class ConfigService{
return Api.Post("triptemplate_GetTripConfig",params) return Api.Post("triptemplate_GetTripConfig",params)
} }
/**
* 根据团期配置编号获取行程详情
*/
static async GetTripOtherByConfigId(params : any):Promise<HttpResponse>{
return Api.Post("triptemplate_GetTripOtherByConfigId",params)
}
/** /**
* 新增修改模版数据 * 新增修改模版数据
*/ */
......
...@@ -58,7 +58,7 @@ const initOpModify = async ()=>{ ...@@ -58,7 +58,7 @@ const initOpModify = async ()=>{
const TempType = parseInt(params.tempType.toString()) const TempType = parseInt(params.tempType.toString())
try { try {
const queryMsg = {ConfigId} const queryMsg = {ConfigId}
const response = await ConfigService.triptemplateGetTripConfig(queryMsg); const response = await ConfigService.GetTripOtherByConfigId(queryMsg);
if (response.data.resultCode==ApiResult.SUCCESS && response.data.data) { if (response.data.resultCode==ApiResult.SUCCESS && response.data.data) {
let data = response.data.data let data = response.data.data
if(data.TempId>0){ if(data.TempId>0){
......
...@@ -539,8 +539,11 @@ const SetTripTemplateConfig = async () => { ...@@ -539,8 +539,11 @@ const SetTripTemplateConfig = async () => {
ConfigId: ConfigId.value, ConfigId: ConfigId.value,
TempId: queryObj.value.TempId, TempId: queryObj.value.TempId,
TempData: queryObj.value.TempData, TempData: queryObj.value.TempData,
Title:queryObj.value.Title,
} }
let TemplateRes = await ConfigService.SetTripConfig(queryMsg); // ConfigService.SetTripConfig(queryMsg)
//sellSetTemplate
let TemplateRes = await ConfigService.sellSetTemplate(queryMsg);
if (TemplateRes.data.resultCode == 1) { if (TemplateRes.data.resultCode == 1) {
if(!ConfigId.value){ if(!ConfigId.value){
ConfigIdStore.value = TemplateRes.data.data.ConfigId ConfigIdStore.value = TemplateRes.data.data.ConfigId
......
...@@ -21,7 +21,7 @@ const initOpModify = async ()=>{ ...@@ -21,7 +21,7 @@ const initOpModify = async ()=>{
const ConfigId = parseInt(params.configId.toString()) const ConfigId = parseInt(params.configId.toString())
try { try {
const queryMsg = {ConfigId} const queryMsg = {ConfigId}
const response = await ConfigService.triptemplateGetTripConfig(queryMsg); const response = await ConfigService.GetTripOtherByConfigId(queryMsg);
if (response.data.resultCode==ApiResult.SUCCESS && response.data.data) { if (response.data.resultCode==ApiResult.SUCCESS && response.data.data) {
let data = response.data.data let data = response.data.data
if(data.TempId>0){ if(data.TempId>0){
......
...@@ -182,7 +182,7 @@ queryObj.value = inject(injectKeyDataSource).queryObj ...@@ -182,7 +182,7 @@ queryObj.value = inject(injectKeyDataSource).queryObj
let queryMsg = { let queryMsg = {
ConfigId: ConfigId.value ConfigId: ConfigId.value
} }
let datasRes = await ConfigService.triptemplateGetTripConfig(queryMsg); let datasRes = await ConfigService.GetTripOtherByConfigId(queryMsg);
if (datasRes.data.resultCode == 1 && datasRes.data.data && datasRes.data.data.TempId) { if (datasRes.data.resultCode == 1 && datasRes.data.data && datasRes.data.data.TempId) {
let dataObj = datasRes.data.data let dataObj = datasRes.data.data
let SlidesData = JSON.parse(dataObj.TempData) let SlidesData = JSON.parse(dataObj.TempData)
......
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