|
@@ -540,13 +540,14 @@ export default {
|
|
|
await this.getpptDataById(id)
|
|
|
const {status} = this.result
|
|
|
if(status===200){
|
|
|
- const {content,FirstPage,ReportId} = this.result
|
|
|
+ const {content,FirstPage,ReportId,TitleSetting} = this.result
|
|
|
this.pageList = content
|
|
|
this.firstPage = FirstPage
|
|
|
this.firstPage.BackIndex = FirstPage.TemplateType-1
|
|
|
this.currentItem = this.pageList[0]
|
|
|
this.ReportId=ReportId
|
|
|
this.CoverContent = this.result.CoverContent
|
|
|
+ this.titleSetting = TitleSetting||null
|
|
|
/* //开启自动保存
|
|
|
this.autoSave() */
|
|
|
}else{
|
|
@@ -583,6 +584,7 @@ export default {
|
|
|
modelId: modelId,
|
|
|
title:'',
|
|
|
elements: [],
|
|
|
+ titleDetail:this.titleSetting?this.titleSetting:null
|
|
|
}
|
|
|
this.pageList.splice(index,0,page)
|
|
|
this.changeCurrentItem(page)
|
|
@@ -1095,7 +1097,8 @@ export default {
|
|
|
FirstPage:FirstPage,
|
|
|
Content:Content,
|
|
|
GroupId:this.catalogId,
|
|
|
- CoverContent:this.CoverContent
|
|
|
+ CoverContent:this.CoverContent,
|
|
|
+ TitleSetting:JSON.stringify(this.titleSetting)
|
|
|
}).then(res=>{
|
|
|
this.isSaved = false
|
|
|
if(res.Ret===200){
|
|
@@ -1114,7 +1117,8 @@ export default {
|
|
|
PptId:parseInt(ppt_id),
|
|
|
FirstPage:FirstPage,
|
|
|
Content:Content,
|
|
|
- CoverContent:this.CoverContent
|
|
|
+ CoverContent:this.CoverContent,
|
|
|
+ TitleSetting:JSON.stringify(this.titleSetting)
|
|
|
}).then(res=>{
|
|
|
this.isSaved = false
|
|
|
if(res.Ret===200){
|
|
@@ -1146,11 +1150,13 @@ export default {
|
|
|
return i
|
|
|
})
|
|
|
let Content = JSON.stringify(pageList)
|
|
|
+ let TitleSetting = JSON.stringify(this.titleSetting)
|
|
|
pptEnInterface.saveLog({
|
|
|
PptId:parseInt(ppt_id),
|
|
|
FirstPage:FirstPage,
|
|
|
Content:Content,
|
|
|
- CoverContent:this.CoverContent
|
|
|
+ CoverContent:this.CoverContent,
|
|
|
+ TitleSetting,
|
|
|
}).then((res)=>{
|
|
|
if(res.Ret!==200) return
|
|
|
this.showLastSaveTime = true
|