Commit fcdd707b authored by 黄奎's avatar 黄奎

页面修改

parent 8ba47927
......@@ -140,6 +140,13 @@ class ConfigService{
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 ()=>{
const TempType = parseInt(params.tempType.toString())
try {
const queryMsg = {ConfigId}
const response = await ConfigService.triptemplateGetTripConfig(queryMsg);
const response = await ConfigService.GetTripOtherByConfigId(queryMsg);
if (response.data.resultCode==ApiResult.SUCCESS && response.data.data) {
let data = response.data.data
if(data.TempId>0){
......
......@@ -539,8 +539,11 @@ const SetTripTemplateConfig = async () => {
ConfigId: ConfigId.value,
TempId: queryObj.value.TempId,
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(!ConfigId.value){
ConfigIdStore.value = TemplateRes.data.data.ConfigId
......
......@@ -21,7 +21,7 @@ const initOpModify = async ()=>{
const ConfigId = parseInt(params.configId.toString())
try {
const queryMsg = {ConfigId}
const response = await ConfigService.triptemplateGetTripConfig(queryMsg);
const response = await ConfigService.GetTripOtherByConfigId(queryMsg);
if (response.data.resultCode==ApiResult.SUCCESS && response.data.data) {
let data = response.data.data
if(data.TempId>0){
......
......@@ -182,7 +182,7 @@ queryObj.value = inject(injectKeyDataSource).queryObj
let queryMsg = {
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) {
let dataObj = datasRes.data.data
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