From b3b6c3922768b0d4462ec3d4e31478ee7b31871a Mon Sep 17 00:00:00 2001 From: Andrei Filippov Date: Wed, 23 Oct 2024 14:51:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BF=D1=80=D0=BE=D1=81=D0=BC=D0=BE=D1=82=D1=80?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/vote/VoteAdmin.vue | 20 ++++++++++++++++++++ src/front/src/components/vote/VoteForm.vue | 1 - src/front/src/views/Vote.vue | 14 ++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/front/src/components/vote/VoteAdmin.vue diff --git a/src/front/src/components/vote/VoteAdmin.vue b/src/front/src/components/vote/VoteAdmin.vue new file mode 100644 index 000000000..19d75da1a --- /dev/null +++ b/src/front/src/components/vote/VoteAdmin.vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/src/front/src/components/vote/VoteForm.vue b/src/front/src/components/vote/VoteForm.vue index 796cc1fa8..2b1ee8bc3 100644 --- a/src/front/src/components/vote/VoteForm.vue +++ b/src/front/src/components/vote/VoteForm.vue @@ -31,7 +31,6 @@ - diff --git a/src/front/src/views/Vote.vue b/src/front/src/views/Vote.vue index 9ce407907..4a058adc6 100644 --- a/src/front/src/views/Vote.vue +++ b/src/front/src/views/Vote.vue @@ -58,6 +58,10 @@ + + ИНФОРМАЦИЯ О ХОДЕ
+ ГОЛОСОВАНИЯ
+
@@ -109,6 +113,9 @@ import VoteForm from '@/components/vote/VoteForm.vue'; import PercBst from '@/components/vote/PercBst.vue'; import PercThn from '@/components/vote/PercThn.vue'; import CountDown from '@/components/CountDown.vue'; +import { useAccountStore } from '@/store/AccountStore'; +let admin_panel = ref(false); +let account_login = useAccountStore().user.login; export default { @@ -133,11 +140,18 @@ export default { isFlipped2.value = !isFlipped2.value; } + if (account_login == '9966-00-011') { + admin_panel = true; + console.log(admin_panel); + } + return { isFlipped1, toggleFlip1, isFlipped2, toggleFlip2, + account_login, + admin_panel, }; }, };