diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/vo/MyExamVO.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/vo/MyExamVO.java index 03212e4..4650def 100644 --- a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/vo/MyExamVO.java +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/vo/MyExamVO.java @@ -1,5 +1,6 @@ package com.inspur.examine.vo; +import com.inspur.common.annotation.Excel; import lombok.Data; import java.math.BigDecimal; @@ -44,6 +45,36 @@ public class MyExamVO { */ private String examRules; + /** + * 单选题数量 + */ + private Integer singleChoice; + + /** + * 多选题数量 + */ + private Integer multipleChoice; + + /** + * 判断题数量 + */ + private Integer judge; + + /** + * 单选题分数 + */ + private BigDecimal singleChoiceScore; + + /** + * 多选题分数 + */ + private BigDecimal multipleChoiceScore; + + /** + * 判断题分数 + */ + private BigDecimal judgeScore; + /** * 总分数 */ diff --git a/inspur-service/inspur-examine/src/main/resources/mapper/MyExamineMapper.xml b/inspur-service/inspur-examine/src/main/resources/mapper/MyExamineMapper.xml index b0ce55f..e60a375 100644 --- a/inspur-service/inspur-examine/src/main/resources/mapper/MyExamineMapper.xml +++ b/inspur-service/inspur-examine/src/main/resources/mapper/MyExamineMapper.xml @@ -173,7 +173,14 @@ ei.exam_duration AS examDuration, ei.exam_rules AS examRules, ei.total_score AS totalScore, - ei.pass_score AS passScore + ei.pass_score AS passScore, + ei.pass_score AS passScore, + ei.single_choice as singleChoice, + ei.multiple_choice as multipleChoice, + ei.judge as judge, + ei.single_choice_score as singleChoiceScore, + ei.multiple_choice_score as multipleChoiceScore, + ei.judge_score as judgeScore FROM exam_paper_info AS epi LEFT JOIN exam_info AS ei ON epi.exam_id = ei.id @@ -219,7 +226,13 @@ ei.exam_duration AS examDuration, ei.exam_rules AS examRules, ei.total_score AS totalScore, - ei.pass_score AS passScore + ei.pass_score AS passScore, + ei.single_choice as singleChoice, + ei.multiple_choice as multipleChoice, + ei.judge as judge, + ei.single_choice_score as singleChoiceScore, + ei.multiple_choice_score as multipleChoiceScore, + ei.judge_score as judgeScore FROM exam_paper_info AS epi LEFT JOIN exam_info AS ei ON epi.exam_id = ei.id diff --git a/inspur-ui/src/api/examine/myExamine.js b/inspur-ui/src/api/examine/myExamine.js index 2514a58..df1596e 100644 --- a/inspur-ui/src/api/examine/myExamine.js +++ b/inspur-ui/src/api/examine/myExamine.js @@ -51,3 +51,20 @@ export function getAttestationList(query) { params: query }) } + +// 获取考试信息以及试题 +export function getHistoryExam(id) { + return request({ + url: '/examine/myExamine/getHistoryExam/' + id, + method: 'get' + }) +} + +// 提交考试 +export function submitExam(data) { + return request({ + url: '/examine/myExamine/submitExam', + method: 'post', + data: data + }) +} diff --git a/inspur-ui/src/views/examine/myExamine/index.vue b/inspur-ui/src/views/examine/myExamine/index.vue index 48d9a10..ea88609 100644 --- a/inspur-ui/src/views/examine/myExamine/index.vue +++ b/inspur-ui/src/views/examine/myExamine/index.vue @@ -232,18 +232,121 @@ /> + + +

{{answerForm.examName}}

+

考生名称:{{answerForm.examineName}} 考试时长:{{answerForm.examDuration}}分钟

+

满分:{{answerForm.totalScore}} 通过分数{{answerForm.passScore}}

+

考试倒计时: {{ minutes }}:{{ seconds }}

+

考试规则:{{answerForm.examRules}}

+ +
+ 单选题(共{{answerForm.singleChoice}}题,每题{{answerForm.singleChoiceScore}}分) +
+
+

{{singleChoice.sorted}}、{{singleChoice.questionTitle}}({{answerForm.singleChoiceScore}}分)

+ + {{item.title}} + +
+ 正确答案:{{singleChoice.questionAnswer}} +
+ 您的答案是:{{ singleChoice.examineAnswer === null || singleChoice.examineAnswer === '' ? "未作答" : singleChoice.examineAnswer }} +
+ 回答正确 + 回答错误 +
+ 解析:{{singleChoice.questionAnswerAnalysis}} +
+
+
+ +
+ 多选题(共{{answerForm.multipleChoice}}题,每题{{answerForm.multipleChoiceScore}}分) +
+
+

{{multiChoice.sorted}}、{{multiChoice.questionTitle}}({{answerForm.multipleChoiceScore}}分)

+ + {{item.title}} + +
+ 正确答案:{{multiChoice.questionAnswer}} +
+ 您的答案是:{{ multiChoice.examineAnswer === null || multiChoice.examineAnswer === '' ? "未作答" : multiChoice.examineAnswer }} +
+ 回答正确 + 回答错误 +
+ 解析:{{multiChoice.questionAnswerAnalysis}} +
+
+
+ +
+ 判断题(共{{answerForm.judge}}题,每题{{answerForm.judgeScore}}分) +
+
+

{{judge.sorted}}、{{judge.questionTitle}}({{answerForm.judgeScore}}分)

+ + {{item.title}} + +
+ 正确答案:{{judge.questionAnswer === 'T' ? "正确":"错误"}} +
+ 您的答案是:{{ judge.examineAnswer === null || judge.examineAnswer === '' ? "未作答" : judge.examineAnswer === 'T' ? "正确":"错误" }} +
+ 回答正确 + 回答错误 +
+ 解析:{{judge.questionAnswerAnalysis}} +
+
+
+ +
+