|
@@ -60,7 +60,9 @@
|
|
v-if="
|
|
v-if="
|
|
examQuestionList.length &&
|
|
examQuestionList.length &&
|
|
(examQuestionList[answerIndex].type ===
|
|
(examQuestionList[answerIndex].type ===
|
|
- questionType.singleChoice ||
|
|
|
|
|
|
+ questionType.TrueOrFalse ||
|
|
|
|
+ examQuestionList[answerIndex].type ===
|
|
|
|
+ questionType.singleChoice ||
|
|
examQuestionList[answerIndex].type ===
|
|
examQuestionList[answerIndex].type ===
|
|
questionType.multipleChoice)
|
|
questionType.multipleChoice)
|
|
"
|
|
"
|
|
@@ -141,7 +143,8 @@ export default {
|
|
questionType: {
|
|
questionType: {
|
|
singleChoice: "DanXuan", // 单选题
|
|
singleChoice: "DanXuan", // 单选题
|
|
multipleChoice: "DuoXuan", // 多选题
|
|
multipleChoice: "DuoXuan", // 多选题
|
|
- gapFilling: "TianKong" // 填空题
|
|
|
|
|
|
+ gapFilling: "TianKong", // 填空题
|
|
|
|
+ TrueOrFalse: "PanDuanTi" // 判断题
|
|
}, // 试题类型
|
|
}, // 试题类型
|
|
examEndTimeSeconds: null, // 考试结束时的毫秒秒数
|
|
examEndTimeSeconds: null, // 考试结束时的毫秒秒数
|
|
examBeforeHalfEndTimeSeconds: null, // 开始考试一半时间的毫秒秒数
|
|
examBeforeHalfEndTimeSeconds: null, // 开始考试一半时间的毫秒秒数
|
|
@@ -388,6 +391,10 @@ export default {
|
|
questionContent = content.replace("$PH$", "()");
|
|
questionContent = content.replace("$PH$", "()");
|
|
console.log(questionContent, questionInputNum);
|
|
console.log(questionContent, questionInputNum);
|
|
break;
|
|
break;
|
|
|
|
+ case this.questionType.TrueOrFalse:
|
|
|
|
+ console.log("判断题");
|
|
|
|
+ typeTxt = "判断题";
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
@@ -430,7 +437,8 @@ export default {
|
|
handleExamQuestionOptionsItemFun(value, index) {
|
|
handleExamQuestionOptionsItemFun(value, index) {
|
|
let answerQuestionType = this.examQuestionList[this.answerIndex].type;
|
|
let answerQuestionType = this.examQuestionList[this.answerIndex].type;
|
|
switch (answerQuestionType) {
|
|
switch (answerQuestionType) {
|
|
- // 单选题
|
|
|
|
|
|
+ // 判断题、单选题
|
|
|
|
+ case this.questionType.TrueOrFalse:
|
|
case this.questionType.singleChoice:
|
|
case this.questionType.singleChoice:
|
|
this.answerValue = [value];
|
|
this.answerValue = [value];
|
|
break;
|
|
break;
|