From cca07aa193106433c2bf65c17bf0a42cf27099e7 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Fri, 23 Aug 2024 20:10:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=83=E4=B9=A0-=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/eduApp/index.js | 73 +++++- config.js | 2 +- pages/YNEduApp/prac/exercises.vue | 345 +++++++++++++++-------------- pages/YNEduApp/prac/prac.vue | 21 +- pages/YNEduApp/prac/pracDetail.vue | 113 +++++++++- static/images/顺序练习.png | Bin 5903 -> 5882 bytes 6 files changed, 369 insertions(+), 185 deletions(-) diff --git a/api/eduApp/index.js b/api/eduApp/index.js index a1daf44..615c77b 100644 --- a/api/eduApp/index.js +++ b/api/eduApp/index.js @@ -72,7 +72,6 @@ export function getExamRankById(params) { }) } - // 练习-列表 /personalCenter/getStudentPracticeList export function getStudentPracticeList(params) { return request({ @@ -81,3 +80,75 @@ export function getStudentPracticeList(params) { data: params }) } + +// 练习-总览 /studentPractice/getPracticeQuestionRate +export function getPracticeQuestionRate(params) { + return request({ + url: '/studentPractice/getPracticeQuestionRate', + method: 'post', + data: params + }) +} + +// 练习-聚合数据 /studentPractice/getPracticeItData +export function getPracticeItData(params) { + return request({ + url: '/studentPractice/getPracticeItData', + method: 'post', + data: params + }) +} + +// 练习-题目 studentPractice/getPracticeQuestion +export function getPracticeQuestion(params) { + return request({ + url: '/studentPractice/getPracticeQuestion', + method: 'post', + data: params + }) +} + +// 练习-答题 studentPractice/insertPracticeAnswerById +export function insertPracticeAnswerById(params) { + return request({ + url: '/studentPractice/insertPracticeAnswerById', + method: 'post', + data: params + }) +} + +// 练习-前后题-跳题 studentPractice/changeQuestion +export function changeQuestion(params) { + return request({ + url: '/studentPractice/changeQuestion', + method: 'post', + data: params + }) +} + +// 练习-弹框序号跳题 /studentPractice/getPracticeQuestionList +export function getPracticeQuestionList(params) { + return request({ + url: '/studentPractice/getPracticeQuestionList', + method: 'post', + data: params + }) +} + +// 练习-保存练习时长 /studentPractice/savePracticeDuration +export function savePracticeDuration(params) { + return request({ + url: '/studentPractice/savePracticeDuration', + method: 'post', + data: params + }) +} + +// 练习-错题消除 studentPractice/updateRemoveRecordData +export function updateRemoveRecordData(params) { + return request({ + url: '/studentPractice/updateRemoveRecordData', + method: 'post', + data: params + }) +} diff --git a/config.js b/config.js index aa253f8..072534a 100644 --- a/config.js +++ b/config.js @@ -2,7 +2,7 @@ module.exports = { // baseUrl:'/prod-api', // baseUrl:'http://112.29.103.165:1616/ynuw', - baseUrl:'http://192.168.0.32:2900/exam-student', + baseUrl:'http://192.168.0.137:2900/exam-student', // 上传文件地址 uploadUrl: 'http://192.168.0.137:2909/exam-file/file/uploadBase64', bmwUrl: 'http://192.168.0.137:2911/exam-bmw', diff --git a/pages/YNEduApp/prac/exercises.vue b/pages/YNEduApp/prac/exercises.vue index 6ea9bdf..83bbf46 100644 --- a/pages/YNEduApp/prac/exercises.vue +++ b/pages/YNEduApp/prac/exercises.vue @@ -4,25 +4,25 @@
-
{{ correctNum }}
+
{{ trueNum }}
-
{{ errorNum }}
+
{{ falseNum }}
-
{{ currentIndex + 1 }}/{{ questionList.length }}
+
{{ allNum }}
-
-
-
{{ index + 1 }}. {{ item.title }}{{ item.type == 3 ? '(判断题)' : '(单选题)' }}
+
+
+
{{ item.paperTopic }}{{ item.examType == 1 ? '(单选题)' : '(判断题)' }}
-
{{ option.value }}.{{ option.label }}
+
{{ option.optionIdent }}.{{ option.optionContent }}
-
正确答案:{{ item.answer }}
+
正确答案:{{ item.correctGrade }}
你的答案:{{ item.select }}
答案解析:
-
{{ item.analysis }}
+
{{ item.answerAnaly }}
-
-
{{ index + 1 }}. {{ item.title }}(多选题)
+
+
{{ index + 1 }}. {{ item.paperTopic }}(多选题)
-
{{ option.value }}.{{ option.label }}
+
{{ option.optionIdent }}.{{ option.optionContent }}
@@ -71,7 +71,7 @@
-
正确答案:{{ item.answer.join('、') }}
+
正确答案:{{ item.correctGrade.join('、') }}
你的答案:{{ item.select.join('、') }}
知识点
-
{{ item.knowledge }}
+
{{ item.answerAnaly }}
@@ -104,24 +104,22 @@
@@ -144,7 +142,7 @@
答题数
-
{{ correctNum }}
+
{{ trueNum }}
正确数
@@ -160,11 +158,11 @@
*
{{ index + 1 }}
@@ -176,9 +174,24 @@