From 780823ce9b5d92249c82146ecb72d89cb0b46d8f Mon Sep 17 00:00:00 2001
From: lijiaqi <1205620597@qq.com>
Date: Sun, 21 Jul 2024 21:09:12 +0800
Subject: [PATCH] 1
---
src/views/course/basicCourseInformation.vue | 54 +++++++------------
src/views/course/components/courseEdit.vue | 58 +++++----------------
2 files changed, 31 insertions(+), 81 deletions(-)
diff --git a/src/views/course/basicCourseInformation.vue b/src/views/course/basicCourseInformation.vue
index fba21ab..d2e9cf1 100644
--- a/src/views/course/basicCourseInformation.vue
+++ b/src/views/course/basicCourseInformation.vue
@@ -110,7 +110,7 @@ const onSuccess = () => {
getCourseList()
loading.value = false
}
-//
+//删除
const onDeleteCourse = async (id: any) => {
await ElMessageBox.confirm('您确定删除这条课程信息吗', '温馨提示', {
confirmButtonText: '确认',
@@ -174,12 +174,8 @@ const CloseCouresNameChangeEvent = () => {
-
+
@@ -208,11 +204,7 @@ const CloseCouresNameChangeEvent = () => {
- -
+
-
@@ -242,36 +234,19 @@ const CloseCouresNameChangeEvent = () => {
-
+
查看课程目标
-
+
-
+
@@ -317,6 +292,7 @@ const CloseCouresNameChangeEvent = () => {
}
.course {
+
// display: flex;
// flex: 0 0 25%;
// justify-content: space-between;
@@ -354,6 +330,7 @@ const CloseCouresNameChangeEvent = () => {
margin-left: 30px;
margin-top: 10px;
font-weight: bold;
+
&:hover {
cursor: pointer;
}
@@ -399,6 +376,7 @@ const CloseCouresNameChangeEvent = () => {
.plus {
width: 100%;
height: 178px;
+
&:hover {
cursor: pointer;
}
@@ -413,8 +391,10 @@ const CloseCouresNameChangeEvent = () => {
text-align: center;
}
}
+
.add_course {
border: 2px dashed rgb(143, 139, 139);
+
h2 {
font-size: 40px;
text-align: center;
@@ -422,11 +402,13 @@ const CloseCouresNameChangeEvent = () => {
color: #535050;
font-weight: bold;
margin-top: 20px;
+
&:hover {
cursor: pointer;
}
}
}
+
.short-form-item {
width: 250px;
margin-right: 65px;
diff --git a/src/views/course/components/courseEdit.vue b/src/views/course/components/courseEdit.vue
index 9f625ae..702e3eb 100644
--- a/src/views/course/components/courseEdit.vue
+++ b/src/views/course/components/courseEdit.vue
@@ -164,7 +164,6 @@ const props = defineProps(['flog'])
const onSubmit = async () => {
// console.log(formModel.value, 'formModel.value')
formModel.value.classhours = formModel.value.classhours.toString()
-
await formRef.value.validate()
const isEdit = formModel.value.id
if (isEdit) {
@@ -172,6 +171,7 @@ const onSubmit = async () => {
ElMessage.success('修改成功')
emit('CloseCouresNameChange')
emit('success')
+ console.log(formModel.value, 'formModel.value')
} else {
console.log(formModel.value, 'formModel.value')
// console.log(formModel.value)
@@ -211,22 +211,7 @@ const courseNameInput = () => {
emit('couresNameChange', formModel.value.name)
}
}
-// const creditInput = () => {
-// if (!props.flog) {
-// emit('creditChange', formModel.value.credit)
-// }
-// }
-// const classhoursInput = () => {
-// if (!props.flog) {
-// emit('classhoursChange', formModel.value.classhours)
-// }
-// }
-// watch(
-// () => props.flog,
-// (newVal) => {
-// console.log(newVal)
-// },
-// )
+
onMounted(() => {
console.log(props.flog)
})
@@ -252,20 +237,11 @@ const upload = async (option: any) => {
-
+
-
+
@@ -304,12 +280,8 @@ const upload = async (option: any) => {
-->
-
+
@@ -325,20 +297,13 @@ const upload = async (option: any) => {
-
+
-
+
@@ -365,7 +330,7 @@ const upload = async (option: any) => {
-