
--- client/views/pages/App.vue
+++ client/views/pages/App.vue
... | ... | @@ -36,7 +36,7 @@ |
36 | 36 |
methods: { |
37 | 37 |
// 메뉴 만족도 조사 사용 여부 |
38 | 38 |
menuYnCheck(yn) { |
39 |
- console.log("menuYnCheck", yn); |
|
39 |
+ // console.log("menuYnCheck", yn); |
|
40 | 40 |
this.menuUse = yn; |
41 | 41 |
}, |
42 | 42 |
}, |
--- client/views/pages/adm/boardManagement/template/commonTemplate/CommonSelectList.vue
+++ client/views/pages/adm/boardManagement/template/commonTemplate/CommonSelectList.vue
... | ... | @@ -174,9 +174,20 @@ |
174 | 174 |
}; |
175 | 175 |
}, |
176 | 176 |
created() { |
177 |
- this.fnBbsIdExtraction(); |
|
178 |
- this.resotreQueryParams("queryParams"); |
|
179 |
- this.findAll(); |
|
177 |
+ // this.fnBbsIdExtraction(); |
|
178 |
+ // this.resotreQueryParams("queryParams"); |
|
179 |
+ // this.findAll(); |
|
180 |
+ }, |
|
181 |
+ // 컴포넌트(페이지) 초기 진입 시 |
|
182 |
+ beforeRouteEnter(to, from, next) { |
|
183 |
+ next(vm => { |
|
184 |
+ vm.fnInit(); |
|
185 |
+ }); |
|
186 |
+ }, |
|
187 |
+ // 동일 컴포넌트로 재진입 시 |
|
188 |
+ beforeRouteUpdate(to, from, next) { |
|
189 |
+ this.fnInit(); |
|
190 |
+ next(); |
|
180 | 191 |
}, |
181 | 192 |
methods: { |
182 | 193 |
// 목록 조회 |
... | ... | @@ -279,16 +290,23 @@ |
279 | 290 |
this.search = { ...defaultSearchParams }; |
280 | 291 |
this.findAll(); |
281 | 292 |
}, |
293 |
+ |
|
294 |
+ // 초기 조회 |
|
295 |
+ fnInit() { |
|
296 |
+ this.fnBbsIdExtraction(); |
|
297 |
+ this.resotreQueryParams("queryParams"); |
|
298 |
+ this.findAll(); |
|
299 |
+ } |
|
282 | 300 |
}, |
283 | 301 |
watch: { |
284 | 302 |
$route(to, from) { |
285 | 303 |
// path가 다를 때만 조회 |
286 |
- if (to.path !== from.path) { |
|
287 |
- this.fnBbsIdExtraction(); |
|
288 |
- this.resotreQueryParams("queryParams"); |
|
289 |
- this.findAll(); |
|
290 |
- this.path = this.$store.state.path; |
|
291 |
- } |
|
304 |
+ // if (to.path !== from.path) { |
|
305 |
+ // this.fnBbsIdExtraction(); |
|
306 |
+ // this.resotreQueryParams("queryParams"); |
|
307 |
+ // this.findAll(); |
|
308 |
+ // this.path = this.$store.state.path; |
|
309 |
+ // } |
|
292 | 310 |
}, |
293 | 311 |
}, |
294 | 312 |
computed: {}, |
--- client/views/pages/adm/boardManagement/template/faqTemplate/FaqSelectList.vue
+++ client/views/pages/adm/boardManagement/template/faqTemplate/FaqSelectList.vue
... | ... | @@ -414,9 +414,20 @@ |
414 | 414 |
}; |
415 | 415 |
}, |
416 | 416 |
created() { |
417 |
- this.fnBbsIdExtraction(); |
|
418 |
- this.resotreQueryParams("queryParams"); |
|
419 |
- this.findAll(); |
|
417 |
+ // this.fnBbsIdExtraction(); |
|
418 |
+ // this.resotreQueryParams("queryParams"); |
|
419 |
+ // this.findAll(); |
|
420 |
+ }, |
|
421 |
+ // 컴포넌트(페이지) 초기 진입 시 |
|
422 |
+ beforeRouteEnter(to, from, next) { |
|
423 |
+ next(vm => { |
|
424 |
+ vm.fnInit(); |
|
425 |
+ }); |
|
426 |
+ }, |
|
427 |
+ // 동일 컴포넌트로 재진입 시 |
|
428 |
+ beforeRouteUpdate(to, from, next) { |
|
429 |
+ this.fnInit(); |
|
430 |
+ next(); |
|
420 | 431 |
}, |
421 | 432 |
methods: { |
422 | 433 |
toggle(index) { |
... | ... | @@ -520,17 +531,24 @@ |
520 | 531 |
this.search = { ...defaultSearchParams }; |
521 | 532 |
this.findAll(); |
522 | 533 |
}, |
534 |
+ |
|
535 |
+ // 초기 조회 |
|
536 |
+ fnInit() { |
|
537 |
+ this.fnBbsIdExtraction(); |
|
538 |
+ this.resotreQueryParams("queryParams"); |
|
539 |
+ this.findAll(); |
|
540 |
+ } |
|
523 | 541 |
}, |
524 | 542 |
watch: { |
525 | 543 |
$route(to, from) { |
526 | 544 |
// path가 다를 때만 조회 |
527 |
- if (to.path !== from.path) { |
|
528 |
- this.fnBbsIdExtraction(); |
|
529 |
- this.resotreQueryParams("queryParams"); |
|
530 |
- this.findAll(); |
|
531 |
- this.path = this.$store.state.path; |
|
532 |
- this.isOpen = null; |
|
533 |
- } |
|
545 |
+ // if (to.path !== from.path) { |
|
546 |
+ // this.fnBbsIdExtraction(); |
|
547 |
+ // this.resotreQueryParams("queryParams"); |
|
548 |
+ // this.findAll(); |
|
549 |
+ // this.path = this.$store.state.path; |
|
550 |
+ // this.isOpen = null; |
|
551 |
+ // } |
|
534 | 552 |
}, |
535 | 553 |
}, |
536 | 554 |
computed: {}, |
--- client/views/pages/adm/boardManagement/template/galleryTemplate/GallerySelectList.vue
+++ client/views/pages/adm/boardManagement/template/galleryTemplate/GallerySelectList.vue
... | ... | @@ -200,9 +200,20 @@ |
200 | 200 |
} |
201 | 201 |
}, |
202 | 202 |
created() { |
203 |
- this.fnBbsIdExtraction(); |
|
204 |
- this.resotreQueryParams('queryParams'); |
|
205 |
- this.findAll(); |
|
203 |
+ // this.fnBbsIdExtraction(); |
|
204 |
+ // this.resotreQueryParams('queryParams'); |
|
205 |
+ // this.findAll(); |
|
206 |
+ }, |
|
207 |
+ // 컴포넌트(페이지) 초기 진입 시 |
|
208 |
+ beforeRouteEnter(to, from, next) { |
|
209 |
+ next(vm => { |
|
210 |
+ vm.fnInit(); |
|
211 |
+ }); |
|
212 |
+ }, |
|
213 |
+ // 동일 컴포넌트로 재진입 시 |
|
214 |
+ beforeRouteUpdate(to, from, next) { |
|
215 |
+ this.fnInit(); |
|
216 |
+ next(); |
|
206 | 217 |
}, |
207 | 218 |
methods: { |
208 | 219 |
// 목록 조회 |
... | ... | @@ -246,18 +257,24 @@ |
246 | 257 |
fnSearchReset() { |
247 | 258 |
this.search = { ...defaultSearchParams }; |
248 | 259 |
this.findAll(); |
249 |
- } |
|
260 |
+ }, |
|
250 | 261 |
|
262 |
+ // 초기 조회 |
|
263 |
+ fnInit() { |
|
264 |
+ this.fnBbsIdExtraction(); |
|
265 |
+ this.resotreQueryParams("queryParams"); |
|
266 |
+ this.findAll(); |
|
267 |
+ } |
|
251 | 268 |
}, |
252 | 269 |
watch: { |
253 | 270 |
$route(to, from) { |
254 | 271 |
// path가 다를 때만 조회 |
255 |
- if (to.path !== from.path) { |
|
256 |
- this.fnBbsIdExtraction(); |
|
257 |
- this.resotreQueryParams('queryParams'); |
|
258 |
- this.findAll(); |
|
259 |
- this.path = this.$store.state.path; |
|
260 |
- } |
|
272 |
+ // if (to.path !== from.path) { |
|
273 |
+ // this.fnBbsIdExtraction(); |
|
274 |
+ // this.resotreQueryParams('queryParams'); |
|
275 |
+ // this.findAll(); |
|
276 |
+ // this.path = this.$store.state.path; |
|
277 |
+ // } |
|
261 | 278 |
} |
262 | 279 |
|
263 | 280 |
}, |
--- client/views/pages/adm/boardManagement/template/videoTemplate/VideoSelectList.vue
+++ client/views/pages/adm/boardManagement/template/videoTemplate/VideoSelectList.vue
... | ... | @@ -155,9 +155,20 @@ |
155 | 155 |
} |
156 | 156 |
}, |
157 | 157 |
created() { |
158 |
- this.fnBbsIdExtraction(); |
|
159 |
- this.resotreQueryParams('queryParams'); |
|
160 |
- this.findAll(); |
|
158 |
+ // this.fnBbsIdExtraction(); |
|
159 |
+ // this.resotreQueryParams('queryParams'); |
|
160 |
+ // this.findAll(); |
|
161 |
+ }, |
|
162 |
+ // 컴포넌트(페이지) 초기 진입 시 |
|
163 |
+ beforeRouteEnter(to, from, next) { |
|
164 |
+ next(vm => { |
|
165 |
+ vm.fnInit(); |
|
166 |
+ }); |
|
167 |
+ }, |
|
168 |
+ // 동일 컴포넌트로 재진입 시 |
|
169 |
+ beforeRouteUpdate(to, from, next) { |
|
170 |
+ this.fnInit(); |
|
171 |
+ next(); |
|
161 | 172 |
}, |
162 | 173 |
methods: { |
163 | 174 |
// 목록 조회 |
... | ... | @@ -207,17 +218,24 @@ |
207 | 218 |
fnSearchReset() { |
208 | 219 |
this.search = { ...defaultSearchParams }; |
209 | 220 |
this.findAll(); |
221 |
+ }, |
|
222 |
+ |
|
223 |
+ // 초기 조회 |
|
224 |
+ fnInit() { |
|
225 |
+ this.fnBbsIdExtraction(); |
|
226 |
+ this.resotreQueryParams("queryParams"); |
|
227 |
+ this.findAll(); |
|
210 | 228 |
} |
211 | 229 |
}, |
212 | 230 |
watch: { |
213 | 231 |
$route(to, from) { |
214 | 232 |
// path가 다를 때만 조회 |
215 |
- if (to.path !== from.path) { |
|
216 |
- this.fnBbsIdExtraction(); |
|
217 |
- this.resotreQueryParams('queryParams'); |
|
218 |
- this.findAll(); |
|
219 |
- this.path = this.$store.state.path; |
|
220 |
- } |
|
233 |
+ // if (to.path !== from.path) { |
|
234 |
+ // this.fnBbsIdExtraction(); |
|
235 |
+ // this.resotreQueryParams('queryParams'); |
|
236 |
+ // this.findAll(); |
|
237 |
+ // this.path = this.$store.state.path; |
|
238 |
+ // } |
|
221 | 239 |
} |
222 | 240 |
}, |
223 | 241 |
computed: { |
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?