feat:修改菜单顺序,修改部分菜单命名
This commit is contained in:
parent
760290bfb0
commit
b287cf73b9
@ -3,7 +3,7 @@
|
||||
style="width: 90%; max-width: 1000px; max-height: 80vh;" :mask-closable="false" :closable="false">
|
||||
<template #header>
|
||||
<div class="modal-header">
|
||||
<h2 class="modal-title">作业库</h2>
|
||||
<h2 class="modal-title">作业管理</h2>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -302,6 +302,8 @@ const getOptionsForCourse = (course: CourseDisplayItem) => {
|
||||
} else if (course.status === 2) { // 已结束
|
||||
return [
|
||||
// { label: '查看', value: 'view', icon: '/images/teacher/小编辑.png' },
|
||||
{ label: '发布', value: 'publish', icon: '/images/teacher/加号.png' },
|
||||
{ label: '编辑', value: 'edit', icon: '/images/teacher/小编辑.png' },
|
||||
{ label: '删除', value: 'delete', icon: '/images/teacher/删除.png' }
|
||||
];
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ const routes: RouteRecordRaw[] = [
|
||||
name: 'CourseEditor',
|
||||
component: CourseEditor,
|
||||
meta: { title: '课程管理' },
|
||||
redirect: (to) => `/teacher/course-editor/${to.params.id}/courseware`,
|
||||
redirect: (to) => `/teacher/course-editor/${to.params.id}/chapters`,
|
||||
children: [
|
||||
{
|
||||
path: 'courseware',
|
||||
@ -171,7 +171,7 @@ const routes: RouteRecordRaw[] = [
|
||||
path: 'library',
|
||||
name: 'HomeworkLibrary',
|
||||
component: HomeworkLibrary,
|
||||
meta: { title: '作业库' }
|
||||
meta: { title: '作业管理' }
|
||||
},
|
||||
{
|
||||
path: 'add-homework',
|
||||
|
@ -373,7 +373,7 @@ const breadcrumbPathItems = computed(() => {
|
||||
path: `/teacher/course-editor/${courseId}`
|
||||
},
|
||||
{
|
||||
title: '作业库',
|
||||
title: '作业管理',
|
||||
path: `/teacher/course-editor/${courseId}/homework`
|
||||
},
|
||||
{
|
||||
|
@ -2,18 +2,18 @@
|
||||
<div class="course-editor">
|
||||
<!-- 左侧导航菜单 -->
|
||||
<div class="sidebar" v-if="!hideSidebar">
|
||||
<router-link :to="`/teacher/course-editor/${courseId}/courseware`" class="menu-item"
|
||||
:class="{ active: $route.path.includes('courseware') }">
|
||||
<img :src="$route.path.includes('courseware') ? '/images/teacher/课件-选中.png' : '/images/teacher/课件.png'"
|
||||
alt="资源库" />
|
||||
<span>资源库</span>
|
||||
</router-link>
|
||||
<router-link :to="`/teacher/course-editor/${courseId}/chapters`" class="menu-item"
|
||||
:class="{ active: $route.path.includes('chapters') }">
|
||||
<img :src="$route.path.includes('chapters') ? '/images/teacher/章节-选中.png' : '/images/teacher/章节.png'"
|
||||
alt="章节" />
|
||||
<span>章节</span>
|
||||
</router-link>
|
||||
<router-link :to="`/teacher/course-editor/${courseId}/courseware`" class="menu-item"
|
||||
:class="{ active: $route.path.includes('courseware') }">
|
||||
<img :src="$route.path.includes('courseware') ? '/images/teacher/课件-选中.png' : '/images/teacher/课件.png'"
|
||||
alt="课件" />
|
||||
<span>课件</span>
|
||||
</router-link>
|
||||
<!-- 作业二级导航 -->
|
||||
<div class="menu-group">
|
||||
<div class="menu-header" @click="toggleHomework">
|
||||
@ -30,7 +30,7 @@
|
||||
<div class="submenu" v-show="homeworkExpanded">
|
||||
<router-link :to="`/teacher/course-editor/${courseId}/homework/library`" class="submenu-item"
|
||||
:class="{ active: $route.path.includes('/homework/library') || $route.path.includes('/homework/add-homework') }">
|
||||
<span>作业库</span>
|
||||
<span>作业管理</span>
|
||||
</router-link>
|
||||
<router-link :to="`/teacher/course-editor/${courseId}/homework/review`" class="submenu-item"
|
||||
:class="{ active: $route.path.includes('/homework/review') }">
|
||||
@ -67,18 +67,18 @@
|
||||
</router-link>
|
||||
</div>
|
||||
</div>
|
||||
<router-link :to="`/teacher/course-editor/${courseId}/certificate`" class="menu-item"
|
||||
:class="{ active: $route.path.includes('certificate') }">
|
||||
<img :src="$route.path.includes('certificate') ? '/images/teacher/证书-选中.png' : '/images/teacher/证书.png'"
|
||||
alt="证书" />
|
||||
<span>证书</span>
|
||||
</router-link>
|
||||
<router-link :to="`/teacher/course-editor/${courseId}/discussion`" class="menu-item"
|
||||
:class="{ active: $route.path.includes('discussion') }">
|
||||
<img :src="$route.path.includes('discussion') ? '/images/teacher/讨论-选中.png' : '/images/teacher/讨论.png'"
|
||||
alt="讨论" />
|
||||
<span>讨论</span>
|
||||
</router-link>
|
||||
<router-link :to="`/teacher/course-editor/${courseId}/certificate`" class="menu-item"
|
||||
:class="{ active: $route.path.includes('certificate') }">
|
||||
<img :src="$route.path.includes('certificate') ? '/images/teacher/证书-选中.png' : '/images/teacher/证书.png'"
|
||||
alt="证书" />
|
||||
<span>证书</span>
|
||||
</router-link>
|
||||
<router-link :to="`/teacher/course-editor/${courseId}/statistics`" class="menu-item"
|
||||
:class="{ active: $route.path.includes('statistics') }">
|
||||
<img :src="$route.path.includes('statistics') ? '/images/teacher/统计-选中.png' : '/images/teacher/统计.png'"
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="homework-library">
|
||||
<div class="toolbar">
|
||||
<h2>作业库</h2>
|
||||
<h2>作业管理</h2>
|
||||
<div class="toolbar-actions">
|
||||
<n-button type="primary" @click="handleAddHomework">添加作业</n-button>
|
||||
<n-button @click="handleImport">导入</n-button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user