|
@@ -131,6 +131,7 @@
|
|
|
import { pptInterface } from '@/api/api.js';
|
|
|
import chooseCooperaUserDia from '@/views/report_manage/reportV2/components/chooseCooperaUserDia.vue';
|
|
|
import chooseInherReportDia from '@/views/report_manage/reportV2/components/chooseInherReportDia.vue';
|
|
|
+import { apiSmartReport } from '@/api/modules/smartReport'
|
|
|
export default {
|
|
|
name: "BaseInfo",
|
|
|
components: { chooseCooperaUserDia,chooseInherReportDia },
|
|
@@ -156,6 +157,8 @@ export default {
|
|
|
if (!n) return
|
|
|
|
|
|
this.getclassifylist();
|
|
|
+ this.getBackCoverList()
|
|
|
+ this.getBackGroundList()
|
|
|
|
|
|
if (this.reportInfo) {
|
|
|
this.formData = {
|
|
@@ -183,7 +186,13 @@ export default {
|
|
|
classify: 0,
|
|
|
title: "",
|
|
|
cooperationType: 1,//协作方式
|
|
|
- cooperationUsers: []
|
|
|
+ cooperationUsers: [],
|
|
|
+ FirstPage:{
|
|
|
+ CurrentBackgroundImg: "",
|
|
|
+ BackCoverImg: "",
|
|
|
+ CurrentBackgroundImgId: 0,
|
|
|
+ BackCoverImgId: 0,
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
classifyArr: [],
|
|
@@ -232,7 +241,13 @@ export default {
|
|
|
classify: 0,
|
|
|
title: "",
|
|
|
cooperationType: 1,//协作方式
|
|
|
- cooperationUsers: []
|
|
|
+ cooperationUsers: [],
|
|
|
+ FirstPage:{
|
|
|
+ CurrentBackgroundImg: "",
|
|
|
+ BackCoverImg: "",
|
|
|
+ CurrentBackgroundImgId: 0,
|
|
|
+ BackCoverImgId: 0,
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
this.$emit("update:show", false);
|
|
@@ -247,7 +262,8 @@ export default {
|
|
|
Title: this.formData.title,
|
|
|
CollaborateType: this.formData.cooperationType,
|
|
|
InheritPptId: this.formData.inheritId,
|
|
|
- CollaborateUserIds: this.formData.cooperationUsers.map(_ => _.NodeId)
|
|
|
+ CollaborateUserIds: this.formData.cooperationUsers.map(_ => _.NodeId),
|
|
|
+ FirstPage:this.formData.FirstPage
|
|
|
};
|
|
|
|
|
|
// 编辑
|
|
@@ -374,6 +390,37 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ // 获取封底列表
|
|
|
+ getBackCoverList(){
|
|
|
+ apiSmartReport.pptMaterialList({
|
|
|
+ CurrentIndex: 1,
|
|
|
+ PageSize: 1000,
|
|
|
+ ImageType: 3,
|
|
|
+ ImageName: '',
|
|
|
+ ConfType: 1
|
|
|
+ }).then(res => {
|
|
|
+ if(res.Data.List){
|
|
|
+ this.formData.FirstPage.BackCoverImg=res.Data.List[0].Url
|
|
|
+ this.formData.FirstPage.BackCoverImgId=res.Data.List[0].ImageConfId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取背景列表
|
|
|
+ getBackGroundList(){
|
|
|
+ apiSmartReport.pptMaterialList({
|
|
|
+ CurrentIndex: 1,
|
|
|
+ PageSize: 1000,
|
|
|
+ ImageType: 2,
|
|
|
+ ImageName: '',
|
|
|
+ ConfType: 1
|
|
|
+ }).then(res => {
|
|
|
+ if(res.Data.List){
|
|
|
+ this.formData.FirstPage.CurrentBackgroundImg=res.Data.List[0].Url
|
|
|
+ this.formData.FirstPage.CurrentBackgroundImgId=res.Data.List[0].ImageConfId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
filterNodes(arr) {
|
|
|
arr.length && arr.forEach(item => {
|
|
|
if(item.Child && item.Child.length) {
|