diff --git a/src/components/board/BoardProfile.vue b/src/components/board/BoardProfile.vue
index 796ab40..766bc31 100644
--- a/src/components/board/BoardProfile.vue
+++ b/src/components/board/BoardProfile.vue
@@ -61,7 +61,7 @@ const props = defineProps({
},
profileName: {
type: String,
- default: null,
+ default: '์ต๋ช
',
},
unknown: {
type: Boolean,
diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue
index 3816ff6..d42480a 100644
--- a/src/views/board/BoardList.vue
+++ b/src/views/board/BoardList.vue
@@ -61,7 +61,7 @@
๐ {{ notice.title }}
- N
+ N
{{ notice.author }} |
{{ notice.date }} |
@@ -78,7 +78,7 @@
{{ post.title }}
- N
+ N
{{ post.author }} |
{{ post.date }} |
@@ -199,6 +199,7 @@ const fetchGeneralPosts = async (page = 1) => {
id: totalPosts - ((page - 1) * selectedSize.value) - index,
title: post.title,
author: post.author || '์ต๋ช
',
+ rawDate: post.date,
date: formatDate(post.date), // ๋ ์ง ๋ณํ ์ ์ฉ
views: post.cnt || 0,
hasAttachment: post.hasAttachment || false,
@@ -239,6 +240,7 @@ const fetchNoticePosts = async () => {
title: post.title,
author: post.author || '๊ด๋ฆฌ์',
date: formatDate(post.date),
+ rawDate: post.date,
views: post.cnt || 0,
hasAttachment: post.hasAttachment || false,
img: post.firstImageUrl || null
diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue
index e52e404..b322fa4 100644
--- a/src/views/board/BoardView.vue
+++ b/src/views/board/BoardView.vue
@@ -149,7 +149,7 @@ const comments = ref([]);
const route = useRoute();
const router = useRouter();
const currentBoardId = ref(Number(route.params.id));
-const unknown = computed(() => profileName.value === null);
+const unknown = computed(() => profileName.value === '์ต๋ช
');
const currentUserId = ref('๊น์๋ฐ'); // ํ์ฌ ๋ก๊ทธ์ธํ ์ฌ์ฉ์ id
const authorId = ref(null); // ์์ฑ์ id
@@ -189,15 +189,15 @@ const fetchBoardDetails = async () => {
// API ์๋ต ๋ฐ์ดํฐ ๋ฐ์
// const boardDetail = data.boardDetail || {};
-
- profileName.value = data.author || null;
-
+
+ profileName.value = data.author || '์ต๋ช
';
+
// ์ต๋ช
ํ์ธํ๊ณ ์ถ์๋
// profileName.value = 'null;
-
+
// ๊ฒ์๊ธ์ ์์ฑ์ ์ฌ๋ถ๋ฅผ ํ์ธ : ํ์ฌ ๋ก๊ทธ์ธํ ์ฌ์ฉ์๊ฐ ์ด ๊ฒ์๊ธ์ ์์ฑ์์ธ์ง ์ฌ๋ถ
authorId.value = data.author;
-
+
boardTitle.value = data.title || '์ ๋ชฉ ์์';
boardContent.value = data.content || '';
date.value = data.date || '';
@@ -206,7 +206,7 @@ const fetchBoardDetails = async () => {
dislikes.value = data.dislikeCount || 0;
attachment.value = data.hasAttachment || null;
commentNum.value = data.commentCount || 0;
-
+
} catch (error) {
alert('๊ฒ์๋ฌผ ๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์ค๋ ์ค ์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.');
}
@@ -272,12 +272,12 @@ const fetchComments = async (page = 1) => {
page
}
});
-
+
const commentsList = response.data.data.list.map(comment => ({
commentId: comment.LOCCMTSEQ, // ๋๊ธ ID
boardId: comment.LOCBRDSEQ,
parentId: comment.LOCCMTPNT, // ๋ถ๋ชจ ID
- author: comment.author || null,
+ author: comment.author || '์ต๋ช
',
content: comment.LOCCMTRPY,
likeCount: comment.likeCount || 0,
dislikeCount: comment.dislikeCount || 0,
@@ -458,7 +458,7 @@ const editComment = (comment) => {
// c.isCommentPassword = false;
// });
- // if (comment.unknown) {
+ // if (comment.unknown) {
// comment.isCommentPassword = true;
// } else {
// comment.isEditTextarea = true;
@@ -565,10 +565,10 @@ const submitCommentPassword = async (comment, password) => {
if (response.data.code === 200 && response.data.data === true) {
comment.isCommentPassword = false;
-
+
if (lastCommentClickedButton.value === "edit") {
comment.isEditTextarea = true;
- // handleSubmitEdit(comment, comment.content);
+ // handleSubmitEdit(comment, comment.content);
} else if (lastCommentClickedButton.value === "delete") {
deleteReplyComment(comment)
@@ -620,7 +620,7 @@ const deleteReplyComment = async (comment) => {
if (response.data.code === 200) {
// console.log("๋๊ธ ์ญ์ ์ฑ๊ณต!");
- await fetchComments();
+ await fetchComments();
} else {
// console.log("๋๊ธ ์ญ์ ์คํจ:", response.data.message);
alert("๋๊ธ ์ญ์ ์ ์คํจํ์ต๋๋ค.");
@@ -641,7 +641,7 @@ const handleSubmitEdit = async (comment, editedContent) => {
// ์์ ์ฑ๊ณต ์ ์
๋ฐ์ดํธ
comment.content = editedContent;
- comment.isEditTextarea = false;
+ comment.isEditTextarea = false;
} catch (error) {
console.error("๋๊ธ ์์ ์ค ์ค๋ฅ ๋ฐ์:", error);
}
diff --git a/src/views/vacation/VacationManagement.vue b/src/views/vacation/VacationManagement.vue
index 80e4fc8..19647f7 100644
--- a/src/views/vacation/VacationManagement.vue
+++ b/src/views/vacation/VacationManagement.vue
@@ -1,307 +1,304 @@
-
+
-
+
-
-
+
+
-
+
+ />
-
-
+
-
+
-
+ />
+
-
-
+
+
-
+
-
+ onMounted(async () => {
+ await fetchUserList();
+ await fetchVacationCodes();
+ const today = new Date();
+ const year = today.getFullYear();
+ const month = String(today.getMonth() + 1).padStart(2, "0");
+ await loadCalendarData(year, month);
+ });
+
-
+