|
@@ -429,7 +429,8 @@ export default {
|
|
|
|
|
|
this.selectChapterId = selectChapterId;
|
|
|
this.editChapterId = editChapterId;
|
|
|
-
|
|
|
+ this.showRight = false;
|
|
|
+
|
|
|
this.getChapterDetail()
|
|
|
},
|
|
|
|
|
@@ -512,7 +513,11 @@ export default {
|
|
|
let newList = this.conList.map(_ => {
|
|
|
if(_.compId===4) {
|
|
|
let params = GetQueryString(_.content);
|
|
|
- let titleText = $(`.title_iframe${params.code}`)?$(`.title_iframe${params.code}`)[0].innerText:'';
|
|
|
+ let titleText = ($(`.title_iframe${params.code}`)
|
|
|
+ &&$(`.title_iframe${params.code}`)[0])
|
|
|
+ ?$(`.title_iframe${params.code}`)[0].innerText
|
|
|
+ :'';
|
|
|
+
|
|
|
return {
|
|
|
..._,
|
|
|
titleText
|
|
@@ -1122,17 +1127,21 @@ export default {
|
|
|
return new Promise((resolve,reject)=>{
|
|
|
const id=this.$route.query.id||0
|
|
|
if(!id) return
|
|
|
+
|
|
|
+ let imgParams = {
|
|
|
+ HeadImg: this.reportCoopType===1?this.headImg:this.$refs.chapterContRef.reportBase.HeadImg,
|
|
|
+ EndImg:this.reportCoopType===1?this.endImg:this.$refs.chapterContRef.reportBase.EndImg,
|
|
|
+ HeadResourceId:this.reportCoopType===1?this.headImgId:this.$refs.chapterContRef.reportBase.HeadResourceId,
|
|
|
+ EndResourceId:this.reportCoopType===1?this.endImgId:this.$refs.chapterContRef.reportBase.EndResourceId,
|
|
|
+ CanvasColor:this.reportCoopType===1?this.bgColor:this.$refs.chapterContRef.reportBase.CanvasColor
|
|
|
+ }
|
|
|
|
|
|
autosave({
|
|
|
ReportId: Number(this.$route.query.id),
|
|
|
Content:html,
|
|
|
ContentStruct:this.formatContentListElData(),
|
|
|
NoChange:this.contentChange?2:1,
|
|
|
- HeadImg:this.headImg,
|
|
|
- EndImg:this.endImg,
|
|
|
- HeadResourceId:this.headImgId,
|
|
|
- EndResourceId:this.endImgId,
|
|
|
- CanvasColor:this.bgColor
|
|
|
+ ...imgParams
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
resolve(true)
|