Commit c0022c11 authored by zhengke's avatar zhengke

删除 TemplateList TemplateDataSource

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