From 6205c3fa39b90ab687482776769808c9434a8106 Mon Sep 17 00:00:00 2001
From: significative <163999932+significative@users.noreply.github.com>
Date: Mon, 22 Jul 2024 08:52:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4loading?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../KnowledgeGraphUi/foldInfoUi.vue | 30 +++++++++++++------
src/views/course/courseChapters.vue | 10 +++----
2 files changed, 25 insertions(+), 15 deletions(-)
diff --git a/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue b/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue
index 4fc2666..b45d81c 100644
--- a/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue
+++ b/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue
@@ -17,7 +17,7 @@
本章资源
- 删除
+ 删除
@@ -40,8 +40,9 @@
{{ obj.totalclasshours }}学时
-
- 删除
+
+ 删除
@@ -62,13 +63,24 @@
diff --git a/src/views/course/courseChapters.vue b/src/views/course/courseChapters.vue
index 507cbf2..7018416 100644
--- a/src/views/course/courseChapters.vue
+++ b/src/views/course/courseChapters.vue
@@ -16,8 +16,7 @@
-
+
@@ -91,9 +90,8 @@ function foldAddSubmit(data: any, updLoading: Function) {
}).finally(() => updLoading(false))
}
//删除章节
-const foldDelLoading = ref(false)
-function flodDel(id: string) {
- foldDelLoading.value = true
+function flodDel(id: string,setLoading:Function) {
+ setLoading(true)
deleteSectionApi(id).then(() => {
ElMessage({
message: `删除成功`,
@@ -105,7 +103,7 @@ function flodDel(id: string) {
message: `删除失败`,
type: 'error'
})
- }).finally(() => foldDelLoading.value = false)
+ }).finally(() =>setLoading(false))
}
// 更新章节
const showHide1 = ref(false)