From a76bfbcc25a4ecd41d453bf3df49fff8c272d1eb Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Mon, 10 Mar 2025 10:08:40 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=EC=9D=B5=EB=AA=85=EC=9D=B4=EC=95=84?= =?UTF-8?q?=EB=8B=90=EA=B2=BD=EC=9A=B0=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8?= =?UTF-8?q?=EC=B0=BD=EC=95=88=EB=82=98=EC=98=A4=EA=B2=8C&=EB=8C=93?= =?UTF-8?q?=EA=B8=80maxlength=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardComment.vue | 224 +++++++++++----------- src/components/board/BoardCommentArea.vue | 141 +++++++------- src/components/board/BoardCommentList.vue | 181 ++++++++--------- src/components/board/BoardProfile.vue | 2 +- src/views/board/BoardView.vue | 4 +- 5 files changed, 283 insertions(+), 269 deletions(-) diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue index c7e9220..8dd990e 100644 --- a/src/components/board/BoardComment.vue +++ b/src/components/board/BoardComment.vue @@ -16,7 +16,7 @@ @updateReaction="handleUpdateReaction" /> -
+
- + - - + +
    -
  • +
  • diff --git a/src/components/board/BoardCommentArea.vue b/src/components/board/BoardCommentArea.vue index 283ce8b..0c207bb 100644 --- a/src/components/board/BoardCommentArea.vue +++ b/src/components/board/BoardCommentArea.vue @@ -11,7 +11,7 @@
-->
- + {{ commentAlert }} {{ textAlert }}
@@ -51,78 +51,81 @@ + if (isCheck.value && !$common.isNotEmpty(password.value)) { + passwordAlert2.value = '비밀번호를 입력하세요'; + return false; + } else { + passwordAlert2.value = ''; + } + + // 댓글 제출 + emit('submitComment', { + comment: comment.value, + password: isCheck.value ? password.value : '', + isCheck: isCheck.value, + LOCBRDTYP: isCheck.value ? '300102' : null, // 익명일 경우 '300102' 설정 + }); + + // 제출 후 입력 필드 리셋 + resetCommentForm(); + }; + + // 입력 필드 리셋 함수 추가 + const resetCommentForm = () => { + comment.value = ''; + password.value = ''; + isCheck.value = false; + }; + + watch( + () => props.passwordAlert, + () => { + if (!props.passwordAlert) { + resetCommentForm(); + } + }, + ); + diff --git a/src/components/board/BoardCommentList.vue b/src/components/board/BoardCommentList.vue index 0987a4c..87da0cd 100644 --- a/src/components/board/BoardCommentList.vue +++ b/src/components/board/BoardCommentList.vue @@ -1,17 +1,13 @@ diff --git a/src/components/board/BoardProfile.vue b/src/components/board/BoardProfile.vue index 87e08bc..b183865 100644 --- a/src/components/board/BoardProfile.vue +++ b/src/components/board/BoardProfile.vue @@ -40,7 +40,7 @@ const defaultProfile = '/img/icons/icon.png'; // 서버의 이미지 경로 (Vue 환경 변수 사용 가능) - const baseUrl = 'http://localhost:10325/'; // API 서버 URL + const baseUrl = import.meta.env.VITE_SERVER; // API 서버 URL // Props 정의 const props = defineProps({ diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 5015bf6..10d9a31 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -92,6 +92,7 @@ :unknown="unknown" :commentAlert="commentAlert" :passwordAlert="passwordAlert" + :maxLength="500" @submitComment="handleCommentSubmit" />
@@ -237,7 +238,6 @@ const data = response.data.data; profileName.value = data.author || '익명'; - console.log(data.author); authorId.value = data.authorId; boardTitle.value = data.title || '제목 없음'; boardContent.value = data.content || ''; @@ -580,7 +580,7 @@ LOCBRDPWD: password.value, LOCBRDSEQ: currentBoardId.value, }); - console.log('response: ', response); + if (response.data.code === 200 && response.data.data === true) { password.value = ''; isPassword.value = false; From 3ac834dd4a78a414c4785bea8e8ed619b1756765 Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Mon, 10 Mar 2025 10:21:23 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=ED=9C=B4=EA=B0=80=20=EC=97=AC=EB=A0=A4?= =?UTF-8?q?=EB=85=84=EB=8F=84=20=EC=82=AD=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/custom.css | 3 + src/components/modal/VacationModal.vue | 8 +- src/components/vacation/ProfileList.vue | 14 ++- src/views/vacation/VacationManagement.vue | 138 ++++++++++++---------- 4 files changed, 93 insertions(+), 70 deletions(-) diff --git a/public/css/custom.css b/public/css/custom.css index e9d477a..8127a4c 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -3,6 +3,9 @@ /* 휴가 */ +.fc-daygrid-event { + pointer-events: none !important; +} /* 이벤트 선 없게 */ .fc-event { border: none; diff --git a/src/components/modal/VacationModal.vue b/src/components/modal/VacationModal.vue index 2592d53..7991267 100644 --- a/src/components/modal/VacationModal.vue +++ b/src/components/modal/VacationModal.vue @@ -1,7 +1,7 @@