Pārlūkot izejas kodu

完善详情弹框的细节

huangtao 3 gadi atpakaļ
vecāks
revīzija
133dc4f895

+ 6 - 3
src/components/common/QuestionDetailDialog.vue

@@ -10,7 +10,7 @@
     <div class="dialog-detail-row">
       <div class="dialog-detail-title">试题类别:</div>
       <div class="dialog-detail-content">
-        <span>{{ questionDetail.questionTypeTxt }}</span>
+        <span>{{ questionDetail.typeTxt }}</span>
       </div>
     </div>
     <!-- 内容 -->
@@ -40,12 +40,15 @@
     <div class="dialog-detail-row">
       <div class="dialog-detail-title">正确答案:</div>
       <div class="dialog-detail-content">
-        <span
+        <div
           class=""
           v-for="(item, index) in questionDetail.finalAnswer"
           :key="index"
+        >
+          <span v-if="questionDetail.type === 'TianKong'"
+            >{{ index + 1 }}. </span
           >{{ item }}
-        </span>
+        </div>
       </div>
     </div>
     <!-- 试题类型 -->

+ 0 - 1
src/views/answerManagement/answerManagementSpecial.vue

@@ -443,7 +443,6 @@ export default {
     },
     // 操作:详情
     toQuestionDetailFun(record) {
-      console.log('查看某个试题的详情', record);
       this.questionDetail = record;
       this.isVisible = true;
       // if (!record || !record.id) {

+ 0 - 1
src/views/examManagement/examAutomaticVolumeFormation.vue

@@ -765,7 +765,6 @@ export default {
     },
     // 操作:详情
     toQuestionDetailFun(record) {
-      console.log('查看某个试题的详情', record);
       this.questionDetail = record;
       this.isVisible = true;
       // if (!record || !record.id) {

+ 4 - 5
src/views/examManagement/examManagementDetail.vue

@@ -214,9 +214,9 @@ export default {
         },
         {
           title: '试题类别',
-          dataIndex: 'questionTypeTxt',
-          key: 'questionTypeTxt',
-          scopedSlots: { customRender: 'questionTypeTxt' },
+          dataIndex: 'typeTxt',
+          key: 'typeTxt',
+          scopedSlots: { customRender: 'typeTxt' },
           width: 150,
         },
         {
@@ -325,7 +325,7 @@ export default {
             // 试题类别
             EXAM_QUESTION_TYPE.forEach((it) => {
               if (item.type === it.code) {
-                item.questionTypeTxt = it.name;
+                item.typeTxt = it.name;
               }
             });
             // 工种
@@ -363,7 +363,6 @@ export default {
     },
     // 操作:详情
     toQuestionDetailFun(record) {
-      console.log('查看某个试题的详情', record);
       this.questionDetail = record;
       this.isVisible = true;
       // if (!record || !record.id) {

+ 0 - 1
src/views/examManagement/examManualVolumeFormation.vue

@@ -1110,7 +1110,6 @@ export default {
     // #endregion
     // 操作:详情
     toQuestionDetailFun(record) {
-      console.log('查看某个试题的详情', record);
       this.questionDetail = record;
       this.isVisible = true;
       // if (!record || !record.id) {