|
@@ -14,7 +14,7 @@
|
|
|
:class="{
|
|
|
'exam-question-item': true,
|
|
|
'exam-question-item-on': answerIndex === index,
|
|
|
- 'exam-question-item-down': examQuestionList[index].userAnswer.length
|
|
|
+ 'exam-question-item-down': examQuestionList[index].userAnswer.length,
|
|
|
}"
|
|
|
v-for="(item, index) in examQuestionList"
|
|
|
:key="index"
|
|
@@ -51,7 +51,7 @@
|
|
|
<div v-if="examQuestionList.length" class="exam-question-describe">
|
|
|
{{
|
|
|
examQuestionList[answerIndex].questionContent ||
|
|
|
- examQuestionList[answerIndex].content
|
|
|
+ examQuestionList[answerIndex].content
|
|
|
}}
|
|
|
</div>
|
|
|
<!-- 答题列表 -->
|
|
@@ -59,10 +59,9 @@
|
|
|
<div
|
|
|
v-if="
|
|
|
examQuestionList.length &&
|
|
|
- (examQuestionList[answerIndex].type ===
|
|
|
- questionType.singleChoice ||
|
|
|
- examQuestionList[answerIndex].type ===
|
|
|
- questionType.multipleChoice)
|
|
|
+ (examQuestionList[answerIndex].type === questionType.singleChoice ||
|
|
|
+ examQuestionList[answerIndex].type ===
|
|
|
+ questionType.multipleChoice)
|
|
|
"
|
|
|
class="exam-question-options"
|
|
|
>
|
|
@@ -71,7 +70,7 @@
|
|
|
:key="index"
|
|
|
:class="{
|
|
|
'exam-question-options-item': true,
|
|
|
- 'exam-question-options-item-checked': answerValue.includes(item)
|
|
|
+ 'exam-question-options-item-checked': answerValue.includes(item),
|
|
|
}"
|
|
|
@click="handleExamQuestionOptionsItemFun(item)"
|
|
|
>
|
|
@@ -82,7 +81,7 @@
|
|
|
<div
|
|
|
v-if="
|
|
|
examQuestionList.length &&
|
|
|
- examQuestionList[answerIndex].type === questionType.gapFilling
|
|
|
+ examQuestionList[answerIndex].type === questionType.gapFilling
|
|
|
"
|
|
|
class="exam-question-gapFilling"
|
|
|
>
|
|
@@ -125,7 +124,7 @@
|
|
|
accept="image/*"
|
|
|
capture="user"
|
|
|
@change="startTakePhotoFUn"
|
|
|
- style="display: none;"
|
|
|
+ style="display: none"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -206,12 +205,16 @@ export default {
|
|
|
// 方法:开始考试
|
|
|
examStartFun() {
|
|
|
this.$store.commit("toggleLoading", true);
|
|
|
+ let params = {
|
|
|
+ type: "aaaaaaaa"
|
|
|
+ };
|
|
|
this.$_http
|
|
|
.post(
|
|
|
this.$pathParams(this.$_API.POST_JTXT_GET_EXAMS_START, {
|
|
|
examId: this.examItem.id
|
|
|
}),
|
|
|
- this.userInfo
|
|
|
+ this.userInfo,
|
|
|
+ { params }
|
|
|
)
|
|
|
.then(res => {
|
|
|
if (res.data) {
|
|
@@ -510,16 +513,8 @@ export default {
|
|
|
let grades = this.getUserExamAllPointsFun(); // 方法:计算成绩
|
|
|
let answers = this.getUserExamAllAnswersFun(); // 方法:获取当前用户所有题目作答的答案
|
|
|
let params = {
|
|
|
- user: this.userInfo,
|
|
|
- exam: {
|
|
|
- id: this.examItem.id,
|
|
|
- name: this.examItem.name,
|
|
|
- description: this.examItem.description,
|
|
|
- creator: this.userInfo,
|
|
|
- duration: this.examItem.duration,
|
|
|
- deadline: this.examItem.deadline,
|
|
|
- startTime: this.examItem.startTime
|
|
|
- },
|
|
|
+ userId: this.userInfo.id,
|
|
|
+ examId: this.answerRecruitId,
|
|
|
points: grades, // 成绩:分数
|
|
|
startTime: this.answerTime.startTime,
|
|
|
endTime: this.answerTime.endTime,
|