From 21414e94f5a7a2ea6aeddafc672208b20818c9c5 Mon Sep 17 00:00:00 2001 From: wyx Date: Wed, 8 Feb 2023 14:17:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=84?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=95=8C=E9=9D=A2=E5=8F=8A=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=8E=A5=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 3 + src/views/project/ProjectDetails.vue | 17 + src/views/roadmap/PathDetails.vue | 19 + src/views/testscore/Evaluation.vue | 628 +++++++++++++++++++++++++++ vite.config.js | 3 + 5 files changed, 670 insertions(+) create mode 100644 src/views/testscore/Evaluation.vue diff --git a/src/api/api.js b/src/api/api.js index ba99e0e..8774dd1 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -87,3 +87,6 @@ export const CompletionList = `/stu/project/rank_list/completion_list` // 积分排行榜 export const PointList = `/stu/project/rank_list/point_list` + +// 根据ID获取测评信息详情 +export const QueryEvaluationDetailById = evaluationId => `/evaluation/queryEvaluationDetailById?evaluationId=${evaluationId} post` diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index 16ba37f..c761f0a 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -726,6 +726,23 @@ function toFinish(d, sName, chapterOrStageId) { } // 测评模块 请求接口跳转新的页面 - 新增 暂时未调试 目前无测评数据 2023-02-04 if(d.type == 10) { + // 此处判断测评跳转详情界面 + router.push({ + path: '/evaluation', + query: { + id: d.projectTaskId, + type: PROJECT, + infoId: data.value.projectId, + courseId: d.courseId, + pName: data.value.name, + sName, + chapterOrStageId, + exname: d.name, // 测评名称 + btype: 1 // 1项目 2 路径图 + }, + }); + return + // 调用接口 跳转页面 console.log('我是查询测评跳转链接所传递得参数',{ "businessType": "project", diff --git a/src/views/roadmap/PathDetails.vue b/src/views/roadmap/PathDetails.vue index 131464f..39ba0e0 100644 --- a/src/views/roadmap/PathDetails.vue +++ b/src/views/roadmap/PathDetails.vue @@ -525,6 +525,25 @@ function toFinish(d) { // 测评模块 请求接口跳转新的页面 - 新增 暂时未调试 目前无测评数据 2023-02-04 if(d.type == 10) { + + + // 此处判断测评跳转详情界面 + router.push({ + path: '/evaluation', + query: { + id: d.routerTaskId, + type: ROUTER, + infoId: routerId, + courseId: d.courseId, + pName: data.value.name, + sName: data.value.currentStageName, + chapterOrStageId: data.value.currentStageId, + exname: d.name, // 测评名称 + btype: 2 // 1项目 2 路径图 + }, + }); + return + // 调用接口 跳转页面 console.log('我是查询测评跳转链接所传递得参数',{ "businessType": "learningpath", diff --git a/src/views/testscore/Evaluation.vue b/src/views/testscore/Evaluation.vue new file mode 100644 index 0000000..860baa8 --- /dev/null +++ b/src/views/testscore/Evaluation.vue @@ -0,0 +1,628 @@ + + + + + + + + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index f19eb57..61cf202 100644 --- a/vite.config.js +++ b/vite.config.js @@ -105,6 +105,9 @@ export default defineConfig(({ command, mode }) => },'/evaluation/evaluationToLearn': { target: loadEnv(mode, process.cwd()).VITE_PROXY_URL, changeOrigin: true, + },'/evaluation/queryEvaluationDetailById': { + target: loadEnv(mode, process.cwd()).VITE_PROXY_URL, + changeOrigin: true, }, } }