Merge branch 'Alex' into develop
This commit is contained in:
commit
93f11f24ea
2 files changed
+19
-2
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>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<v-window v-model="currentTab" class="h-100">
|
<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-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-col
|
||||||
v-for="voting in sortedVotes"
|
v-for="voting in sortedVotes"
|
||||||
:key="voting.id"
|
:key="voting.id"
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
<NoneVote v-else :current="currentTab == 'active' ? 'Текущих' : 'Завершенных'"/>
|
||||||
</v-tabs-window-item>
|
</v-tabs-window-item>
|
||||||
<!-- Конструктор -->
|
<!-- Конструктор -->
|
||||||
<v-tabs-window-item v-if="accountStore.user.is_staff" class="h-100 overflow-auto" value="constructor">
|
<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 VoteConstructor from "@/components/vote/VoteConstructor.vue";
|
||||||
import CurrentVote from "@/components/vote/CurrentVote.vue";
|
import CurrentVote from "@/components/vote/CurrentVote.vue";
|
||||||
import VoteCardVue from "@/components/vote/VoteCard.vue";
|
import VoteCardVue from "@/components/vote/VoteCard.vue";
|
||||||
|
import NoneVote from "@/components/vote/NoneVote.vue"
|
||||||
import {useRoute, useRouter} from "vue-router";
|
import {useRoute, useRouter} from "vue-router";
|
||||||
import VoteResult from "@/components/vote/VoteResult.vue";
|
import VoteResult from "@/components/vote/VoteResult.vue";
|
||||||
import {deleteVote, getVoteDetail, getVoteResult, getVotes} from "@/utils/axios-api";
|
import {deleteVote, getVoteDetail, getVoteResult, getVotes} from "@/utils/axios-api";
|
||||||
@@ -73,7 +75,7 @@ import {pagecounter} from '@/utils/universal_functions'
|
|||||||
export default {
|
export default {
|
||||||
methods: {formatDate},
|
methods: {formatDate},
|
||||||
|
|
||||||
components: {CurrentVote, VoteConstructor, VoteCardVue, VoteResult},
|
components: {CurrentVote, VoteConstructor, VoteCardVue, VoteResult, NoneVote},
|
||||||
setup() {
|
setup() {
|
||||||
pagecounter()
|
pagecounter()
|
||||||
const accountStore = useAccountStore();
|
const accountStore = useAccountStore();
|
||||||
|
|||||||
Reference in new issue
Block a user