jichoi / lms_front star
PsHooN7979 2024-08-22
240822 박세훈 Dashboard 수정
@18340e0fb867decfdb9fe2e8fa1bc80a1d665769
client/views/pages/main/Chapter/Chapter3.vue
--- client/views/pages/main/Chapter/Chapter3.vue
+++ client/views/pages/main/Chapter/Chapter3.vue
@@ -87,6 +87,7 @@
         return {
             timer: "00",
             selectedButton: null, // 선택한 버튼
+            prblm_id: [],
         };
     },
     methods: {
@@ -117,17 +118,28 @@
         handleSubmit() {
             console.log("선택된 번호 : ", this.selectedButton);
         },
+        storeProblemId() {
+            this.prblm_id = this.$store.getters.getLearningId
+            console.log("prblm_id", this.prblm_id)
+        }
     },
     watch: {},
-    computed: {},
+    computed: {
+        // learningId() {
+        //     this.$store.getters.getLearningId
+        // },
+    },
     components: {},
-    mounted() {},
+    mounted() {
+        this.storeProblemId();
+    },
 };
 </script>
 <style scoped>
 .imgGroup {
     width: fit-content;
 }
+
 .imgGroup button {
     position: relative;
 }
@@ -166,11 +178,13 @@
     left: 50%;
     transform: translate(-50%, -50%);
 }
+
 .pickGroup article img {
     object-fit: contain;
     width: -webkit-fill-available;
 }
-.pickGroup article > div > p {
+
+.pickGroup article>div>p {
     font-size: 64px;
 }
 
client/views/pages/main/Dashboard.vue
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
@@ -41,8 +41,7 @@
                     </div>
                 </div>
                 <div class="lcon flex justify-between mb5">
-                    <div class="race-btn"
-                        @click="[goToPage('Chapter2_8'), storeLearningId(labeledItems[6].learning_id)]">
+                    <div class="race-btn" @click="[goToPage('Chapter3'), storeLearningId(labeledItems[6].learning_id)]">
                         <div class="rabbit-running"><img src="../../../resources/img/img09_s.png" alt=""
                                 :style="{ display: rabbitPos[7] ? 'block' : 'none' }"></div>
                         <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)"
@@ -697,16 +696,16 @@
             return this.roadmapData.map(item => {
                 if (item.wd_cnt_id !== null) {
                     wordCounter++;
-                    return { label: `단어장${wordCounter}`, learning_id: item.learning_id };
+                    return { label: `단어장${wordCounter}`, learning_id: item.wd_cnt_id };
                 } else if (item.text_id !== null) {
                     textCounter++;
-                    return { label: `지문${textCounter}`, learning_id: item.learning_id };
+                    return { label: `지문${textCounter}`, learning_id: item.text_id };
                 } else if (item.eval_id !== null) {
                     evalCounter++;
-                    return { label: evalCounter === 1 ? '중간평가' : '최종평가', learning_id: item.learning_id };
+                    return { label: evalCounter === 1 ? '중간평가' : '최종평가', learning_id: item.eval_id };
                 } else {
                     problemCounter++;
-                    return { label: `문제${problemCounter}`, learning_id: item.learning_id };
+                    return { label: `문제${problemCounter}`, learning_id: item.prblm_id };
                 }
             });
         }
Add a comment
List