yfy
项洋 1 week ago
parent cefeca4a36
commit 938f00d207

@ -581,12 +581,6 @@ export default {
}; };
}, },
nextStep() { nextStep() {
if (this.activeStep === 1) {
if (!this.coverForm.title) {
this.$message.warning("请输入手册名称");
return;
}
}
this.activeStep++; this.activeStep++;
}, },
prevStep() { prevStep() {
@ -686,14 +680,17 @@ export default {
this.$message.warning("请至少选择一个项目"); this.$message.warning("请至少选择一个项目");
return; return;
} }
const data = { const data = {};
coverImg: this.coverForm.imageUrl,
name: this.coverForm.title, if (this.coverForm.imageUrl) data.coverImg = this.coverForm.imageUrl;
subtitle: this.coverForm.subtitle, if (this.coverForm.title) data.name = this.coverForm.title;
tailingImg: this.endForm.imageUrl, if (this.coverForm.subtitle) data.subtitle = this.coverForm.subtitle;
tail: this.endForm.subtitle, if (this.endForm.imageUrl) data.tailingImg = this.endForm.imageUrl;
xmId: this.selectedProjects.map((project) => project.id).join(","), 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) { if (this.editingHandbook) {
data.id = this.editingHandbook.id; data.id = this.editingHandbook.id;
updateHandbook(data) updateHandbook(data)
@ -1179,6 +1176,9 @@ export default {
border: 1px solid #1890ff; border: 1px solid #1890ff;
padding: 15px 15px 10px 15px; padding: 15px 15px 10px 15px;
border-radius: 4px; border-radius: 4px;
max-height: 300px;
display: flex;
flex-direction: column;
} }
.selected-header { .selected-header {
@ -1192,6 +1192,29 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 12px; 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 { .selected-item {

@ -113,7 +113,7 @@
type="text" type="text"
@click="handleEdit(scope.row)" @click="handleEdit(scope.row)"
style="color: #67c23a" style="color: #67c23a"
>修改</el-button >编辑</el-button
> >
<el-button <el-button
type="text" type="text"
@ -244,6 +244,12 @@ export default {
components: { components: {
Pagination: () => import("@/components/Pagination"), Pagination: () => import("@/components/Pagination"),
}, },
props: {
projectId: {
type: String,
default: "",
},
},
data() { data() {
return { return {
searchForm: { searchForm: {
@ -504,6 +510,7 @@ export default {
alertTime: this.ruleForm.alertTime, alertTime: this.ruleForm.alertTime,
alertContent: this.ruleForm.alertContent, alertContent: this.ruleForm.alertContent,
alertType: 1, alertType: 1,
projectId: this.xmId,
}; };
addSmartReminder(param).then((res) => { addSmartReminder(param).then((res) => {
if (res.code === 200) { if (res.code === 200) {

@ -94,7 +94,7 @@
<!-- 消息提醒 --> <!-- 消息提醒 -->
<div class="message-notice"> <div class="message-notice">
<el-tooltip class="item" effect="dark" content="新增智能提醒" placement="top-start"> <el-tooltip class="item" effect="dark" content="新增智能提醒" placement="top-start">
<Supericon /> <Supericon :xmId="projectId" />
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>

Loading…
Cancel
Save