From 246f7b6fd81cf2ba620b8f9bf7cf24b61d7cf521 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期三, 17 七月 2024 16:38:54 +0800
Subject: [PATCH] bug修改

---
 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