From 2dcec977311d154b470ae42481026d5eed5f1c17 Mon Sep 17 00:00:00 2001
From: Nukeap <53114367+Nukeap@users.noreply.github.com>
Date: Wed, 22 Jan 2025 16:46:37 +0300
Subject: [PATCH] 2
---
src/front/src/components/vote/VoteCard.vue | 3 +++
src/front/src/views/VoteHomePage.vue | 14 ++++++++++----
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/front/src/components/vote/VoteCard.vue b/src/front/src/components/vote/VoteCard.vue
index b44da5956..789e57e87 100644
--- a/src/front/src/components/vote/VoteCard.vue
+++ b/src/front/src/components/vote/VoteCard.vue
@@ -42,12 +42,15 @@
{{ voteCard.description }}
+
timeChange = time"/>
+
Завершено: {{
new Date(voteCard.dateend).toLocaleDateString()
}}
+
{{ x.text }}
+ Создать новое голосование
+
+
+
@@ -31,11 +35,11 @@
-
+
-
+
@@ -63,16 +67,17 @@ import {useRoute, useRouter} from "vue-router";
import VoteResult from "@/components/vote/VoteResult.vue";
import {deleteVote, getVoteDetail, getVoteResult, getVotes} from "@/utils/axios-api";
import {formatDate} from "@vueuse/shared";
-
+import { useAccountStore } from "@/store/AccountStore";
export default {
methods: {formatDate},
components: {CurrentVote, VoteConstructor, VoteCardVue, VoteResult},
setup() {
+ const accountStore = useAccountStore();
const tabs = [
{value: "active", text: 'Текущие голосования'},
{value: "completed", text: 'Завершенные голосования'},
- {value: "constructor", text: 'Создать новое голосование'},
+
]
const currentTab = ref("active");
@@ -173,6 +178,7 @@ export default {
updating("active");
return {
+ accountStore,
currentTab,
votes,
sortedVotes,