|
|
|
@ -581,12 +581,6 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
nextStep() {
|
|
|
|
|
if (this.activeStep === 1) {
|
|
|
|
|
if (!this.coverForm.title) {
|
|
|
|
|
this.$message.warning("请输入手册名称");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.activeStep++;
|
|
|
|
|
},
|
|
|
|
|
prevStep() {
|
|
|
|
@ -686,14 +680,17 @@ export default {
|
|
|
|
|
this.$message.warning("请至少选择一个项目");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const data = {
|
|
|
|
|
coverImg: this.coverForm.imageUrl,
|
|
|
|
|
name: this.coverForm.title,
|
|
|
|
|
subtitle: this.coverForm.subtitle,
|
|
|
|
|
tailingImg: this.endForm.imageUrl,
|
|
|
|
|
tail: this.endForm.subtitle,
|
|
|
|
|
xmId: this.selectedProjects.map((project) => project.id).join(","),
|
|
|
|
|
};
|
|
|
|
|
const data = {};
|
|
|
|
|
|
|
|
|
|
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.endForm.imageUrl) data.tailingImg = this.endForm.imageUrl;
|
|
|
|
|
if (this.endForm.subtitle) data.tail = this.endForm.subtitle;
|
|
|
|
|
if (this.selectedProjects && this.selectedProjects.length > 0) {
|
|
|
|
|
data.xmId = this.selectedProjects.map((project) => project.id).join(",");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.editingHandbook) {
|
|
|
|
|
data.id = this.editingHandbook.id;
|
|
|
|
|
updateHandbook(data)
|
|
|
|
@ -1179,6 +1176,9 @@ export default {
|
|
|
|
|
border: 1px solid #1890ff;
|
|
|
|
|
padding: 15px 15px 10px 15px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
max-height: 300px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.selected-header {
|
|
|
|
@ -1192,6 +1192,29 @@ export default {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
max-height: 200px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding-right: 10px;
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
|
|
/* 自定义滚动条样式 */
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
width: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
|
background: #f1f1f1;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
|
background: #c0c4cc;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
background: #909399;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.selected-item {
|
|
|
|
|