|
@@ -15,7 +15,7 @@
|
|
|
<template v-if="!readonly">
|
|
<template v-if="!readonly">
|
|
|
<view v-if="!isOnlySubjective" class="question-option-index">{{ option.no }}</view>
|
|
<view v-if="!isOnlySubjective" class="question-option-index">{{ option.no }}</view>
|
|
|
<view v-else>
|
|
<view v-else>
|
|
|
- <uv-icon name="info-circle" :color="question.isNotKnow ? '#31A0FC' : '#999'" size="18" />
|
|
|
|
|
|
|
+ <uv-icon name="info-circle" :color="isSelected(option) ? '#31A0FC' : '#999'" size="18" />
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<view v-else>
|
|
<view v-else>
|
|
@@ -38,7 +38,7 @@
|
|
|
<view v-if="!readonly && isOnlySubjective" class="mt-40 bg-[#EBF9FF] p-12 rounded-8">
|
|
<view v-if="!readonly && isOnlySubjective" class="mt-40 bg-[#EBF9FF] p-12 rounded-8">
|
|
|
<view class="rounded-8 bg-white px-10 py-20 text-primary text-24 flex gap-x-6 items-center">
|
|
<view class="rounded-8 bg-white px-10 py-20 text-primary text-24 flex gap-x-6 items-center">
|
|
|
<uv-icon name="info-circle" color="#31A0FC" size="16" />
|
|
<uv-icon name="info-circle" color="#31A0FC" size="16" />
|
|
|
- <text>主观题请线下答题,查看解析对比后,选“会”或“不会”</text>
|
|
|
|
|
|
|
+ <text>请线下答题,查看解析对比后,选“会”或“不会”</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="mt-30 mb-20 text-24 text-white bg-primary w-fit mx-auto px-20 py-12 rounded-full text-center"
|
|
<view class="mt-30 mb-20 text-24 text-white bg-primary w-fit mx-auto px-20 py-12 rounded-full text-center"
|
|
|
@click="handleShowParse">
|
|
@click="handleShowParse">
|
|
@@ -125,7 +125,7 @@ const emit = defineEmits<{
|
|
|
(e: 'changeQuestion', question: Study.Question): void;
|
|
(e: 'changeQuestion', question: Study.Question): void;
|
|
|
}>();
|
|
}>();
|
|
|
const isOnlySubjective = computed(() => {
|
|
const isOnlySubjective = computed(() => {
|
|
|
- return props.question.typeId === EnumQuestionType.SUBJECTIVE;
|
|
|
|
|
|
|
+ return [EnumQuestionType.SUBJECTIVE, EnumQuestionType.SHORT_ANSWER, EnumQuestionType.ESSAY].includes(props.question.typeId);
|
|
|
});
|
|
});
|
|
|
const getStyleClass = (option: Study.QuestionOption) => {
|
|
const getStyleClass = (option: Study.QuestionOption) => {
|
|
|
if (!props.readonly) {
|
|
if (!props.readonly) {
|
|
@@ -218,6 +218,7 @@ const handleSelect = (option: Study.QuestionOption) => {
|
|
|
props.question.answers.push(option.no);
|
|
props.question.answers.push(option.no);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
props.question.isNotKnow = false;
|
|
props.question.isNotKnow = false;
|
|
|
checkIsDone();
|
|
checkIsDone();
|
|
|
|
|
|