Skip to content

Commit

Permalink
추천 기능 추가, 자신이 작성한 게시글, 댓글에 한해 수정, 삭제 기능 버튼 노출, 회원 정보 조회시 추천한 게시글 목록 조…
Browse files Browse the repository at this point in the history
…회 기능 추가, 검색 기능 수정
  • Loading branch information
yhlee002 committed Jul 19, 2024
1 parent c36c0d5 commit ac3b12a
Show file tree
Hide file tree
Showing 20 changed files with 278 additions and 172 deletions.
3 changes: 1 addition & 2 deletions src/assets/css/admin/user.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
}

#userList .user-list-checkbox {
display: flex;
justify-content: center;
text-align: center;
align-content: center;
}

Expand Down
7 changes: 5 additions & 2 deletions src/assets/css/fragments.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,15 @@
align-items: center;
}

.nav > .user-box > .user-image-box > img.profile_image {
img.profile_image {
width: 3em;
height: 3em;
border-radius: 3rem;
line-height: 1.5em;
margin-right:1rem;
}

.nav > .user-box > .user-image-box > img.profile_image {
margin-right: 0.4rem;
}

.nav > .user-box .userbox-text {
Expand Down
12 changes: 2 additions & 10 deletions src/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,19 +299,11 @@ input[readonly] {
}

/* Profile Image */
div.admin_no_image {
background-image: url("@/assets/images/icons/icons8-female-user-100.png") !important;
img.admin_no_image,
img.user_no_image {
background-position: center !important;
background-repeat: no-repeat !important;
/*background-size: 2rem !important;*/
background-size: 100% !important;
width: 2rem;
height: 2rem;
}

div.user_no_image {
background-image: url("@/assets/images/icons/icons8-customer-100.png") !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-size: 100% !important;
}
26 changes: 26 additions & 0 deletions src/components/admin/AdminBoardComponent.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<script setup>
</script>

<template>
<div id="index_notice" class="wrapper-block">
<div class="inner">
<div class="inner-block">
<div class="content">
<div class="block-title-box">
<h2 class="block-title">관리자 페이지 > 공지사항</h2>
</div>



</div>
</div>
</div>
</div>
</template>

<style scoped>
#adminBoards, #adminBoardsTable {
width: 100%;
}
</style>
13 changes: 13 additions & 0 deletions src/components/admin/AdminNoticeComponent.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script setup>
</script>

<template>
<div>

</div>
</template>

<style scoped>
</style>
6 changes: 4 additions & 2 deletions src/components/admin/AdminUserBoardComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ function goBoardPage(id) {

<template>
<div id="userBoards">
<!-- <h4>작성한 글 목록</h4>-->
<div style="display: flex; justify-content: end; width: 100%; margin: 1rem 0;">
<router-link :to="`/admin/notices?memNo=${memNo}`">더보기</router-link>
</div>
<table id="userBoardsTable">
<thead>
<tr>
Expand All @@ -74,7 +76,7 @@ function goBoardPage(id) {
</thead>
<tbody>
<tr v-for="board in boards" :key="board.id">
<td class="userdetail-board-checkbox" style="display: flex; justify-content: center;">
<td class="userdetail-board-checkbox" style="text-align: center;">
<input :value="board.id" type="checkbox"/>
</td>
<td>{{ board.id }}</td>
Expand Down
5 changes: 4 additions & 1 deletion src/components/admin/AdminUserBoardRecommendedComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const boardStore = useBoardStore();
const props = defineProps(['memNo']);
const boards = ref([]);
const result = await boardStore.getRecommendedBoardByMemNo(props.memNo, 1, 10);
const result = await boardStore.getRecommendedBoardByUser(props.memNo, 1, 10);
const data = result.data;
if (data.data) {
boards.value = data.data.boardImpList;
Expand All @@ -23,6 +23,9 @@ function goBoardPage(id) {

<template>
<div id="userRecommendedBoards">
<div style="display: flex; justify-content: end; width: 100%; margin: 1rem 0;">
<router-link :to="`/admin/notices?memNo=${memNo}`">더보기</router-link>
</div>
<table id="userRecommendedBoardsTable">
<thead>
<tr>
Expand Down
6 changes: 4 additions & 2 deletions src/components/admin/AdminUserCommentComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ function goBoardPage(id) {

<template>
<div id="userComments">
<!-- <h4>작성한 댓글 목록</h4>-->
<div style="display: flex; justify-content: end; width: 100%; margin: 1rem 0;">
<router-link :to="`/admin/notices?memNo=${memNo}`">더보기</router-link>
</div>
<table id="userCommentsTable">
<thead>
<tr>
Expand All @@ -75,7 +77,7 @@ function goBoardPage(id) {
</thead>
<tbody>
<tr v-for="comment in comments" :key="comment.id">
<td class="userdetail-comment-checkbox" style="display: flex; justify-content: center;">
<td class="userdetail-comment-checkbox" style="text-align: center;">
<input :value="comment.id" type="checkbox"/>
</td>
<td>{{ comment.id }}</td>
Expand Down
Loading

0 comments on commit ac3b12a

Please sign in to comment.