|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="question-title">
|
|
<view class="question-title">
|
|
|
<view v-if="question.typeId && !isSubQuestion" class="question-type">
|
|
<view v-if="question.typeId && !isSubQuestion" class="question-type">
|
|
|
- <text>{{ questionTypeDesc[question.typeId as EnumQuestionType] }}</text>
|
|
|
|
|
|
|
+ <text>{{ question.typeTitle || questionTypeDesc[question.typeId as EnumQuestionType] }}</text>
|
|
|
<!-- 考试模式下显示分数 -->
|
|
<!-- 考试模式下显示分数 -->
|
|
|
<text v-if="showScore">({{ getScore }}分)</text>
|
|
<text v-if="showScore">({{ getScore }}分)</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -49,7 +49,7 @@ const getScore = computed(() => {
|
|
|
const getQuestionTitle = () => {
|
|
const getQuestionTitle = () => {
|
|
|
if (isSubQuestion.value) {
|
|
if (isSubQuestion.value) {
|
|
|
const prefix = questionTypeDesc[props.question.typeId as EnumQuestionType].slice(0, 2);
|
|
const prefix = questionTypeDesc[props.question.typeId as EnumQuestionType].slice(0, 2);
|
|
|
- return `[${prefix}]`;
|
|
|
|
|
|
|
+ return `[${props.question.typeTitle || prefix}]`;
|
|
|
}
|
|
}
|
|
|
return '';
|
|
return '';
|
|
|
};
|
|
};
|