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

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 }} {{ data.paperInfo.PANDUITINUMBER }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<div class="study-papg">
<dl v-for="(row, i) in data.questionList" :key="row.QUESTION_ID"> <template v-for="(row, index) in data.questionList" :key="row.QUESTION_ID">
<dt> <div>
{{ i + 1 }}.<span v-if="row.QUESTIONTYPE === '1'" class="mark" <el-row>
>(单选题)</span <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> <el-radio label="A">A.{{ row.OPTIONA }}</el-radio>
</dd>
<dd>
<el-radio label="B">B.{{ row.OPTIONB }}</el-radio> <el-radio label="B">B.{{ row.OPTIONB }}</el-radio>
</dd>
<dd>
<el-radio label="C">C.{{ row.OPTIONC }}</el-radio> <el-radio label="C">C.{{ row.OPTIONC }}</el-radio>
</dd>
<dd>
<el-radio label="D">D.{{ row.OPTIOND }}</el-radio> <el-radio label="D">D.{{ row.OPTIOND }}</el-radio>
</dd> </el-radio-group>
</el-radio-group> <el-checkbox-group
<el-checkbox-group v-if="row.QUESTIONTYPE === '2'"
v-if="row.QUESTIONTYPE === '2'" :disabled="true"
:disabled="true" :model-value="row.ANSWER.split('')"
v-model="row.checkList" >
>
<dd>
<el-checkbox label="A">A.{{ row.OPTIONA }}</el-checkbox> <el-checkbox label="A">A.{{ row.OPTIONA }}</el-checkbox>
</dd>
<dd>
<el-checkbox label="B">B.{{ row.OPTIONB }}</el-checkbox> <el-checkbox label="B">B.{{ row.OPTIONB }}</el-checkbox>
</dd>
<dd>
<el-checkbox label="C">C.{{ row.OPTIONC }}</el-checkbox> <el-checkbox label="C">C.{{ row.OPTIONC }}</el-checkbox>
</dd>
<dd>
<el-checkbox label="D">D.{{ row.OPTIOND }}</el-checkbox> <el-checkbox label="D">D.{{ row.OPTIOND }}</el-checkbox>
</dd> </el-checkbox-group>
</el-checkbox-group> <el-radio-group
<el-radio-group v-if="row.QUESTIONTYPE === '3'"
v-if="row.QUESTIONTYPE === '3'" :disabled="true"
:disabled="true" v-model="row.ANSWER"
v-model="row.ANSWER" >
>
<dd>
<el-radio label="A">A.{{ row.OPTIONA }}</el-radio> <el-radio label="A">A.{{ row.OPTIONA }}</el-radio>
</dd>
<dd>
<el-radio label="B">B.{{ row.OPTIONB }}</el-radio> <el-radio label="B">B.{{ row.OPTIONB }}</el-radio>
</dd> </el-radio-group>
</el-radio-group> </el-space>
<div class="proper">答案{{ row.ANSWER }}</div> <div>答案{{ row.ANSWER }}</div>
</dl> </div>
</div> </template>
</layout-card> </layout-card>
</template> </template>