From 36a0aa9774298b533fa2611a284592cfd79c84d1 Mon Sep 17 00:00:00 2001 From: lijiaqi <1205620597@qq.com> Date: Wed, 24 Jul 2024 16:33:19 +0800 Subject: [PATCH] 111 --- src/views/course/basicCourseInformation.vue | 1 + src/views/course/courseChapters.vue | 13 - src/views/course/courseDetails.vue | 324 +++++++++++++++++--- 3 files changed, 287 insertions(+), 51 deletions(-) diff --git a/src/views/course/basicCourseInformation.vue b/src/views/course/basicCourseInformation.vue index c2a2a08..3606b0a 100644 --- a/src/views/course/basicCourseInformation.vue +++ b/src/views/course/basicCourseInformation.vue @@ -133,6 +133,7 @@ const onGetCourseObject = async (id: any) => { // const res = await getCourseObjectApi(id) router.push({ path: '/curriculumCenter/courseDetails', + // path: '/curriculumCenter/CourseObjectives', query: { id: id, }, diff --git a/src/views/course/courseChapters.vue b/src/views/course/courseChapters.vue index 2beb408..f329982 100644 --- a/src/views/course/courseChapters.vue +++ b/src/views/course/courseChapters.vue @@ -107,7 +107,6 @@ function foldAddSubmit(data: any, updLoading: Function) { .finally(() => updLoading(false)) } //删除章节 -<<<<<<< HEAD const foldDelLoading = ref(false) function flodDel(id: string) { foldDelLoading.value = true @@ -118,14 +117,6 @@ function flodDel(id: string) { type: 'success', }) getFold() -======= -function flodDel(id: string,setLoading:Function) { - setLoading(true) - deleteSectionApi(id).then(() => { - ElMessage({ - message: `删除成功`, - type: 'success' ->>>>>>> efc569df5dcaa0a473e7d75d75a5abe7e5d030d5 }) .catch(() => { ElMessage({ @@ -133,11 +124,7 @@ function flodDel(id: string,setLoading:Function) { type: 'error', }) }) -<<<<<<< HEAD .finally(() => (foldDelLoading.value = false)) -======= - }).finally(() =>setLoading(false)) ->>>>>>> efc569df5dcaa0a473e7d75d75a5abe7e5d030d5 } // 更新章节 const showHide1 = ref(false) diff --git a/src/views/course/courseDetails.vue b/src/views/course/courseDetails.vue index da2ff98..3ba35bf 100644 --- a/src/views/course/courseDetails.vue +++ b/src/views/course/courseDetails.vue @@ -1,7 +1,140 @@