Commit c0022c11 authored by zhengke's avatar zhengke

删除 TemplateList TemplateDataSource

parent 880e3577
...@@ -109,10 +109,10 @@ ...@@ -109,10 +109,10 @@
x.TemplateDataSource.Content = obj.Content x.TemplateDataSource.Content = obj.Content
x.TemplateDataSource.Name = obj.Name x.TemplateDataSource.Name = obj.Name
if(x.type=="text"){ // if(x.type=="text"){
x.FiledTypeStr = obj.Name // x.FiledTypeStr = obj.Name
x.content = x.content.replace(getHtmlPlainText(x.content),obj.Name) // x.content = x.content.replace(getHtmlPlainText(x.content),obj.Name)
} // }
} }
}) })
setNewDatas() setNewDatas()
......
...@@ -282,7 +282,11 @@ const SetTripTemplateConfig = async () => { ...@@ -282,7 +282,11 @@ const SetTripTemplateConfig = async () => {
} }
// 保存 // 保存
const setTemplate = async () =>{ const setTemplate = async () =>{
// console.log(ConfigId.value,'-------',FeatureImg.value) let arr = JSON.parse(JSON.stringify(slides.value))
arr.forEach(x=>{
delete x.TemplateList
delete x.TemplateDataSource
})
if(ConfigId.value&&FeatureImg.value.length>0){ if(ConfigId.value&&FeatureImg.value.length>0){
FeatureImg.value.forEach(item=>{ FeatureImg.value.forEach(item=>{
setTimeout(()=>{ setTimeout(()=>{
...@@ -337,7 +341,7 @@ const setTemplate = async () =>{ ...@@ -337,7 +341,7 @@ const setTemplate = async () =>{
// } // }
// } // }
} }
queryObj.value.TempData = JSON.stringify(slides.value) queryObj.value.TempData = JSON.stringify(arr)
datas.loading = true datas.loading = true
if(model.value&&userInfo.value.IsEditTripTemplate==1){ if(model.value&&userInfo.value.IsEditTripTemplate==1){
await SetTripTemplateSlide() await SetTripTemplateSlide()
......
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