🐜 教育培训-平台资源库-试卷管理-调整题目

pull/1/head
duhang 2024-01-10 09:12:29 +08:00
parent eb5cd17c49
commit dccf6f8d49
1 changed files with 41 additions and 50 deletions

View File

@ -36,67 +36,58 @@
{{ data.paperInfo.PANDUITINUMBER }}
</el-descriptions-item>
</el-descriptions>
<div class="study-papg">
<dl v-for="(row, i) in data.questionList" :key="row.QUESTION_ID">
<dt>
{{ i + 1 }}.<span v-if="row.QUESTIONTYPE === '1'" class="mark"
>(单选题)</span
<template v-for="(row, index) in data.questionList" :key="row.QUESTION_ID">
<div>
<el-row>
<el-col :span="24">
{{ index + 1 }}.
<el-text v-if="row.QUESTIONTYPE === '1'" type="info">
(单选题)
</el-text>
<el-text v-if="row.QUESTIONTYPE === '2'" type="info">
(多选题)
</el-text>
<el-text v-if="row.QUESTIONTYPE === '3'" type="info">
(判断题)
</el-text>
{{ row.QUESTIONDRY }}
</el-col>
</el-row>
<el-space wrap>
<el-radio-group
v-if="row.QUESTIONTYPE === '1'"
:disabled="true"
v-model="row.ANSWER"
>
<span v-if="row.QUESTIONTYPE === '2'" class="mark">()</span>
<span v-if="row.QUESTIONTYPE === '3'" class="mark">()</span>
{{ row.QUESTIONDRY }}
</dt>
<el-radio-group
v-if="row.QUESTIONTYPE === '1'"
:disabled="true"
v-model="row.ANSWER"
>
<dd>
<el-radio label="A">A.{{ row.OPTIONA }}</el-radio>
</dd>
<dd>
<el-radio label="B">B.{{ row.OPTIONB }}</el-radio>
</dd>
<dd>
<el-radio label="C">C.{{ row.OPTIONC }}</el-radio>
</dd>
<dd>
<el-radio label="D">D.{{ row.OPTIOND }}</el-radio>
</dd>
</el-radio-group>
<el-checkbox-group
v-if="row.QUESTIONTYPE === '2'"
:disabled="true"
v-model="row.checkList"
>
<dd>
</el-radio-group>
<el-checkbox-group
v-if="row.QUESTIONTYPE === '2'"
:disabled="true"
:model-value="row.ANSWER.split('')"
>
<el-checkbox label="A">A.{{ row.OPTIONA }}</el-checkbox>
</dd>
<dd>
<el-checkbox label="B">B.{{ row.OPTIONB }}</el-checkbox>
</dd>
<dd>
<el-checkbox label="C">C.{{ row.OPTIONC }}</el-checkbox>
</dd>
<dd>
<el-checkbox label="D">D.{{ row.OPTIOND }}</el-checkbox>
</dd>
</el-checkbox-group>
<el-radio-group
v-if="row.QUESTIONTYPE === '3'"
:disabled="true"
v-model="row.ANSWER"
>
<dd>
</el-checkbox-group>
<el-radio-group
v-if="row.QUESTIONTYPE === '3'"
:disabled="true"
v-model="row.ANSWER"
>
<el-radio label="A">A.{{ row.OPTIONA }}</el-radio>
</dd>
<dd>
<el-radio label="B">B.{{ row.OPTIONB }}</el-radio>
</dd>
</el-radio-group>
<div class="proper">答案{{ row.ANSWER }}</div>
</dl>
</div>
</el-radio-group>
</el-space>
<div>答案{{ row.ANSWER }}</div>
</div>
</template>
</layout-card>
</template>