diff --git a/src/components/list/ProjectCard.vue b/src/components/list/ProjectCard.vue index 7af8059..1cddcdc 100644 --- a/src/components/list/ProjectCard.vue +++ b/src/components/list/ProjectCard.vue @@ -1,16 +1,18 @@ diff --git a/src/components/projectlist/ProjectList.vue b/src/components/projectlist/ProjectList.vue index cc10764..d81da4c 100644 --- a/src/components/projectlist/ProjectList.vue +++ b/src/components/projectlist/ProjectList.vue @@ -23,6 +23,7 @@ :projctSeq="post.PROJCTSEQ" :projctCol="post.PROJCTCOL" :projctColor="post.projctcolor" + :projctCreatorId="post.PROJCTCMB" @update="getProjectList" /> @@ -204,21 +205,20 @@ // 등록 :: 주소 업데이트 핸들러 const handleAddressUpdate = (data) => { - addressData.value = data; -}; + addressData.value = data; + }; - // 시작일이나 종료일이 변경될 때마다 종료일을 유효성 검사 + // 종료일이 시작일보다 이전 날짜라면 종료일을 시작일로 맞추기 watch([startDay, endDay], () => { - if (startDay.value && endDay.value) { - const start = new Date(startDay.value); - const end = new Date(endDay.value); + if (startDay.value && endDay.value) { + const start = new Date(startDay.value); + const end = new Date(endDay.value); - // 종료일이 시작일보다 이전 날짜라면 종료일을 시작일로 맞추기 - if (end < start) { - endDay.value = startDay.value; + if (end < start) { + endDay.value = startDay.value; + } } - } - }); + }, { flush: 'post' }); // 프로젝트 등록 const handleCreate = async () => { @@ -240,7 +240,7 @@ projctArr: addressData.value.address, projctDtl: addressData.value.detailAddress, projctZip: addressData.value.postcode, - projctCmb: user.value.name, + projctCmb: user.value.id, }).then(res => { if (res.status === 200) { toastStore.onToast('프로젝트가 등록되었습니다.', 's'); diff --git a/src/components/user/UserList.vue b/src/components/user/UserList.vue index f921ce3..19c37be 100644 --- a/src/components/user/UserList.vue +++ b/src/components/user/UserList.vue @@ -1,11 +1,12 @@