From cbc3c9dda547878ffe27274028a9346eb4d7239c Mon Sep 17 00:00:00 2001 From: yoon Date: Fri, 7 Mar 2025 12:09:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A2=85=EB=A3=8C=EB=90=9C=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=EC=A0=9D=ED=8A=B8=20=EA=B4=80=EB=A0=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/list/ProjectCard.vue | 112 +++++++++++++++++---- src/components/projectlist/ProjectList.vue | 24 ++--- src/components/user/UserList.vue | 22 +++- 3 files changed, 122 insertions(+), 36 deletions(-) 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 @@