Merge remote-tracking branch 'origin/develop' into dev-denzel

This commit is contained in:
Denzel committed 2025-01-24 08:33:52 +03:00
commit 582f4238cb
13 files changed
+176 -185

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>
@@ -238,8 +238,8 @@ export default {
if (!accountStore.cod2user) {
clearAxios.get(`api/navigation/screensaver/`).then((data) => {
console.log(data, 'saver--')
// scrimg.value = data.data[0].img;
// console.log(data, 'saver--')
scrimg.value = data.data.img;
});
}
};
@@ -336,6 +336,11 @@ export default {
ico: "mdi-vote",
path: "/vote",
},
{
name: "Тестирование",
ico: "mdi-book-open-blank-variant",
path: "/test",
},
{
name: "Об инспекции",
+15
View File
@@ -167,6 +167,21 @@ const routes = [
component: () =>
import("@/views/VoteHomePage.vue")
},
{
path: "/test",
name: "TestPage",
component: () =>
import("@/views/TestHomePage.vue"),
meta: {
title: "Тестирование",
ico: "mdi-account",
},
},
{
path: '/secret',
name: 'Secret Page',
+23
View File
@@ -0,0 +1,23 @@
<template>
<v-row>
<v-col
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
>
Тестирование
</v-col>
</v-row>
</template>
<script>
import {pagecounter} from '@/utils/universal_functions'
export default {
setup(){
pagecounter()
}
}
</script>
<style>
</style>
+12 -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,16 +64,20 @@ 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";
import {formatDate} from "@vueuse/shared";
import { useAccountStore } from "@/store/AccountStore";
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();
const tabs = [
{value: "active", text: 'Текущие голосования'},