|
|
@@ -7,7 +7,7 @@
|
|
|
<div class="q-title" v-html="question.title" />
|
|
|
<div class="q-content">
|
|
|
<a-radio-group v-model:value="answer.content">
|
|
|
- <a-radio v-for="item in question.items" :key="item.prefix" :value="item.prefix">
|
|
|
+ <a-radio v-for="item in question.items" :key="item.prefix" :value="item.prefix" :class="askType==1?'read-only':''">
|
|
|
<span class="question-prefix">{{ item.prefix }}.</span>
|
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
|
<span v-html="item.content" class="q-item-span-content"></span>
|
|
|
@@ -20,7 +20,7 @@
|
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
|
<div class="q-title" v-html="question.title" />
|
|
|
<div class="q-content">
|
|
|
- <a-checkbox-group v-model:value="answer.contentArray">
|
|
|
+ <a-checkbox-group v-model:value="answer.contentArray" :class="askType==1?'read-only':''">
|
|
|
<a-checkbox v-for="item in question.items" :key="item.prefix" :value="item.prefix">
|
|
|
<span class="question-prefix">{{ item.prefix }}.</span>
|
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
|
@@ -34,7 +34,7 @@
|
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
|
<div class="q-title" v-html="question.title" style="display: inline; margin-right: 10px" />
|
|
|
<span style="padding-right: 10px">(</span>
|
|
|
- <a-radio-group v-model:value="answer.content">
|
|
|
+ <a-radio-group v-model:value="answer.content" :class="askType==1?'read-only':''">
|
|
|
<a-radio v-for="item in question.items" :key="item.prefix" :value="item.prefix">
|
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
|
<span v-html="item.content" class="q-item-span-content"></span>
|
|
|
@@ -54,7 +54,7 @@
|
|
|
:key="item.prefix"
|
|
|
style="margin-top: 10px; margin-bottom: 10px"
|
|
|
>
|
|
|
- <a-input v-model:value="answer.contentArray[item.prefix - 1]" />
|
|
|
+ <a-input :class="askType==1?'read-only':''" v-model:value="answer.contentArray[item.prefix - 1]" />
|
|
|
</a-form-item>
|
|
|
</a-form>
|
|
|
</div>
|
|
|
@@ -64,7 +64,7 @@
|
|
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
|
<div class="q-title" v-html="question.title" />
|
|
|
<div>
|
|
|
- <a-textarea v-model:value="answer.content" :rows="5" />
|
|
|
+ <a-textarea :class="askType==1?'read-only':''" v-model:value="answer.content" :rows="5" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 结果、分数、难度、解析、正确答案 -->
|
|
|
@@ -74,10 +74,10 @@
|
|
|
{{ doRightTextFormatter(answer.doRight) }}
|
|
|
</a-tag>
|
|
|
</div>
|
|
|
- <!-- <div class="question-answer-show-item">
|
|
|
+ <div class="question-answer-show-item">
|
|
|
<span class="question-show-item">分数:</span>
|
|
|
<span>{{ question.score }}</span>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<div class="question-answer-show-item">
|
|
|
<span class="question-show-item">难度:</span>
|
|
|
<a-rate :value="question.difficult" disabled class="question-show-item" />
|
|
|
@@ -121,13 +121,17 @@
|
|
|
type: Number,
|
|
|
default: 0
|
|
|
},
|
|
|
- paperType:{
|
|
|
- type:String,
|
|
|
- default:''
|
|
|
+ paperType: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
+ askType:{
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- const { question, answer, qLoading, qType, paperType } = toRefs(props)
|
|
|
+ const { question, answer, qLoading, qType, paperType, askType } = toRefs(props)
|
|
|
const examStore = useExamStore()
|
|
|
|
|
|
const doRightEnum = computed(() => examStore.exam.question.answer.doRightEnum)
|
|
|
@@ -174,4 +178,7 @@
|
|
|
display: inline-block;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
+ .read-only {
|
|
|
+ pointer-events: none;
|
|
|
+ }
|
|
|
</style>
|