diff --git a/src/components/modal/VacationModal.vue b/src/components/modal/VacationModal.vue new file mode 100644 index 0000000..6e90f44 --- /dev/null +++ b/src/components/modal/VacationModal.vue @@ -0,0 +1,165 @@ + + + + + diff --git a/src/components/vacation/ProfileList.vue b/src/components/vacation/ProfileList.vue index ba4d594..32ffdd5 100644 --- a/src/components/vacation/ProfileList.vue +++ b/src/components/vacation/ProfileList.vue @@ -1,67 +1,71 @@ diff --git a/src/views/vacation/VacationManagement.vue b/src/views/vacation/VacationManagement.vue index 5b9d8f1..bb11afd 100644 --- a/src/views/vacation/VacationManagement.vue +++ b/src/views/vacation/VacationManagement.vue @@ -5,8 +5,17 @@
- +
+ { + try { + console.log(`๐Ÿ” ${user.MEMBERSEQ}๋‹˜์˜ ์—ฐ์ฐจ ๋‚ด์—ญ ์š”์ฒญ ์ค‘...`); + const response = await axios.get(`vacation/history`); + + if (response.status === 200 && response.data) { + console.log("โœ… ์—ฐ์ฐจ ๋‚ด์—ญ ์‘๋‹ต:", response.data); + myVacations.value = response.data.data.usedVacations || []; + receivedVacations.value = response.data.data.receivedVacations || []; + + console.log("๐Ÿ“Œ myVacations:", myVacations.value); + console.log("๐Ÿ“Œ receivedVacations:", receivedVacations.value); + + isModalOpen.value = true; + } else { + console.warn("โŒ ์—ฐ์ฐจ ๋‚ด์—ญ์„ ๋ถˆ๋Ÿฌ์˜ค์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค."); + } + } catch (error) { + console.error("๐Ÿšจ ์—ฐ์ฐจ ๋ฐ์ดํ„ฐ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ ์‹คํŒจ:", error); + } +}; + const fetchUserList = async () => { try { await userStore.fetchUserList();