Commit bfd05c87 authored by zhengke's avatar zhengke

保存模版时 删除TemplateList TemplateDataSource

parent c0022c11
...@@ -284,8 +284,10 @@ const SetTripTemplateConfig = async () => { ...@@ -284,8 +284,10 @@ const SetTripTemplateConfig = async () => {
const setTemplate = async () =>{ const setTemplate = async () =>{
let arr = JSON.parse(JSON.stringify(slides.value)) let arr = JSON.parse(JSON.stringify(slides.value))
arr.forEach(x=>{ arr.forEach(x=>{
delete x.TemplateList x.elements.forEach(y=>{
delete x.TemplateDataSource delete y.TemplateList
delete y.TemplateDataSource
})
}) })
if(ConfigId.value&&FeatureImg.value.length>0){ if(ConfigId.value&&FeatureImg.value.length>0){
FeatureImg.value.forEach(item=>{ FeatureImg.value.forEach(item=>{
...@@ -341,6 +343,7 @@ const setTemplate = async () =>{ ...@@ -341,6 +343,7 @@ const setTemplate = async () =>{
// } // }
// } // }
} }
queryObj.value.TempData = JSON.stringify(arr) 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){
......
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