From ff46cc24356b2cd2f23ab3cd7892e61b682d2b8c Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Mon, 11 May 2026 10:03:42 +0800
Subject: [PATCH] 主线提交
---
src/views/onlineEducation/courseManage/courseChapters/components/chapterDialog.vue | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/views/onlineEducation/courseManage/courseChapters/components/chapterDialog.vue b/src/views/onlineEducation/courseManage/courseChapters/components/chapterDialog.vue
index 3bc2552..ae5c0f5 100644
--- a/src/views/onlineEducation/courseManage/courseChapters/components/chapterDialog.vue
+++ b/src/views/onlineEducation/courseManage/courseChapters/components/chapterDialog.vue
@@ -5,6 +5,8 @@
:title="title"
width="550px"
:before-close="handleClose"
+ :close-on-press-escape="false"
+ :close-on-click-modal="false"
>
<el-form :model="state.form" size="default" ref="busRef" :rules="state.formRules" label-width="100px" >
<el-form-item label="章名称:" prop="name">
@@ -147,6 +149,7 @@
if(title.value === '新增'){
if(state.chapter.chapterId){
const {id, ...data} = JSON.parse(JSON.stringify(state.chapter))
+ data.sort = state.form.sort
const res = await addChapterPeriod(data)
if(res.code === 200){
ElMessage({
@@ -176,6 +179,7 @@
}else if(title.value === '编辑'){
if(state.chapter.chapterId){
const {...data} = JSON.parse(JSON.stringify(state.chapter))
+ data.sort = state.form.sort
const res = await editChapterPeriod(data)
if(res.code === 200){
ElMessage({
--
Gitblit v1.9.2