Commit 3b0e0911 authored by zhengke's avatar zhengke

修复 生成封面图 dom

parent 1e957fed
......@@ -13,7 +13,6 @@ export default () => {
const setNewDatasList = (DataSource:any) => {
sourceLoadingStore.setSourceLoading(false)
const slidesData = slides.value
const cursors = [] as Array<any>
// 更新Slides数据
let savelides = [] as any
let newSlides = [] as any
......
......@@ -296,7 +296,6 @@ const GetTripFiledData = async () =>{
// 获取行程模版数据
const GetTripTemplate = async () =>{
console.log('模版数据------')
if(!searchData.value.TempId&&!TempId.value) {
let list = [
{
......@@ -341,6 +340,7 @@ const GetTripTemplate = async () =>{
}
})
})
console.log(newSlides,'=======模版数据newSlides')
slidesStore.setSlides(newSlides)
layoutsStore.setLayouts(JSON.parse(JSON.stringify(newSlides)))
CoverImgStore.setCoverImg(dataRes.data.data.CoverImg)
......
......@@ -129,7 +129,7 @@
<!-- 生成封面图 -->
<div style="opacity: 0;position: fixed;left: 100px;top: 0;overflow: auto;z-index: -1;"
v-if="model&&model==1&&slides.length>0&&slideIndex>=0&&slides[slideIndex].id">
v-if="toolbarState=='elTemplateData'&&model&&model==1&&slides.length>0&&slideIndex>=0">
<div class="export-img-dialog">
<div class="thumbnails-view">
<div class="thumbnails FeatureImgRef" ref="FeatureImgRef">
......@@ -217,6 +217,7 @@
Content: item.TemplateDataSource&&item.TemplateDataSource.Content?item.TemplateDataSource.Content:'',
Name: item.TemplateDataSource&&item.TemplateDataSource.Name?item.TemplateDataSource.Name:'',
Id: item.TemplateDataSource&&item.TemplateDataSource.Id?item.TemplateDataSource.Id: null as Number,
index: item.TemplateDataSource&&item.TemplateDataSource.index>=0?item.TemplateDataSource.index:null as Number,
}
if(datas.DataSource.pageType!=1){
let index = item.TemplateDataSource&&item.TemplateDataSource.index>=0?item.TemplateDataSource.index:null as Number
......@@ -231,12 +232,6 @@
...item,
contentStr: contentStr,
TemplateList: TemplateList,
TemplateDataSource: {
Content: item.TemplateDataSource&&item.TemplateDataSource.Content?item.TemplateDataSource.Content:'',
Name: item.TemplateDataSource&&item.TemplateDataSource.Name?item.TemplateDataSource.Name:'',
Id: item.TemplateDataSource&&item.TemplateDataSource.Id?item.TemplateDataSource.Id:null as Number,
index: item.TemplateDataSource&&item.TemplateDataSource.index>=0?item.TemplateDataSource.index:null as Number,
}
}
if(Obj) datas.DataSource.DataSourceList.push(Obj)
}
......
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