|
@@ -522,7 +522,11 @@ export default {
|
|
|
//防止自动保存时,有某一页处于更新图表的状态,其isUpdating为true
|
|
|
this.pageList.forEach(i=>{
|
|
|
i.isUpdating = false
|
|
|
- })
|
|
|
+ })
|
|
|
+ //如果有标题默认设置,应用这个设置
|
|
|
+ if(this.titleSetting){
|
|
|
+ this.settingAllPage()
|
|
|
+ }
|
|
|
this.dataLoading.close();
|
|
|
$('.ppt-item').css('background-image',`url(${this.pptBgImage})`);
|
|
|
//开启自动保存
|
|
@@ -534,13 +538,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{
|
|
@@ -1121,7 +1126,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){
|
|
@@ -1142,7 +1148,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){
|
|
@@ -1180,11 +1187,13 @@ export default {
|
|
|
return i
|
|
|
})
|
|
|
let Content = JSON.stringify(pageList)
|
|
|
+ let TitleSetting = JSON.stringify(this.titleSetting)
|
|
|
pptInterface.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
|