From 47ab2b60545a76efb37fb01981e5c4684e8ea5c1 Mon Sep 17 00:00:00 2001 From: khj0414 Date: Tue, 25 Feb 2025 15:25:56 +0900 Subject: [PATCH] =?UTF-8?q?=ED=88=AC=ED=91=9C=EC=88=98=EC=A0=95=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/button/WriteBtn.vue | 8 +- src/components/voteboard/voteCard.vue | 136 +++++++++++------ src/components/voteboard/voteCardList.vue | 26 +++- src/components/voteboard/voteResultCard.vue | 17 ++- src/components/voteboard/voteResultList.vue | 27 +++- src/components/voteboard/voteResultRandom.vue | 45 +++++- .../voteboard/voteResultRandomList.vue | 9 +- src/stores/voteCommon.js | 8 +- src/stores/voteDetail.js | 15 ++ src/views/voteboard/TheVoteBoard.vue | 6 +- src/views/voteboard/voteBoardList.vue | 142 +++++++++++++---- src/views/voteboard/voteboardWrite.vue | 144 +++++++++--------- 12 files changed, 413 insertions(+), 170 deletions(-) create mode 100644 src/stores/voteDetail.js diff --git a/src/components/button/WriteBtn.vue b/src/components/button/WriteBtn.vue index a9b5ca1..41b56c9 100644 --- a/src/components/button/WriteBtn.vue +++ b/src/components/button/WriteBtn.vue @@ -4,10 +4,6 @@ - diff --git a/src/components/voteboard/voteCard.vue b/src/components/voteboard/voteCard.vue index 6662bad..f7b91ca 100644 --- a/src/components/voteboard/voteCard.vue +++ b/src/components/voteboard/voteCard.vue @@ -1,55 +1,71 @@ diff --git a/src/components/voteboard/voteCardList.vue b/src/components/voteboard/voteCardList.vue index d527537..71fa5b6 100644 --- a/src/components/voteboard/voteCardList.vue +++ b/src/components/voteboard/voteCardList.vue @@ -3,9 +3,15 @@ + :data="item" + /> @@ -16,14 +22,30 @@ const props = defineProps({ type: Array, required: true, }, + }); -const emit = defineEmits(['addContents','checkedNames']); +const emit = defineEmits(['addContents','checkedNames','endVoteId','voteEnded','voteDelete']); const addContents = (itemList ,voteId) =>{ emit('addContents',itemList ,voteId); } const checkedNames = (numList) =>{ emit('checkedNames',numList); } +const endVoteId = (VoteId) =>{ + emit('endVoteId',VoteId); +} +const voteEnded = (id) =>{ + emit('voteEnded',id); +} +const voteDelete = (id) =>{ + emit('voteDelete',id); +} +const updateVote = (id) =>{ + emit('updateVote',id); +} +const randomList = (randomList , id) =>{ + emit('randomList',randomList,id); +} diff --git a/src/components/voteboard/voteResultCard.vue b/src/components/voteboard/voteResultCard.vue index 2c318a5..13b7a15 100644 --- a/src/components/voteboard/voteResultCard.vue +++ b/src/components/voteboard/voteResultCard.vue @@ -2,14 +2,15 @@
  • - +
    - 투표결과 + 투표결과
    -
    돼지고기
    +
    {{ data[0].LOCVOTCON }}
    +
    {{randomResultNum }}
@@ -17,6 +18,16 @@ diff --git a/src/components/voteboard/voteResultList.vue b/src/components/voteboard/voteResultList.vue index c0f9a66..5a8e4d0 100644 --- a/src/components/voteboard/voteResultList.vue +++ b/src/components/voteboard/voteResultList.vue @@ -2,9 +2,10 @@
- + - +
@@ -12,6 +13,28 @@