11wqe1 3 months ago
parent
commit
60ee73babb
1 changed files with 9 additions and 9 deletions
  1. 9 9
      src/components/components/choseWorksDetailDialog.vue

+ 9 - 9
src/components/components/choseWorksDetailDialog.vue

@@ -74,14 +74,14 @@
                   <div
                     class="s_b_m_b_i_m_c_options"
                     v-for="(item2, index2) in item.checkList"
-                    
-                  >
-                  <!-- :class="{
+                    :class="{
                       s_b_m_b_i_m_c_o_right:
                           item.type == 1
-                          ? item.answer == index2
-                          : item.answer.includes(index2)
-                    }" -->
+                          ? testJson.anwer[index] == index2
+                          : testJson.anwer[index].includes(index2)
+                    }"
+                  >
+                  
                     <div class="s_b_m_b_i_m_c_o_btn">
                       <span
                         class="s_b_m_b_i_m_c_o_btn1"
@@ -151,7 +151,7 @@
 									<div class="sm_left">
 										<img :src="testData.selectJson.url" alt="" @click="$hevueImgPreview(testData.selectJson.url)">
 									</div>
-									<div class="sm_right" v-if="testJson && testJson[index]">
+									<div class="sm_right" v-if="testJson">
 										<div class="sm_right_item" v-for="(item,index) in testData.selectJson.answer">
 											<el-select v-model="testData.selectJson.answer[testJson[index]]" placeholder="请选择">
   			  							<el-option
@@ -190,9 +190,9 @@
 
 									<div class="si_box" v-if="testJson && testJson.chooseSenList && testJson.chooseSenList.length">
 										<!-- <span v-for="(item2,index2) in item.sentenceContent" :key="index2">{{ item2 }}</span> -->
-										<div class="si_b_top">
+										<!-- <div class="si_b_top">
 											<span class="si_b_t_item" v-for="(item2,index2) in item.addSentence" :key="index2">{{ item.rightAnswer[index2] }}</span>
-										</div>
+										</div> -->
                     <div class="si_b_bottom" >
 											<span class="si_b_t_item" v-for="(item2,index2) in testJson.chooseSenList" :key="index2">{{ item2 }}</span>
                       <!-- <div v-if="JSON.stringify(item.rightAnswer) == JSON.stringify(testJson.chooseSenList)" style="color: blue;display: inline;">回答正确</div>