From 922b7e090411ce84400dec74584154ff021022c3 Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Tue, 18 Feb 2025 13:19:21 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=E3=85=87=E3=85=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/board/BoardComment.vue | 2 +- ...ardComentArea.vue => BoardCommentArea.vue} | 0 src/components/modal/VacationGrantModal.vue | 56 +++----- src/components/modal/VacationModal.vue | 136 +++++++++--------- src/views/board/BoardView.vue | 2 +- 5 files changed, 95 insertions(+), 101 deletions(-) rename src/components/board/{BoardComentArea.vue => BoardCommentArea.vue} (100%) diff --git a/src/components/board/BoardComment.vue b/src/components/board/BoardComment.vue index 0e1fbef..07e2327 100644 --- a/src/components/board/BoardComment.vue +++ b/src/components/board/BoardComment.vue @@ -68,7 +68,7 @@ + + /* 연차 데이터 없음 */ + .no-data { + text-align: center; + font-size: 14px; + color: gray; + margin-top: 10px; + } + diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index a5e4135..34740d2 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -190,6 +190,8 @@ const fetchGeneralPosts = async (page = 1) => { console.log(data) const totalPosts = data.data.total; // 전체 게시물 개수 받아오기 + console.log('📌 API 응답 데이터:', data.data); + generalList.value = data.data.list.map((post, index) => ({ realId: post.id, id: totalPosts - ((page - 1) * selectedSize.value) - index, diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index b6c68f4..2eb5e83 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -94,7 +94,11 @@ @updateReaction="handleUpdateReaction" @submitComment="handleCommentReply" /> - + @@ -103,7 +107,7 @@ diff --git a/src/components/modal/VacationModal.vue b/src/components/modal/VacationModal.vue index e1b705b..fd27de0 100644 --- a/src/components/modal/VacationModal.vue +++ b/src/components/modal/VacationModal.vue @@ -1,49 +1,41 @@ + - - const closeModal = () => { - emit("close"); - }; - - - +} + diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 2eb5e83..2559318 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -221,12 +221,12 @@ const handleUpdateReaction = async ({ boardId, commentId, isLike, isDislike }) = }; // 댓글 목록 조회 -const fetchComments = async (pageNum = 1) => { +const fetchComments = async (page = 1) => { try { const response = await axios.get(`board/${currentBoardId.value}/comments`, { params: { LOCBRDSEQ: currentBoardId.value, - pageNum: pageNum + page } }); console.log("목록 API 응답 데이터:", response.data); From 6f436579410797c3d94efcd1afa8e9c019ceab9a Mon Sep 17 00:00:00 2001 From: yoon Date: Tue, 18 Feb 2025 15:04:25 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20=EB=AF=B8=EC=99=84=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/list/ProjectCard.vue | 2 +- src/components/list/ProjectCardList.vue | 27 ++++++++++++++++--------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/components/list/ProjectCard.vue b/src/components/list/ProjectCard.vue index a690309..7ea65c0 100644 --- a/src/components/list/ProjectCard.vue +++ b/src/components/list/ProjectCard.vue @@ -63,7 +63,7 @@