diff --git a/src/views/compilation/handbook/index.vue b/src/views/compilation/handbook/index.vue
index 3234361..f777e0b 100644
--- a/src/views/compilation/handbook/index.vue
+++ b/src/views/compilation/handbook/index.vue
@@ -181,7 +181,7 @@
-
+
+
@@ -430,7 +478,8 @@ export default {
activeStep: 1,
coverForm: {
title: "",
- subtitle: "",
+ subtitle1: "",
+ subtitle2: "",
imageUrl: "",
},
// 项目选择相关
@@ -445,7 +494,11 @@ export default {
// 封尾设计
endForm: {
imageUrl: "",
- subtitle: "",
+ dwname: "",
+ name: "",
+ phone: "",
+ lxname: "",
+ address: "",
},
// 导出相关
selectedRows: [],
@@ -577,13 +630,18 @@ export default {
resetAddForm() {
this.coverForm = {
title: "",
- subtitle: "",
+ subtitle1: "",
+ subtitle2: "",
imageUrl: "",
};
this.projectSearch = "";
this.endForm = {
imageUrl: "",
- subtitle: "",
+ dwname: "",
+ date: "",
+ phone: "",
+ lxname: "",
+ address: "",
};
},
nextStep() {
@@ -694,9 +752,14 @@ export default {
if (this.coverForm.imageUrl) data.coverImg = this.coverForm.imageUrl;
if (this.coverForm.title) data.name = this.coverForm.title;
- if (this.coverForm.subtitle) data.subtitle = this.coverForm.subtitle;
+ if (this.coverForm.subtitle1) data.subtitle1 = this.coverForm.subtitle1;
+ if (this.coverForm.subtitle2) data.subtitle2 = this.coverForm.subtitle2;
if (this.endForm.imageUrl) data.tailingImg = this.endForm.imageUrl;
- if (this.endForm.subtitle) data.tail = this.endForm.subtitle;
+ if (this.endForm.dwname) data.dwname = this.endForm.dwname;
+ if (this.endForm.date) data.date = this.endForm.date;
+ if (this.endForm.phone) data.phone = this.endForm.phone;
+ if (this.endForm.lxname) data.lxname = this.endForm.lxname;
+ if (this.endForm.address) data.address = this.endForm.address;
if (this.selectedProjects && this.selectedProjects.length > 0) {
data.xmId = this.selectedProjects
.map((project) => project.id)
@@ -795,12 +858,17 @@ export default {
const detail = res.data;
this.coverForm = {
title: detail.name,
- subtitle: detail.subtitle,
+ subtitle1: detail.subtitle1,
+ subtitle2: detail.subtitle2,
imageUrl: detail.coverImg,
};
this.endForm = {
- imageUrl: detail.tailingImg,
- subtitle: detail.tail,
+ imageUrl: detail.tailingImg || "",
+ dwname: detail.dwname || "",
+ lxname: detail.lxname || "",
+ phone: detail.phone || "",
+ address: detail.address || "",
+ date: detail.date || "",
};
// 先清空选中状态