diff --git a/src/components/admin/ExamComponents/BatchSetScoreModal.vue b/src/components/admin/ExamComponents/BatchSetScoreModal.vue index 561047a..7c4a295 100644 --- a/src/components/admin/ExamComponents/BatchSetScoreModal.vue +++ b/src/components/admin/ExamComponents/BatchSetScoreModal.vue @@ -278,7 +278,7 @@ const confirmBatchSet = () => { display: flex; justify-content: flex-end; gap: 12px; - margin-top: 12px; + margin-top: 20px; } /* 滚动条样式 */ diff --git a/src/components/admin/ExamComponents/ExamSettingsModal.vue b/src/components/admin/ExamComponents/ExamSettingsModal.vue index e8e772f..5438fa3 100644 --- a/src/components/admin/ExamComponents/ExamSettingsModal.vue +++ b/src/components/admin/ExamComponents/ExamSettingsModal.vue @@ -1,6 +1,10 @@ - + + + 试卷设置 + + @@ -258,12 +262,10 @@ - - - 取消 - 确定 - - + + 取消 + 确定 + @@ -454,6 +456,12 @@ const confirmSettings = () => { --n-color: #ffffff; } +.header-title{ + color: #000; + font-weight: 400; + font-size: 20px; +} + .exam-settings-content { max-height: 800px; overflow-y: auto; @@ -713,6 +721,7 @@ const confirmSettings = () => { } .modal-actions { + margin-top: 20px; display: flex; justify-content: flex-end; gap: 12px; diff --git a/src/components/admin/ExamComponents/QuestionBankModal.vue b/src/components/admin/ExamComponents/QuestionBankModal.vue new file mode 100644 index 0000000..e8aea08 --- /dev/null +++ b/src/components/admin/ExamComponents/QuestionBankModal.vue @@ -0,0 +1,459 @@ + + + + + 题库 + + + + + + + + + 试题分类: + + + + 试题难度: + + + + 试题题型: + + + + 已全部加载,共{{ pagination.itemCount }}试题 + + + + + + + 导入试题 + + + + + + + + + + + + + 已选择{{ selectedRowKeys.length }}道题目 + + + + + + 取消 + + 确定 + + + + + + + + diff --git a/src/views/teacher/course/CourseEditor.vue b/src/views/teacher/course/CourseEditor.vue index e1198af..505f049 100644 --- a/src/views/teacher/course/CourseEditor.vue +++ b/src/views/teacher/course/CourseEditor.vue @@ -1,7 +1,7 @@ - + - + 作业 - + - + 作业库 @@ -39,12 +39,32 @@ - - - 练考通 - + + + + + 练考通 + + + + + + + + + 试卷库 + + + 阅卷中心 + + + + import { useRoute } from 'vue-router' -import { ref } from 'vue' +import { computed, ref, watch } from 'vue' const route = useRoute() // 获取课程ID const courseId = route.params.id -// 作业菜单展开状态 -const homeworkExpanded = ref(false) +// 二级菜单展开状态 +const subMenuArr = ref({ + homework: false, + practice: false +}) // 切换作业菜单展开/收起 -const toggleHomework = () => { - homeworkExpanded.value = !homeworkExpanded.value +const toggleHomework = (e: 'homework' | 'practice') => { + subMenuArr.value[e] = !subMenuArr.value[e] } + +// 监听路由变化,如果当前路由是子菜单,自动展开父菜单 +watch(() => route.path, (newPath) => { + if (newPath.includes('practice')) { + subMenuArr.value.practice = true + }else if (newPath.includes('homework')) { + subMenuArr.value.homework = true + } +}, { immediate: true }) + + +// 判断是否显示侧边菜单栏 +const showSidebar = computed(() => { + return route.meta.hideSidebar !== true +})