diff --git a/mock/user.ts b/mock/user.ts
index 037da77..f039b1b 100644
--- a/mock/user.ts
+++ b/mock/user.ts
@@ -10,7 +10,7 @@ function createUserList() {
desc: '平台管理员',
roles: ['平台管理员'],
buttons: ['cuser.detail'],
- routes: ['Home', 'Course', 'Student', 'Group', 'Message'],
+ routes: ['Home', 'Course', 'Student', 'Group', 'Message','BasicCourseInformation','CourseObjectives','CourseChapters','KnowledgePoints','CurriculumMap'], //老师权限
token: 'Admin Token',
},
{
@@ -22,7 +22,7 @@ function createUserList() {
desc: '系统管理员',
roles: ['系统管理员'],
buttons: ['cuser.detail', 'cuser.user'],
- routes: ['Home', 'MyCourseStudy', 'CourseResources', 'Message'],
+ routes: ['Home', 'MyCourseStudy', 'CourseResources', 'Message','LearningProcess','CourseCollections','Courselikes','WebHome','CourseHome','LearningPathRecommendations','KnowledgePointLearning','CourseReports'], //学生权限
token: 'System Token',
},
]
diff --git a/src/layout/index.vue b/src/layout/index.vue
index b447669..8b70a54 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -15,7 +15,7 @@
:default-active="$route.path"
background-color="#001529"
text-color="#fff"
-
+ :collapse="LayoutSettingStoe.fold"
>
diff --git a/src/layout/menu/index.vue b/src/layout/menu/index.vue
index 751ce38..dce0724 100644
--- a/src/layout/menu/index.vue
+++ b/src/layout/menu/index.vue
@@ -15,12 +15,10 @@
-
{{ item.meta.title }}
-
-
-
-
+
\ No newline at end of file
diff --git a/src/router/routers.ts b/src/router/routers.ts
index 5b02b50..8bf3b5a 100644
--- a/src/router/routers.ts
+++ b/src/router/routers.ts
@@ -24,20 +24,72 @@ export const constantRoute: any = [
},
{
path: '/curriculumCenter',
+ redirect: '/curriculumCenter/basicCourseInformation',
component: () => import('@/layout/index.vue'),
name: 'CurriculumCenter',
meta: {
- title: '',
+ title: '课程',
hidden: false,
icon: 'HomeFilled', // 菜单图标
},
children: [
+ // {
+ // path: '/curriculumCenter/course',
+ // redirect: '/curriculumCenter/basicCourseInformation',
+ // component: () => import('@/views/course/index.vue'),
+ // name: 'Course',
+ // meta: {
+ // title: '课程',
+ // hidden: false,
+ // icon: 'Notebook',
+ // },
+ // },
+ {
+ path: '/curriculumCenter/basicCourseInformation',
+ component: () => import('@/views/course/basicCourseInformation.vue'),
+ name: 'BasicCourseInformation',
+ meta: {
+ title: '课程基本信息',
+ hidden: false,
+ icon: 'Notebook',
+ },
+ },
+ {
+ path: '/curriculumCenter/CourseObjectives',
+ component: () => import('@/views/course/CourseObjectives.vue'),
+ name: 'CourseObjectives',
+ meta: {
+ title: '课程目标',
+ hidden: false,
+ icon: 'Notebook',
+ },
+ },
+ {
+ path: '/curriculumCenter/courseChapters',
+ component: () => import('@/views/course/courseChapters.vue'),
+ name: 'CourseChapters',
+ meta: {
+ title: '课程章节',
+ hidden: false,
+ icon: 'Notebook',
+ },
+ },
{
- path: '/curriculumCenter/course',
- component: () => import('@/views/course/index.vue'),
- name: 'Course',
+ path: '/curriculumCenter/knowledgePoints',
+ component: () => import('@/views/course/knowledgePoints.vue'),
+ name: 'KnowledgePoints', // name 要与权限一致
meta: {
- title: '课程',
+ title: '知识点',
+ hidden: false,
+ icon: 'Notebook',
+ },
+ },
+ {
+ path: '/curriculumCenter/curriculumMap',
+ component: () => import('@/views/course/curriculumMap.vue'),
+ name: 'CurriculumMap', // name 要与权限一致
+ meta: {
+ title: '课程图谱',
hidden: false,
icon: 'Notebook',
},
@@ -115,17 +167,37 @@ export const constantRoute: any = [
component: () => import('@/layout/index.vue'),
name: 'MyCourseStudyManagement',
meta: {
- title: '',
+ title: '学习过程',
hidden: false,
icon: 'HomeFilled', // 菜单图标
},
children: [
{
- path: '/myCourseStudyManagement/myCourseStudy',
- component: () => import('@/views/MyCourseStudy/index.vue'),
- name: 'MyCourseStudy',
+ path: '/myCourseStudyManagement/learningProcess',
+ component: () => import('@/views/MyCourseStudy/learningProcess.vue'),
+ name: 'LearningProcess',
meta: {
- title: '我学习的课程',
+ title: '课程学习记录',
+ hidden: false,
+ icon: 'StarFilled',
+ },
+ },
+ {
+ path: '/myCourseStudyManagement/courseCollections',
+ component: () => import('@/views/MyCourseStudy/courseCollections.vue'),
+ name: 'CourseCollections',
+ meta: {
+ title: '课程收藏',
+ hidden: false,
+ icon: 'StarFilled',
+ },
+ },
+ {
+ path: '/myCourseStudyManagement/Courselikes',
+ component: () => import('@/views/MyCourseStudy/Courselikes.vue'),
+ name: 'Courselikes',
+ meta: {
+ title: '课程点赞',
hidden: false,
icon: 'StarFilled',
},
@@ -154,4 +226,66 @@ export const constantRoute: any = [
},
],
},
+ {
+ path: '/portal',
+ component: () => import('@/layout/index.vue'),
+ name: 'Portal',
+ meta: {
+ title: '门户',
+ hidden: false,
+ icon: 'HomeFilled', // 菜单图标
+ },
+ children: [
+ {
+ path: '/portal/webHome',
+ component: () => import('@/views/portal/index.vue'),
+ name: 'WebHome',
+ meta: {
+ title: '网站首页',
+ hidden: false,
+ icon: 'Reading',
+ },
+ },
+ {
+ path: '/portal/courseHome',
+ component: () => import('@/views/portal/courseHomepage.vue'),
+ name: 'CourseHome',
+ meta: {
+ title: '课程首页',
+ hidden: false,
+ icon: 'Reading',
+ },
+ },
+ {
+ path: '/portal/LearningPathRecommendations',
+ component: () => import('@/views/portal/LearningPathRecommendations.vue'),
+ name: 'LearningPathRecommendations',
+ meta: {
+ title: '学习路径推荐',
+ hidden: false,
+ icon: 'Reading',
+ },
+ },
+ {
+ path: '/portal/knowledgePointLearning',
+ component: () => import('@/views/portal/knowledgePointLearning.vue'),
+ name: 'KnowledgePointLearning',
+ meta: {
+ title: '知识点学习',
+ hidden: false,
+ icon: 'Reading',
+ },
+ },
+ {
+ path: '/portal/courseReports',
+ component: () => import('@/views/portal/courseReports.vue'),
+ name: 'CourseReports',
+ meta: {
+ title: '课程报告',
+ hidden: false,
+ icon: 'Reading',
+ },
+ },
+ ],
+ },
]
diff --git a/src/views/MyCourseStudy/Courselikes.vue b/src/views/MyCourseStudy/Courselikes.vue
new file mode 100644
index 0000000..b21f044
--- /dev/null
+++ b/src/views/MyCourseStudy/Courselikes.vue
@@ -0,0 +1,14 @@
+
+
+ 课程点赞
+
+
+
+
+
+
diff --git a/src/views/MyCourseStudy/courseCollections.vue b/src/views/MyCourseStudy/courseCollections.vue
new file mode 100644
index 0000000..0c2f435
--- /dev/null
+++ b/src/views/MyCourseStudy/courseCollections.vue
@@ -0,0 +1,14 @@
+
+
+ 课程收藏
+
+
+
+
+
+
diff --git a/src/views/MyCourseStudy/learningProcess.vue b/src/views/MyCourseStudy/learningProcess.vue
new file mode 100644
index 0000000..5aeb410
--- /dev/null
+++ b/src/views/MyCourseStudy/learningProcess.vue
@@ -0,0 +1,14 @@
+
+
+ 学习过程
+
+
+
+
+
+
diff --git a/src/views/course/CourseObjectives.vue b/src/views/course/CourseObjectives.vue
new file mode 100644
index 0000000..64135f7
--- /dev/null
+++ b/src/views/course/CourseObjectives.vue
@@ -0,0 +1,14 @@
+
+
+ 课程目标
+
+
+
+
+
+
diff --git a/src/views/course/basicCourseInformation.vue b/src/views/course/basicCourseInformation.vue
new file mode 100644
index 0000000..0255c59
--- /dev/null
+++ b/src/views/course/basicCourseInformation.vue
@@ -0,0 +1,14 @@
+
+
+ 课程基本信息
+
+
+
+
+
+
diff --git a/src/views/course/courseChapters.vue b/src/views/course/courseChapters.vue
new file mode 100644
index 0000000..d664b3b
--- /dev/null
+++ b/src/views/course/courseChapters.vue
@@ -0,0 +1,14 @@
+
+
+ 课程章节
+
+
+
+
+
+
diff --git a/src/views/course/curriculumMap.vue b/src/views/course/curriculumMap.vue
new file mode 100644
index 0000000..c2054be
--- /dev/null
+++ b/src/views/course/curriculumMap.vue
@@ -0,0 +1,14 @@
+
+
+ 课程图谱
+
+
+
+
+
+
diff --git a/src/views/course/knowledgePoints.vue b/src/views/course/knowledgePoints.vue
new file mode 100644
index 0000000..642e1c5
--- /dev/null
+++ b/src/views/course/knowledgePoints.vue
@@ -0,0 +1,14 @@
+
+
+ 知识点
+
+
+
+
+
+
diff --git a/src/views/portal/LearningPathRecommendations.vue b/src/views/portal/LearningPathRecommendations.vue
new file mode 100644
index 0000000..808161f
--- /dev/null
+++ b/src/views/portal/LearningPathRecommendations.vue
@@ -0,0 +1,14 @@
+
+
+ 学习路径推荐
+
+
+
+
+
+
diff --git a/src/views/portal/courseHomepage.vue b/src/views/portal/courseHomepage.vue
new file mode 100644
index 0000000..78ee628
--- /dev/null
+++ b/src/views/portal/courseHomepage.vue
@@ -0,0 +1,14 @@
+
+
+ 课程首页
+
+
+
+
+
+
diff --git a/src/views/portal/courseReports.vue b/src/views/portal/courseReports.vue
new file mode 100644
index 0000000..6c7ab52
--- /dev/null
+++ b/src/views/portal/courseReports.vue
@@ -0,0 +1,14 @@
+
+
+ 课程报告
+
+
+
+
+
+
diff --git a/src/views/portal/index.vue b/src/views/portal/index.vue
new file mode 100644
index 0000000..769e0cd
--- /dev/null
+++ b/src/views/portal/index.vue
@@ -0,0 +1,14 @@
+
+
+ 网站首页
+
+
+
+
+
+
diff --git a/src/views/portal/knowledgePointLearning.vue b/src/views/portal/knowledgePointLearning.vue
new file mode 100644
index 0000000..340775f
--- /dev/null
+++ b/src/views/portal/knowledgePointLearning.vue
@@ -0,0 +1,14 @@
+
+
+ 知识点学习
+
+
+
+
+
+