

240823 박세훈 Chapter3 문제들 수정 및 오답노트 로드맵 연결
@bada2619594055d4a03930f56969d26476d49435
--- client/views/pages/main/Chapter/Chapter3.vue
+++ client/views/pages/main/Chapter/Chapter3.vue
... | ... | @@ -55,7 +55,8 @@ |
55 | 55 |
</article> |
56 | 56 |
</div> |
57 | 57 |
</div> |
58 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
58 |
+ <button class="submit-button" @click="handleSubmit()" |
|
59 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
59 | 60 |
</div> |
60 | 61 |
<div class="next-btn" @click="nextProblem()"> |
61 | 62 |
<img src="../../../../resources/img/right.png" alt="" /> |
... | ... | @@ -76,6 +77,8 @@ |
76 | 77 |
unit_id: null, |
77 | 78 |
dataList: [], |
78 | 79 |
problemDetail: [], |
80 |
+ currentIndex: null, |
|
81 |
+ learningIdsLength: null, |
|
79 | 82 |
}; |
80 | 83 |
}, |
81 | 84 |
methods: { |
--- client/views/pages/main/Chapter/Chapter3_1.vue
+++ client/views/pages/main/Chapter/Chapter3_1.vue
... | ... | @@ -47,7 +47,8 @@ |
47 | 47 |
</div> |
48 | 48 |
</div> |
49 | 49 |
</div> |
50 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
50 |
+ <button class="submit-button" @click="handleSubmit()" |
|
51 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
51 | 52 |
</div> |
52 | 53 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
53 | 54 |
</div> |
... | ... | @@ -67,6 +68,8 @@ |
67 | 68 |
selectedbuttonImg: "client/resources/img/img137_71s.png", |
68 | 69 |
dataList: [], |
69 | 70 |
problemDetail: [], |
71 |
+ currentIndex: null, |
|
72 |
+ learningIdsLength: null, |
|
70 | 73 |
}; |
71 | 74 |
}, |
72 | 75 |
methods: { |
... | ... | @@ -213,6 +216,8 @@ |
213 | 216 |
console.log('Current Learning ID:', this.currentLearningId); |
214 | 217 |
console.log('Current Label:', this.currentLabel); |
215 | 218 |
console.log('Current Problem Index:', this.currentProblemIndex); |
219 |
+ this.currentIndex = this.currentProblemIndex; |
|
220 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
216 | 221 |
|
217 | 222 |
// Fetch or process the current problem based on `currentLearningId` |
218 | 223 |
}, |
--- client/views/pages/main/Chapter/Chapter3_10.vue
+++ client/views/pages/main/Chapter/Chapter3_10.vue
... | ... | @@ -41,7 +41,8 @@ |
41 | 41 |
</div> |
42 | 42 |
</div> |
43 | 43 |
</div> |
44 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
44 |
+ <button class="submit-button" @click="handleSubmit()" |
|
45 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
45 | 46 |
</div> |
46 | 47 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
47 | 48 |
</div> |
... | ... | @@ -59,6 +60,8 @@ |
59 | 60 |
answer: null, |
60 | 61 |
dataList: [], |
61 | 62 |
problemDetail: [], |
63 |
+ currentIndex: null, |
|
64 |
+ learningIdsLength: null, |
|
62 | 65 |
}; |
63 | 66 |
}, |
64 | 67 |
methods: { |
... | ... | @@ -205,6 +208,8 @@ |
205 | 208 |
console.log('Current Learning ID:', this.currentLearningId); |
206 | 209 |
console.log('Current Label:', this.currentLabel); |
207 | 210 |
console.log('Current Problem Index:', this.currentProblemIndex); |
211 |
+ this.currentIndex = this.currentProblemIndex; |
|
212 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
208 | 213 |
|
209 | 214 |
// Fetch or process the current problem based on `currentLearningId` |
210 | 215 |
}, |
--- client/views/pages/main/Chapter/Chapter3_11.vue
+++ client/views/pages/main/Chapter/Chapter3_11.vue
... | ... | @@ -42,7 +42,8 @@ |
42 | 42 |
</div> |
43 | 43 |
</div> |
44 | 44 |
</div> |
45 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
45 |
+ <button class="submit-button" @click="handleSubmit()" |
|
46 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
46 | 47 |
</div> |
47 | 48 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
48 | 49 |
</div> |
... | ... | @@ -61,6 +62,8 @@ |
61 | 62 |
text: "e", |
62 | 63 |
dataList: [], |
63 | 64 |
problemDetail: [], |
65 |
+ currentIndex: null, |
|
66 |
+ learningIdsLength: null, |
|
64 | 67 |
}; |
65 | 68 |
}, |
66 | 69 |
methods: { |
... | ... | @@ -204,6 +207,8 @@ |
204 | 207 |
console.log('Current Learning ID:', this.currentLearningId); |
205 | 208 |
console.log('Current Label:', this.currentLabel); |
206 | 209 |
console.log('Current Problem Index:', this.currentProblemIndex); |
210 |
+ this.currentIndex = this.currentProblemIndex; |
|
211 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
207 | 212 |
|
208 | 213 |
// Fetch or process the current problem based on `currentLearningId` |
209 | 214 |
}, |
--- client/views/pages/main/Chapter/Chapter3_12.vue
+++ client/views/pages/main/Chapter/Chapter3_12.vue
... | ... | @@ -55,7 +55,8 @@ |
55 | 55 |
</div> |
56 | 56 |
</div> |
57 | 57 |
</div> |
58 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
58 |
+ <button class="submit-button" @click="handleSubmit()" |
|
59 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
59 | 60 |
</div> |
60 | 61 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
61 | 62 |
</div> |
... | ... | @@ -78,6 +79,8 @@ |
78 | 79 |
draggedCharIndex: null, // 드래그한 문자의 인덱스 저장 |
79 | 80 |
dataList: [], |
80 | 81 |
problemDetail: [], |
82 |
+ currentIndex: null, |
|
83 |
+ learningIdsLength: null, |
|
81 | 84 |
}; |
82 | 85 |
}, |
83 | 86 |
methods: { |
... | ... | @@ -238,6 +241,8 @@ |
238 | 241 |
console.log('Current Learning ID:', this.currentLearningId); |
239 | 242 |
console.log('Current Label:', this.currentLabel); |
240 | 243 |
console.log('Current Problem Index:', this.currentProblemIndex); |
244 |
+ this.currentIndex = this.currentProblemIndex; |
|
245 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
241 | 246 |
|
242 | 247 |
// Fetch or process the current problem based on `currentLearningId` |
243 | 248 |
}, |
--- client/views/pages/main/Chapter/Chapter3_13.vue
+++ client/views/pages/main/Chapter/Chapter3_13.vue
... | ... | @@ -63,7 +63,8 @@ |
63 | 63 |
</div> |
64 | 64 |
</div> |
65 | 65 |
</div> |
66 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
66 |
+ <button class="submit-button" @click="handleSubmit()" |
|
67 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
67 | 68 |
</div> |
68 | 69 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
69 | 70 |
</div> |
... | ... | @@ -92,6 +93,8 @@ |
92 | 93 |
svgHeight: "100%", // SVG의 높이 |
93 | 94 |
dataList: [], |
94 | 95 |
problemDetail: [], |
96 |
+ currentIndex: null, |
|
97 |
+ learningIdsLength: null, |
|
95 | 98 |
}; |
96 | 99 |
}, |
97 | 100 |
methods: { |
... | ... | @@ -274,6 +277,8 @@ |
274 | 277 |
console.log('Current Learning ID:', this.currentLearningId); |
275 | 278 |
console.log('Current Label:', this.currentLabel); |
276 | 279 |
console.log('Current Problem Index:', this.currentProblemIndex); |
280 |
+ this.currentIndex = this.currentProblemIndex; |
|
281 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
277 | 282 |
|
278 | 283 |
// Fetch or process the current problem based on `currentLearningId` |
279 | 284 |
}, |
--- client/views/pages/main/Chapter/Chapter3_14.vue
+++ client/views/pages/main/Chapter/Chapter3_14.vue
... | ... | @@ -40,7 +40,8 @@ |
40 | 40 |
</div> |
41 | 41 |
</div> |
42 | 42 |
</div> |
43 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
43 |
+ <button class="submit-button" @click="handleSubmit()" |
|
44 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
44 | 45 |
</div> |
45 | 46 |
<div class="next-btn" @click="nextProblem(answer)"><img src="../../../../resources/img/right.png" alt="" /> |
46 | 47 |
</div> |
... | ... | @@ -57,6 +58,8 @@ |
57 | 58 |
answer: null, |
58 | 59 |
dataList: [], |
59 | 60 |
problemDetail: [], |
61 |
+ currentIndex: null, |
|
62 |
+ learningIdsLength: null, |
|
60 | 63 |
}; |
61 | 64 |
}, |
62 | 65 |
methods: { |
... | ... | @@ -194,6 +197,8 @@ |
194 | 197 |
console.log('Current Learning ID:', this.currentLearningId); |
195 | 198 |
console.log('Current Label:', this.currentLabel); |
196 | 199 |
console.log('Current Problem Index:', this.currentProblemIndex); |
200 |
+ this.currentIndex = this.currentProblemIndex; |
|
201 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
197 | 202 |
|
198 | 203 |
// Fetch or process the current problem based on `currentLearningId` |
199 | 204 |
}, |
--- client/views/pages/main/Chapter/Chapter3_15.vue
+++ client/views/pages/main/Chapter/Chapter3_15.vue
... | ... | @@ -38,7 +38,8 @@ |
38 | 38 |
</div> |
39 | 39 |
</div> |
40 | 40 |
|
41 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
41 |
+ <button class="submit-button" @click="handleSubmit()" |
|
42 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
42 | 43 |
</div> |
43 | 44 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /></div> |
44 | 45 |
</div> |
... | ... | @@ -53,6 +54,8 @@ |
53 | 54 |
timer: "00", |
54 | 55 |
dataList: [], |
55 | 56 |
problemDetail: [], |
57 |
+ currentIndex: null, |
|
58 |
+ learningIdsLength: null, |
|
56 | 59 |
}; |
57 | 60 |
}, |
58 | 61 |
methods: { |
... | ... | @@ -190,6 +193,8 @@ |
190 | 193 |
console.log('Current Learning ID:', this.currentLearningId); |
191 | 194 |
console.log('Current Label:', this.currentLabel); |
192 | 195 |
console.log('Current Problem Index:', this.currentProblemIndex); |
196 |
+ this.currentIndex = this.currentProblemIndex; |
|
197 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
193 | 198 |
|
194 | 199 |
// Fetch or process the current problem based on `currentLearningId` |
195 | 200 |
}, |
--- client/views/pages/main/Chapter/Chapter3_2.vue
+++ client/views/pages/main/Chapter/Chapter3_2.vue
... | ... | @@ -57,7 +57,8 @@ |
57 | 57 |
<p>bed</p> |
58 | 58 |
</div> |
59 | 59 |
</div> |
60 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
60 |
+ <button class="submit-button" @click="handleSubmit()" |
|
61 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
61 | 62 |
</div> |
62 | 63 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /></div> |
63 | 64 |
</div> |
... | ... | @@ -73,6 +74,8 @@ |
73 | 74 |
selectedButton: null, |
74 | 75 |
dataList: [], |
75 | 76 |
problemDetail: [], |
77 |
+ currentIndex: null, |
|
78 |
+ learningIdsLength: null, |
|
76 | 79 |
}; |
77 | 80 |
}, |
78 | 81 |
methods: { |
... | ... | @@ -220,6 +223,8 @@ |
220 | 223 |
console.log('Current Learning ID:', this.currentLearningId); |
221 | 224 |
console.log('Current Label:', this.currentLabel); |
222 | 225 |
console.log('Current Problem Index:', this.currentProblemIndex); |
226 |
+ this.currentIndex = this.currentProblemIndex; |
|
227 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
223 | 228 |
|
224 | 229 |
// Fetch or process the current problem based on `currentLearningId` |
225 | 230 |
}, |
--- client/views/pages/main/Chapter/Chapter3_3.vue
+++ client/views/pages/main/Chapter/Chapter3_3.vue
... | ... | @@ -43,7 +43,8 @@ |
43 | 43 |
</article> |
44 | 44 |
</div> |
45 | 45 |
</div> |
46 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
46 |
+ <button class="submit-button" @click="handleSubmit()" |
|
47 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
47 | 48 |
</div> |
48 | 49 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
49 | 50 |
</div> |
... | ... | @@ -60,6 +61,8 @@ |
60 | 61 |
timer: "00", |
61 | 62 |
prblmId: "", |
62 | 63 |
problemDetail: [], |
64 |
+ currentIndex: null, |
|
65 |
+ learningIdsLength: null, |
|
63 | 66 |
dataList: [], |
64 | 67 |
prblmExpln: null, |
65 | 68 |
unitData: {}, // 단원 정보 데이터 |
... | ... | @@ -209,6 +212,8 @@ |
209 | 212 |
console.log('Current Learning ID:', this.currentLearningId); |
210 | 213 |
console.log('Current Label:', this.currentLabel); |
211 | 214 |
console.log('Current Problem Index:', this.currentProblemIndex); |
215 |
+ this.currentIndex = this.currentProblemIndex; |
|
216 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
212 | 217 |
|
213 | 218 |
// Fetch or process the current problem based on `currentLearningId` |
214 | 219 |
}, |
--- client/views/pages/main/Chapter/Chapter3_3_1.vue
+++ client/views/pages/main/Chapter/Chapter3_3_1.vue
... | ... | @@ -64,7 +64,8 @@ |
64 | 64 |
</article> |
65 | 65 |
</div> |
66 | 66 |
</div> |
67 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
67 |
+ <button class="submit-button" @click="handleSubmit()" |
|
68 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
68 | 69 |
</div> |
69 | 70 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
70 | 71 |
</div> |
... | ... | @@ -82,6 +83,8 @@ |
82 | 83 |
selectedButton: null, |
83 | 84 |
dataList: [], |
84 | 85 |
problemDetail: [], |
86 |
+ currentIndex: null, |
|
87 |
+ learningIdsLength: null, |
|
85 | 88 |
}; |
86 | 89 |
}, |
87 | 90 |
methods: { |
... | ... | @@ -226,6 +229,8 @@ |
226 | 229 |
console.log('Current Learning ID:', this.currentLearningId); |
227 | 230 |
console.log('Current Label:', this.currentLabel); |
228 | 231 |
console.log('Current Problem Index:', this.currentProblemIndex); |
232 |
+ this.currentIndex = this.currentProblemIndex; |
|
233 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
229 | 234 |
|
230 | 235 |
// Fetch or process the current problem based on `currentLearningId` |
231 | 236 |
}, |
--- client/views/pages/main/Chapter/Chapter3_4.vue
+++ client/views/pages/main/Chapter/Chapter3_4.vue
... | ... | @@ -55,7 +55,8 @@ |
55 | 55 |
</article> |
56 | 56 |
</div> |
57 | 57 |
</div> |
58 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
58 |
+ <button class="submit-button" @click="handleSubmit()" |
|
59 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
59 | 60 |
</div> |
60 | 61 |
<div class="next-btn" @click="nextProblem()"> |
61 | 62 |
<img src="../../../../resources/img/right.png" alt="" /> |
... | ... | @@ -72,6 +73,8 @@ |
72 | 73 |
timer: "00", |
73 | 74 |
prblmId: "101", |
74 | 75 |
problemDetail: [], |
76 |
+ currentIndex: null, |
|
77 |
+ learningIdsLength: null, |
|
75 | 78 |
dataList: [], |
76 | 79 |
prblmExpln: null, |
77 | 80 |
accessTime: null, |
... | ... | @@ -224,6 +227,8 @@ |
224 | 227 |
console.log('Current Learning ID:', this.currentLearningId); |
225 | 228 |
console.log('Current Label:', this.currentLabel); |
226 | 229 |
console.log('Current Problem Index:', this.currentProblemIndex); |
230 |
+ this.currentIndex = this.currentProblemIndex; |
|
231 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
227 | 232 |
|
228 | 233 |
// Fetch or process the current problem based on `currentLearningId` |
229 | 234 |
}, |
--- client/views/pages/main/Chapter/Chapter3_5.vue
+++ client/views/pages/main/Chapter/Chapter3_5.vue
... | ... | @@ -64,7 +64,8 @@ |
64 | 64 |
<p>bed</p> |
65 | 65 |
</div> |
66 | 66 |
</div> |
67 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
67 |
+ <button class="submit-button" @click="handleSubmit()" |
|
68 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
68 | 69 |
</div> |
69 | 70 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
70 | 71 |
</div> |
... | ... | @@ -81,6 +82,8 @@ |
81 | 82 |
selectedButton: null, |
82 | 83 |
dataList: [], |
83 | 84 |
problemDetail: [], |
85 |
+ currentIndex: null, |
|
86 |
+ learningIdsLength: null, |
|
84 | 87 |
}; |
85 | 88 |
}, |
86 | 89 |
methods: { |
... | ... | @@ -225,6 +228,8 @@ |
225 | 228 |
console.log('Current Learning ID:', this.currentLearningId); |
226 | 229 |
console.log('Current Label:', this.currentLabel); |
227 | 230 |
console.log('Current Problem Index:', this.currentProblemIndex); |
231 |
+ this.currentIndex = this.currentProblemIndex; |
|
232 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
228 | 233 |
|
229 | 234 |
// Fetch or process the current problem based on `currentLearningId` |
230 | 235 |
}, |
--- client/views/pages/main/Chapter/Chapter3_6.vue
+++ client/views/pages/main/Chapter/Chapter3_6.vue
... | ... | @@ -54,7 +54,8 @@ |
54 | 54 |
</article> |
55 | 55 |
</div> |
56 | 56 |
</div> |
57 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
57 |
+ <button class="submit-button" @click="handleSubmit()" |
|
58 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
58 | 59 |
</div> |
59 | 60 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
60 | 61 |
</div> |
... | ... | @@ -80,6 +81,8 @@ |
80 | 81 |
intervalId: null, |
81 | 82 |
dataList: [], |
82 | 83 |
problemDetail: [], |
84 |
+ currentIndex: null, |
|
85 |
+ learningIdsLength: null, |
|
83 | 86 |
selectedButton: null, |
84 | 87 |
}; |
85 | 88 |
}, |
... | ... | @@ -238,6 +241,8 @@ |
238 | 241 |
console.log('Current Learning ID:', this.currentLearningId); |
239 | 242 |
console.log('Current Label:', this.currentLabel); |
240 | 243 |
console.log('Current Problem Index:', this.currentProblemIndex); |
244 |
+ this.currentIndex = this.currentProblemIndex; |
|
245 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
241 | 246 |
|
242 | 247 |
// Fetch or process the current problem based on `currentLearningId` |
243 | 248 |
}, |
--- client/views/pages/main/Chapter/Chapter3_7.vue
+++ client/views/pages/main/Chapter/Chapter3_7.vue
... | ... | @@ -61,7 +61,8 @@ |
61 | 61 |
</div> |
62 | 62 |
</div> |
63 | 63 |
</div> |
64 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
64 |
+ <button class="submit-button" @click="handleSubmit()" |
|
65 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
65 | 66 |
</div> |
66 | 67 |
<div class="next-btn" @click="nextProblem()"> |
67 | 68 |
<img src="../../../../resources/img/right.png" alt="" /> |
... | ... | @@ -79,6 +80,8 @@ |
79 | 80 |
timer: "00", |
80 | 81 |
prblmId: "PROBLEM_000000000000003", |
81 | 82 |
problemDetail: [], |
83 |
+ currentIndex: null, |
|
84 |
+ learningIdsLength: null, |
|
82 | 85 |
dataList: [], |
83 | 86 |
prblmExpln: null, |
84 | 87 |
accessTime: null, |
... | ... | @@ -229,6 +232,8 @@ |
229 | 232 |
console.log('Current Learning ID:', this.currentLearningId); |
230 | 233 |
console.log('Current Label:', this.currentLabel); |
231 | 234 |
console.log('Current Problem Index:', this.currentProblemIndex); |
235 |
+ this.currentIndex = this.currentProblemIndex; |
|
236 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
232 | 237 |
|
233 | 238 |
// Fetch or process the current problem based on `currentLearningId` |
234 | 239 |
}, |
--- client/views/pages/main/Chapter/Chapter3_8.vue
+++ client/views/pages/main/Chapter/Chapter3_8.vue
... | ... | @@ -44,7 +44,8 @@ |
44 | 44 |
<input class="yellow-bd" v-model="answer" style="width: 45%" type="text" placeholder="답을 입력하세요." /> |
45 | 45 |
</div> |
46 | 46 |
</div> |
47 |
- <button class="submit-button" @click="handleSubmit()">제출하기</button> |
|
47 |
+ <button class="submit-button" @click="handleSubmit()" |
|
48 |
+ v-if="currentIndex === learningIdsLength - 1">제출하기</button> |
|
48 | 49 |
</div> |
49 | 50 |
<div class="next-btn" @click="nextProblem()"><img src="../../../../resources/img/right.png" alt="" /> |
50 | 51 |
</div> |
... | ... | @@ -70,6 +71,8 @@ |
70 | 71 |
answer: null, |
71 | 72 |
dataList: [], |
72 | 73 |
problemDetail: [], |
74 |
+ currentIndex: null, |
|
75 |
+ learningIdsLength: null, |
|
73 | 76 |
}; |
74 | 77 |
}, |
75 | 78 |
methods: { |
... | ... | @@ -235,6 +238,8 @@ |
235 | 238 |
console.log('Current Learning ID:', this.currentLearningId); |
236 | 239 |
console.log('Current Label:', this.currentLabel); |
237 | 240 |
console.log('Current Problem Index:', this.currentProblemIndex); |
241 |
+ this.currentIndex = this.currentProblemIndex; |
|
242 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
238 | 243 |
|
239 | 244 |
// Fetch or process the current problem based on `currentLearningId` |
240 | 245 |
}, |
--- client/views/pages/main/Chapter/Chapter3_9.vue
+++ client/views/pages/main/Chapter/Chapter3_9.vue
... | ... | @@ -70,6 +70,8 @@ |
70 | 70 |
showButton4: false, |
71 | 71 |
|
72 | 72 |
problemDetail: [], |
73 |
+ currentIndex: null, |
|
74 |
+ learningIdsLength: null, |
|
73 | 75 |
dataList: [], |
74 | 76 |
prblmExpln: null, |
75 | 77 |
prblmId: "1004", |
... | ... | @@ -238,6 +240,8 @@ |
238 | 240 |
console.log('Current Learning ID:', this.currentLearningId); |
239 | 241 |
console.log('Current Label:', this.currentLabel); |
240 | 242 |
console.log('Current Problem Index:', this.currentProblemIndex); |
243 |
+ this.currentIndex = this.currentProblemIndex; |
|
244 |
+ this.learningIdsLength = this.$store.state.currentLearningIds.length; |
|
241 | 245 |
|
242 | 246 |
// Fetch or process the current problem based on `currentLearningId` |
243 | 247 |
}, |
--- client/views/pages/main/Chapter/Chapter4.vue
+++ client/views/pages/main/Chapter/Chapter4.vue
... | ... | @@ -45,7 +45,7 @@ |
45 | 45 |
</button> |
46 | 46 |
</div> |
47 | 47 |
<article class="mb20 flex-column result-box" style="gap: 20px"> |
48 |
- <div class="flex justify-between wrap" v-for="(item, index) in dataList" :key="item.id"> |
|
48 |
+ <div class="flex justify-between wrap" v-for="(item, index) in dataList" :key="index"> |
|
49 | 49 |
<div class="flex align-center"> |
50 | 50 |
<div> |
51 | 51 |
<p class="title1 mr20"> |
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 |
</div> |
55 | 55 |
<div class="text-lf"> |
56 | 56 |
<p class="title1"> |
57 |
- {{ item.prblmExpln }} |
|
57 |
+ {{ item.prblmImfo.prblm_expln }} |
|
58 | 58 |
</p> |
59 | 59 |
</div> |
60 | 60 |
</div> |
... | ... | @@ -62,7 +62,7 @@ |
62 | 62 |
<div class="flex align-center" style="gap: 10px"> |
63 | 63 |
<button type="button" title="정답 확인" class="yellow-btn" @click=" |
64 | 64 |
[ |
65 |
- handleProblemDetail(item), |
|
65 |
+ handleProblemDetail(item.prblmImfo), |
|
66 | 66 |
goToProblemPage( |
67 | 67 |
problemType |
68 | 68 |
), |
... | ... | @@ -111,7 +111,6 @@ |
111 | 111 |
this.$router.push({ name: page }); |
112 | 112 |
}, |
113 | 113 |
goToProblemPage(page) { |
114 |
- sessionStorage.setItem("previewNote", "true"); |
|
115 | 114 |
this.$router.push({ name: page }); |
116 | 115 |
}, |
117 | 116 |
handleDrag(dragNumber) { |
... | ... | @@ -152,25 +151,6 @@ |
152 | 151 |
}, 1000); |
153 | 152 |
}, |
154 | 153 |
problemList() { |
155 |
- const vm = this; |
|
156 |
- |
|
157 |
- axios({ |
|
158 |
- url: "problem/evaluationProblemList.json", |
|
159 |
- method: "post", |
|
160 |
- headers: { |
|
161 |
- "Content-Type": "application/json; charset=UTF-8", |
|
162 |
- }, |
|
163 |
- data: { |
|
164 |
- evalId: vm.evalId, |
|
165 |
- }, |
|
166 |
- }) |
|
167 |
- .then(function (res) { |
|
168 |
- console.log("problemList - response : ", res.data); |
|
169 |
- vm.dataList = res.data; |
|
170 |
- }) |
|
171 |
- .catch(function (error) { |
|
172 |
- console.log("problemList - error : ", error); |
|
173 |
- }); |
|
174 | 154 |
}, |
175 | 155 |
|
176 | 156 |
handleProblemDetail(item) { |
... | ... | @@ -226,7 +206,16 @@ |
226 | 206 |
}, |
227 | 207 |
}, |
228 | 208 |
watch: {}, |
229 |
- computed: {}, |
|
209 |
+ computed: { |
|
210 |
+ getAllProblems() { |
|
211 |
+ return this.$store.getters.getAllProblems; |
|
212 |
+ }, |
|
213 |
+ }, |
|
214 |
+ created() { |
|
215 |
+ console.log('Problem List :', this.getAllProblems); |
|
216 |
+ this.dataList = this.getAllProblems; |
|
217 |
+ |
|
218 |
+ }, |
|
230 | 219 |
components: {}, |
231 | 220 |
mounted() { |
232 | 221 |
this.problemList(); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?