Commit ba118a1d authored by 罗超's avatar 罗超

Merge branch 'router' of http://gitlab.oytour.com/viitto/pptist into router

parents 4ad9d894 66680f8e
...@@ -459,12 +459,11 @@ const GetTripTemplate = async () =>{ ...@@ -459,12 +459,11 @@ const GetTripTemplate = async () =>{
} }
// 根据集团渲染logo // 根据集团渲染logo
if(userInfo.value&&userInfo.value.RB_Group_id<=1){ if(userInfo.value&&userInfo.value.RB_Group_id<=1){
return
for(let i=0;i<newSlides.length;i++){ for(let i=0;i<newSlides.length;i++){
let x = newSlides[i] let x = newSlides[i]
let index =null let index =null
x.elements.forEach((y,indexs)=>{ x.elements.forEach((y,indexs)=>{
if(y.layerName && y.layerName=='logo') index = indexs if(y.layerName && y.layerName.indexOf('logo')!=-1) index = indexs
}) })
let eles = x.elements.filter(y=>y.layerName && y.layerName.indexOf('logo')!=-1) let eles = x.elements.filter(y=>y.layerName && y.layerName.indexOf('logo')!=-1)
let newElements = await ResolveTripLogoHandler(eles,i) let newElements = await ResolveTripLogoHandler(eles,i)
...@@ -472,7 +471,6 @@ const GetTripTemplate = async () =>{ ...@@ -472,7 +471,6 @@ const GetTripTemplate = async () =>{
if(index>=0) x.elements.splice(index,1) if(index>=0) x.elements.splice(index,1)
} }
} }
layoutsStore.setLayouts(JSON.parse(JSON.stringify(newSlides))) layoutsStore.setLayouts(JSON.parse(JSON.stringify(newSlides)))
if(searchData.value.sellId&&!searchData.value.TempId) return if(searchData.value.sellId&&!searchData.value.TempId) return
slidesStore.setSlides(newSlides) slidesStore.setSlides(newSlides)
......
...@@ -79,9 +79,9 @@ const loadSliders = async ()=>{ ...@@ -79,9 +79,9 @@ const loadSliders = async ()=>{
let x = newSlides[i] let x = newSlides[i]
let index =null let index =null
x.elements.forEach((y,indexs)=>{ x.elements.forEach((y,indexs)=>{
if(y.layerName && y.layerName=='logo') index = indexs if(y.layerName && y.layerName.indexOf('logo')!=-1) index = indexs
}) })
let eles = x.elements.filter(y=>y.layerName && y.layerName=='logo') let eles = x.elements.filter(y=>y.layerName && y.layerName.indexOf('logo')!=-1)
let newElements = await ResolveTripLogoHandler(eles,i) let newElements = await ResolveTripLogoHandler(eles,i)
x.elements = x.elements.concat(newElements?.elements) x.elements = x.elements.concat(newElements?.elements)
if(index>=0) x.elements.splice(index,1) if(index>=0) x.elements.splice(index,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