|
|
@@ -38,7 +38,6 @@
|
|
|
</div>
|
|
|
<v-progress-linear
|
|
|
:value="((currentQuestionIndex + 1) / objectiveQuestionNum) * 100"
|
|
|
- :buffer-value="100"
|
|
|
class="my-3"
|
|
|
></v-progress-linear>
|
|
|
<div class="d-flex justify-space-around">
|
|
|
@@ -60,11 +59,10 @@
|
|
|
</div>
|
|
|
<v-progress-linear
|
|
|
:value="
|
|
|
- (currentQuestionIndex -
|
|
|
- codeQuestionStartIndex / codeQuestionNum) *
|
|
|
+ ((currentQuestionIndex - codeQuestionStartIndex + 1) /
|
|
|
+ codeQuestionNum) *
|
|
|
100
|
|
|
"
|
|
|
- :buffer-value="100"
|
|
|
class="my-3"
|
|
|
></v-progress-linear>
|
|
|
<div
|
|
|
@@ -161,7 +159,9 @@
|
|
|
<v-card class="questionCard" v-else>
|
|
|
<div v-if="!fetchingStem">
|
|
|
<blank-pane
|
|
|
- v-if="questionType() === 'blank'"
|
|
|
+ v-if="
|
|
|
+ questionType() === 'blank' || questionType() === 'short_answer'
|
|
|
+ "
|
|
|
:question="currentQuestion"
|
|
|
@saveAnswer="saveObjectiveAnswer"
|
|
|
>
|
|
|
@@ -375,12 +375,13 @@ export default Vue.extend({
|
|
|
this.questionIds[this.currentQuestionIndex]
|
|
|
)
|
|
|
) {
|
|
|
- //TODO 提示未答题?
|
|
|
+ //TODO 是否需要提示未作答?
|
|
|
}
|
|
|
this.questionStartTime = dayjs().format(TIME_FORMAT)
|
|
|
|
|
|
this.currentQuestionIndex++
|
|
|
this.fetchQuestionStem(this.currentQuestionIndex)
|
|
|
+ this.$vuetify.goTo(0)
|
|
|
} else {
|
|
|
this.finished = true
|
|
|
}
|