From e81c27ae4f00a107b1bf67062c9f008686a8e19f Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期六, 12 十月 2024 13:06:03 +0800 Subject: [PATCH] 数学 --- src/components/examinations/index.vue | 18 +++++++----------- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue index 48a8230..ded0303 100644 --- a/src/components/examinations/index.vue +++ b/src/components/examinations/index.vue @@ -1,6 +1,6 @@ <template> <div class="examination" v-loading="loading"> - <div v-for="(item, nindex) in cardData" :key="nindex" class="border-box" v-show="item.infoList.length"> + <div v-for="(item, nindex) in cardData" :key="nindex + 'item'" class="border-box" v-show="item.infoList.length"> <p class="catalogName" :style="{ color: primaryColor }"> <span v-if="nindex == 0">涓�銆�</span> <span v-if="nindex == 1">浜屻��</span> @@ -10,7 +10,7 @@ <span>{{ item.catalogName }}</span> </p> <ul> - <li v-for="(value, index) in item.infoList" :key="value.id" :id="'listItem-' + value.id"> + <li v-for="(value, index) in item.infoList" :key="index + 'value'" :id="'listItem-' + value.id"> <!-- 鏍囬 --> <div class="questionTitle"> <div class="titleContent"> @@ -40,7 +40,7 @@ </p> <!-- 濉┖棰橀骞� --> <p class="titleText" v-if="value.questionType == 'completion'"> - <span v-for="(itemText, indexText) in value.stem" :key="indexText"> + <span v-for="(itemText, indexText) in value.stem" :key="indexText + 'questionType'"> <span v-if="typeof itemText == 'string'" v-html="itemText"></span> <!-- --> <input v-else type="text" class="input" v-model.trim="value.userAnswer[itemText.num]" @@ -62,7 +62,7 @@ value.questionType == 'singleChoice' || value.questionType == 'judge' " v-model="value.userAnswer"> - <el-radio v-for="content in value.option" :key="content.value" :label="content.value" :class="value.optionStyle == 'Image' || + <el-radio v-for="(content,contentIndex) in value.option" :key="contentIndex + 'contentIndex'" :label="content.value" :class="value.optionStyle == 'Image' || value.optionStyle == 'TxtAndImage' || value.optionStyle == 'RichText' ? 'optionImg' @@ -73,8 +73,8 @@ </p> <p class="optionContent" v-else-if="value.optionStyle == 'Image'"> {{ content.value }}銆�<el-image :src="getPublicImage(content.img, 115)" v-show="content.img" - :preview-src-list="[getPublicImage(content.img)]" v-if="isReal"></el-image> - <img :src="content.img" alt="" v-if="!isReal" class="radio-img" /> + :preview-src-list="[getPublicImage(content.img)]" v-if="sourceType == 'bits'"></el-image> + <img :src="content.img" alt="" v-else class="radio-img" /> </p> <p class="optionContent" v-else-if="value.optionStyle == 'TxtAndImage'"> <span> {{ content.value }}銆�</span><span>{{ content.txt }}</span> @@ -88,7 +88,7 @@ <!-- 澶氶�� --> <el-checkbox-group :disabled="value.isComplete" v-model="value.userAnswer" class="option" v-else-if="value.questionType == 'multipleChoice'"> - <el-checkbox v-for="content in value.option" :key="content.value" :label="content.value" + <el-checkbox v-for="(content,contentCindex) in value.option" :key="contentCindex + 'contentCindex'" :label="content.value" :name="content.text" :class="value.optionStyle == 'Image' || value.optionStyle == 'TxtAndImage' || value.optionStyle == 'RichText' @@ -322,10 +322,6 @@ }, page: { type: Number, - }, - isReal: { - type: Boolean, - default: true, }, inputBc: { type: String, -- Gitblit v1.9.1