|
@@ -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,9 +59,10 @@
|
|
|
<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"
|
|
|
>
|
|
@@ -70,7 +71,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)"
|
|
|
>
|
|
@@ -81,7 +82,7 @@
|
|
|
<div
|
|
|
v-if="
|
|
|
examQuestionList.length &&
|
|
|
- examQuestionList[answerIndex].type === questionType.gapFilling
|
|
|
+ examQuestionList[answerIndex].type === questionType.gapFilling
|
|
|
"
|
|
|
class="exam-question-gapFilling"
|
|
|
>
|
|
@@ -181,7 +182,8 @@ export default {
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
examItem: state => state.exam.examItem,
|
|
|
- userInfo: state => state.user.userInfo
|
|
|
+ userInfo: state => state.user.userInfo,
|
|
|
+ chooseEngneeringWorkValue: state => state.user.chooseEngneeringWorkValue
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
@@ -205,16 +207,16 @@ export default {
|
|
|
// 方法:开始考试
|
|
|
examStartFun() {
|
|
|
this.$store.commit("toggleLoading", true);
|
|
|
- // let params = {
|
|
|
- // type: "aaaaaaaa"
|
|
|
- // };
|
|
|
+ let params = {
|
|
|
+ type: this.chooseEngneeringWorkValue
|
|
|
+ };
|
|
|
this.$_http
|
|
|
.post(
|
|
|
this.$pathParams(this.$_API.POST_JTXT_GET_EXAMS_START, {
|
|
|
examId: this.examItem.id
|
|
|
}),
|
|
|
- this.userInfo
|
|
|
- // { params }
|
|
|
+ this.userInfo,
|
|
|
+ { params }
|
|
|
)
|
|
|
.then(res => {
|
|
|
if (res.data) {
|