jichoi / lms_front star
woals 2024-08-14
240814 권민수 오답노트 목록 페이지 디테일 수정
@3ea873110a4cbb74a345acf0d8ff606a91c76288
client/views/pages/main/PreviewNote.vue
--- client/views/pages/main/PreviewNote.vue
+++ client/views/pages/main/PreviewNote.vue
@@ -6,7 +6,7 @@
                     <p class="title">단원</p>
                     <div class="row-bd"></div>
                     <div>
-                        <p class="title mr40 mb10">{{ unitData.unit_nm }}</p>
+                        <p class="title mr40 mb10">{{ unitData.unit_nm || '(단원 이름 데이터 없음)' }}</p>
                         <p class="subtitle">my name is dd</p>
                     </div>
                 </div>
@@ -29,8 +29,8 @@
                     <tr v-for="note in wrongAnswerNotes" :key="note.prblmLogId">
                         <td><img src="../../../resources/img/img214_19s.png" alt=""></td>
                         <td class="text-lf">
-                            <p class="title1">{{ note.evalType }}</p>
-                            <p class="title2">{{ note.prblmExpln }}</p>
+                            <p class="title1">{{ note.evalType || '(평가 유형 데이터 없음)' }}</p>
+                            <p class="title2">{{ note.prblmExpln || '(기본 문제 설명 데이터 없음)' }}</p>
                         </td>
                         <td>
                             <button type="button" title="" class="new-btn" @click="viewDetail(note)">
@@ -39,11 +39,11 @@
                         </td>
                     </tr>
                 </table>
-                <div class="flex justify-end">
+                <!-- <div class="flex justify-end">
                     <button type="button" title="선택하기" class="yellow-btn mt30">
                         선택하기
                     </button>
-                </div>
+                </div> -->
             </div>
         </div>
     </div>
@@ -118,6 +118,8 @@
                 this.problemType = "Chapter3_2";
             } else if (item.prblmTypeId === "14") {
                 this.problemType = "Chapter3_12";
+            } else {
+                this.problemType = "Chapter3";
             }
         },
 
Add a comment
List