Merge branch 'Alex' into develop

This commit is contained in:
Nukeap committed 2025-01-23 16:51:16 +03:00
commit 93f11f24ea
2 files changed
+24 -7

No files matched your search

@@ -0,0 +1,15 @@
<template>
<v-container class="h-100">
<v-row justify="center" align="center" class="h-100">
<v-card-title class="text-h4 text-grey-lighten-1">{{ current }} голосований сейчас нет</v-card-title>
</v-row>
</v-container>
</template>
<script>
export default {
props: {
current: ''
}
}
</script>
+9 -7
View File
@@ -16,13 +16,13 @@
<v-window v-model="currentTab" class="h-100">
<!-- Текущие голосования -->
<v-tabs-window-item v-for="x in ['active','completed']" :value="x" class="h-100 overflow-auto">
<v-row class="mx-2">
<v-row v-if="sortedVotes.length > 0" class="mx-2">
<v-col
v-for="voting in sortedVotes"
:key="voting.id"
cols="12"
lg="3"
md="4"
v-for="voting in sortedVotes"
:key="voting.id"
cols="12"
lg="3"
md="4"
>
<VoteCardVue
:isFinished="currentTab==='active'"
@@ -33,6 +33,7 @@
/>
</v-col>
</v-row>
<NoneVote v-else :current="currentTab == 'active' ? 'Текущих' : 'Завершенных'"/>
</v-tabs-window-item>
<!-- Конструктор -->
<v-tabs-window-item v-if="accountStore.user.is_staff" class="h-100 overflow-auto" value="constructor">
@@ -63,6 +64,7 @@ import {computed, ref, watch} from "vue";
import VoteConstructor from "@/components/vote/VoteConstructor.vue";
import CurrentVote from "@/components/vote/CurrentVote.vue";
import VoteCardVue from "@/components/vote/VoteCard.vue";
import NoneVote from "@/components/vote/NoneVote.vue"
import {useRoute, useRouter} from "vue-router";
import VoteResult from "@/components/vote/VoteResult.vue";
import {deleteVote, getVoteDetail, getVoteResult, getVotes} from "@/utils/axios-api";
@@ -73,7 +75,7 @@ import {pagecounter} from '@/utils/universal_functions'
export default {
methods: {formatDate},
components: {CurrentVote, VoteConstructor, VoteCardVue, VoteResult},
components: {CurrentVote, VoteConstructor, VoteCardVue, VoteResult, NoneVote},
setup() {
pagecounter()
const accountStore = useAccountStore();