From 4f6cdee3d3a9967b6955aacc354bf557430c0643 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期一, 05 八月 2024 17:05:16 +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