|
@@ -490,7 +490,7 @@ export default {
|
|
//保存修改的自定义封面页
|
|
//保存修改的自定义封面页
|
|
saveCover2(info){
|
|
saveCover2(info){
|
|
const {firstPage={},content=''} = info
|
|
const {firstPage={},content=''} = info
|
|
- //this.firstPage = firstPage //这段不变
|
|
|
|
|
|
+ this.firstPage = firstPage //这段不变
|
|
this.CoverContent = content
|
|
this.CoverContent = content
|
|
},
|
|
},
|
|
//在指定位置添加一个有版式的空白页
|
|
//在指定位置添加一个有版式的空白页
|
|
@@ -1016,7 +1016,8 @@ export default {
|
|
pptInterface.addppt({
|
|
pptInterface.addppt({
|
|
FirstPage:FirstPage,
|
|
FirstPage:FirstPage,
|
|
Content:Content,
|
|
Content:Content,
|
|
- GroupId:this.catalogId
|
|
|
|
|
|
+ GroupId:this.catalogId,
|
|
|
|
+ CoverContent:this.CoverContent
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
this.$message.success('新增成功')
|
|
this.$message.success('新增成功')
|
|
@@ -1035,7 +1036,8 @@ export default {
|
|
pptInterface.editppt({
|
|
pptInterface.editppt({
|
|
PptId:parseInt(ppt_id),
|
|
PptId:parseInt(ppt_id),
|
|
FirstPage:FirstPage,
|
|
FirstPage:FirstPage,
|
|
- Content:Content
|
|
|
|
|
|
+ Content:Content,
|
|
|
|
+ CoverContent:this.CoverContent
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
if(type==='save'){
|
|
if(type==='save'){
|
|
@@ -1073,7 +1075,8 @@ export default {
|
|
pptInterface.saveLog({
|
|
pptInterface.saveLog({
|
|
PptId:parseInt(ppt_id),
|
|
PptId:parseInt(ppt_id),
|
|
FirstPage:FirstPage,
|
|
FirstPage:FirstPage,
|
|
- Content:Content
|
|
|
|
|
|
+ Content:Content,
|
|
|
|
+ CoverContent:this.CoverContent
|
|
}).then((res)=>{})
|
|
}).then((res)=>{})
|
|
},10000)
|
|
},10000)
|
|
},
|
|
},
|
|
@@ -1081,9 +1084,9 @@ export default {
|
|
save_checkPPT(){
|
|
save_checkPPT(){
|
|
if(!this.firstPage.Title){
|
|
if(!this.firstPage.Title){
|
|
return {result:false,hintText:'请输入封面标题!'}
|
|
return {result:false,hintText:'请输入封面标题!'}
|
|
- }else if(!this.firstPage.ReportType){
|
|
|
|
|
|
+ }/* else if(!this.firstPage.ReportType){
|
|
return {result:false,hintText:'请输入ppt类型!'}
|
|
return {result:false,hintText:'请输入ppt类型!'}
|
|
- }
|
|
|
|
|
|
+ } */
|
|
if(this.pageList.length===0){
|
|
if(this.pageList.length===0){
|
|
return {result:false,hintText:'请至少添加一张PPT!'}
|
|
return {result:false,hintText:'请至少添加一张PPT!'}
|
|
}
|
|
}
|
|
@@ -1094,9 +1097,9 @@ export default {
|
|
//检验首页
|
|
//检验首页
|
|
if(!this.firstPage.Title){
|
|
if(!this.firstPage.Title){
|
|
return {result:false,hintText:'请输入封面标题!'}
|
|
return {result:false,hintText:'请输入封面标题!'}
|
|
- }else if(!this.firstPage.ReportType){
|
|
|
|
|
|
+ }/* else if(!this.firstPage.ReportType){
|
|
return {result:false,hintText:'请输入ppt类型!'}
|
|
return {result:false,hintText:'请输入ppt类型!'}
|
|
- }
|
|
|
|
|
|
+ } */
|
|
if(this.pageList.length===0){
|
|
if(this.pageList.length===0){
|
|
return {result:false,hintText:'请至少添加一张PPT!'}
|
|
return {result:false,hintText:'请至少添加一张PPT!'}
|
|
}
|
|
}
|