|
@@ -23,40 +23,44 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
- <div>
|
|
|
|
- <template v-if="question.objective">
|
|
|
|
- <span class="tw-text-blue-600">考生答案:</span
|
|
|
|
- >{{ renderObjective(question.studentAnswer) }}
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <div class="tw-text-blue-600">
|
|
|
|
- 考生答案:(字数统计:{{
|
|
|
|
- getDomByRichTextJSON(question.studentAnswer)?.innerText
|
|
|
|
- .length ?? 0
|
|
|
|
- }})
|
|
|
|
- </div>
|
|
|
|
- <div
|
|
|
|
- v-html="getDomByRichTextJSON(question.studentAnswer)?.innerHTML"
|
|
|
|
- />
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <template v-if="question.objective">
|
|
|
|
- <span class="tw-text-blue-600">标准答案:</span
|
|
|
|
- >{{ renderObjective(question.standardAnswer) }}
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <div class="tw-text-blue-600">标准答案:</div>
|
|
|
|
- <div
|
|
|
|
- v-html="getDomByRichTextJSON(question.standardAnswer)?.innerHTML"
|
|
|
|
- />
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- <div v-if="showScore(question)" style="color: blue">
|
|
|
|
- 得分 / 总分 :{{
|
|
|
|
- (question.score ?? "-") + " / " + question.totalScore
|
|
|
|
- }}
|
|
|
|
- </div>
|
|
|
|
|
|
+ <template v-if="!question.hideAnswer">
|
|
|
|
+ <div>
|
|
|
|
+ <template v-if="question.objective">
|
|
|
|
+ <span class="tw-text-blue-600">考生答案:</span
|
|
|
|
+ >{{ renderObjective(question.studentAnswer) }}
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <div class="tw-text-blue-600">
|
|
|
|
+ 考生答案:(字数统计:{{
|
|
|
|
+ getDomByRichTextJSON(question.studentAnswer)?.innerText
|
|
|
|
+ .length ?? 0
|
|
|
|
+ }})
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ v-html="getDomByRichTextJSON(question.studentAnswer)?.innerHTML"
|
|
|
|
+ />
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ <template v-if="question.objective">
|
|
|
|
+ <span class="tw-text-blue-600">标准答案:</span
|
|
|
|
+ >{{ renderObjective(question.standardAnswer) }}
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <div class="tw-text-blue-600">标准答案:</div>
|
|
|
|
+ <div
|
|
|
|
+ v-html="
|
|
|
|
+ getDomByRichTextJSON(question.standardAnswer)?.innerHTML
|
|
|
|
+ "
|
|
|
|
+ />
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="showScore(question)" style="color: blue">
|
|
|
|
+ 得分 / 总分 :{{
|
|
|
|
+ (question.score ?? "-") + " / " + question.totalScore
|
|
|
|
+ }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
<div style="margin-bottom: 20px"></div>
|
|
<div style="margin-bottom: 20px"></div>
|
|
</div>
|
|
</div>
|
|
@@ -136,6 +140,7 @@ watch(
|
|
body: questionBody.body,
|
|
body: questionBody.body,
|
|
options: questionBody.options,
|
|
options: questionBody.options,
|
|
objective: questionBody.objective,
|
|
objective: questionBody.objective,
|
|
|
|
+ hideAnswer: questionBody.hideAnswer,
|
|
standardAnswer: questionBody.answer,
|
|
standardAnswer: questionBody.answer,
|
|
studentAnswer: stuAns.answer,
|
|
studentAnswer: stuAns.answer,
|
|
score: taskQuestion?.score ?? null,
|
|
score: taskQuestion?.score ?? null,
|
|
@@ -171,6 +176,7 @@ watch(
|
|
options: questionBody.options,
|
|
options: questionBody.options,
|
|
objective: questionBody.objective,
|
|
objective: questionBody.objective,
|
|
standardAnswer: questionBody.answer,
|
|
standardAnswer: questionBody.answer,
|
|
|
|
+ hideAnswer: questionBody.hideAnswer,
|
|
studentAnswer: stuAns.answer,
|
|
studentAnswer: stuAns.answer,
|
|
score: taskQuestion.score,
|
|
score: taskQuestion.score,
|
|
totalScore: taskQuestion.maxScore,
|
|
totalScore: taskQuestion.maxScore,
|