From 68af92d3a8dc4c4e1ff5c3cb509df0a3fee6ec3d Mon Sep 17 00:00:00 2001 From: JayChou <2064936853@qq.com> Date: Wed, 21 Aug 2024 15:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AD=A6=E4=B9=A0=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E6=8E=A8=E8=8D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/course.ts | 10 +- src/api/types/courseType.ts | 3 + src/router/module/constRouter/index.ts | 11 +- src/views/course/components/courseTree.vue | 1 + src/views/course/index.vue | 263 +++++++++++-- src/views/home/components/Graph.vue | 16 +- src/views/knowledge/index.vue | 1 + .../components/mountNode.vue | 358 ++++++++++++++++++ src/views/roadbedRecommendation/index.vue | 149 ++++++++ 9 files changed, 771 insertions(+), 41 deletions(-) create mode 100644 src/api/types/courseType.ts create mode 100644 src/views/roadbedRecommendation/components/mountNode.vue create mode 100644 src/views/roadbedRecommendation/index.vue diff --git a/src/api/course.ts b/src/api/course.ts index 85250db..be7b153 100644 --- a/src/api/course.ts +++ b/src/api/course.ts @@ -1,5 +1,5 @@ import request from '@/utils/requset' - +import { GetCourseObjectivesList} from './types/courseType' // 获取课程列表 export const getCourseList = (params: object) => { @@ -55,4 +55,12 @@ export const getCourseAtlasTow = (params: object) => { url: '/api/knowNeo/getsecondKnowsById', params, }) +} + +// 获取课程目标 +export const getCourseObjectivesList = (params:GetCourseObjectivesList) => { + return request({ + url:'/api/course_objectives/list/' + params.id, + + }) } \ No newline at end of file diff --git a/src/api/types/courseType.ts b/src/api/types/courseType.ts new file mode 100644 index 0000000..e2b57a8 --- /dev/null +++ b/src/api/types/courseType.ts @@ -0,0 +1,3 @@ +export interface GetCourseObjectivesList { + id:string | number +} \ No newline at end of file diff --git a/src/router/module/constRouter/index.ts b/src/router/module/constRouter/index.ts index 72710f9..fa95a7e 100644 --- a/src/router/module/constRouter/index.ts +++ b/src/router/module/constRouter/index.ts @@ -79,7 +79,16 @@ export const constRouter: any = [ title: '知识点首页', hidden: true, }, - } + }, + { + path:'/roadbedRecommendation', + component:() => import('@/views/roadbedRecommendation/index.vue'), + name:'RoadbedRecommendation', + meta: { + title: '学习推荐', + hidden: false, + }, + }, // { // path: '/talentDevelopment', // 人才培养 // component: () => import('@/views/talentDevelopment/index.vue'), diff --git a/src/views/course/components/courseTree.vue b/src/views/course/components/courseTree.vue index f8548b1..4abd4d0 100644 --- a/src/views/course/components/courseTree.vue +++ b/src/views/course/components/courseTree.vue @@ -29,5 +29,6 @@ const defaultProps = { } :deep(.el-tree-node__content) { font-size: 16px; + height: 32px; } diff --git a/src/views/course/index.vue b/src/views/course/index.vue index aa0da8d..4ab134d 100644 --- a/src/views/course/index.vue +++ b/src/views/course/index.vue @@ -7,8 +7,11 @@ :height="800" :index="courseId" :id="courseId" + :radio1="radio1" + :checkList="checkList" v-show="flag === 1" @clickGraph="clickGraphChange" + v-if="isSetting" />