Созданы карточки для голосования пока только передняя часть без поворотов
This commit is contained in:
1 parent
b294d5794e
commit
2be2c906e4
6 files changed
+88
-146
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 281 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
@@ -1,11 +0,0 @@
|
||||
<template>
|
||||
<h1>Страница голосований</h1>
|
||||
</template>
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { spravURL } from "@/utils/axios-api";
|
||||
import { checkremote } from "@/utils/universal_functions";
|
||||
import { axiosApiInstance } from "@/utils/axios-api";
|
||||
import { useDisplay } from "vuetify";
|
||||
</script>
|
||||
<style></style>
|
||||
@@ -1,62 +1,30 @@
|
||||
<template>
|
||||
<v-app>
|
||||
<v-app-bar
|
||||
:elevation="accountStore.cod2user ? 2 : 0"
|
||||
density="compact"
|
||||
color="app_bar"
|
||||
class="pl-4"
|
||||
>
|
||||
<v-icon
|
||||
v-if="accountStore.cod2user"
|
||||
class="px-3"
|
||||
size="20"
|
||||
color="black_and_white"
|
||||
:icon="rail ? 'mdi-chevron-right' : 'mdi-chevron-left'"
|
||||
@click="rail = !rail"
|
||||
/>
|
||||
<v-app-bar :elevation="accountStore.cod2user ? 2 : 0" density="compact" color="app_bar" class="pl-4">
|
||||
<v-icon v-if="accountStore.cod2user" class="px-3" size="20" color="black_and_white"
|
||||
:icon="rail ? 'mdi-chevron-right' : 'mdi-chevron-left'" @click="rail = !rail" />
|
||||
|
||||
<v-card
|
||||
v-if="accountStore.cod2user"
|
||||
class="bg-transparent py"
|
||||
color="black_and_white"
|
||||
density="compact"
|
||||
:prepend-avatar="imageSrc"
|
||||
title="Портал МИ ФНС России по ЦОД № 2"
|
||||
variant="text"
|
||||
:to="'/'"
|
||||
/>
|
||||
<v-card v-if="accountStore.cod2user" class="bg-transparent py" color="black_and_white" density="compact"
|
||||
:prepend-avatar="imageSrc" title="Портал МИ ФНС России по ЦОД № 2" variant="text" :to="'/'" />
|
||||
<template v-slot:image>
|
||||
<v-img class="bggrad" />
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<template v-if="accountStore.cod2user">
|
||||
<vcard-user :author="accountStore.user" />
|
||||
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark
|
||||
to="/faq"
|
||||
icon="mdi-comment-question-outline"
|
||||
/>
|
||||
<v-btn color="black_and_white" v-bind="props" dark to="/faq" icon="mdi-comment-question-outline" />
|
||||
</template>
|
||||
<span>F.A.Q.</span>
|
||||
</v-tooltip>
|
||||
|
||||
<v-dialog v-model="LikeDialog" persistent width="800">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark
|
||||
icon="mdi-thumb-up-outline"
|
||||
>
|
||||
<v-btn color="black_and_white" v-bind="props" dark icon="mdi-thumb-up-outline">
|
||||
<v-icon></v-icon>
|
||||
<v-tooltip activator="parent" location="bottom"
|
||||
>Обратная связь</v-tooltip
|
||||
>
|
||||
<v-tooltip activator="parent" location="bottom">Обратная связь</v-tooltip>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
@@ -78,29 +46,20 @@
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
icon="mdi-account-multiple-outline"
|
||||
@click="drawer_right = !drawer_right"
|
||||
v-bind="props"
|
||||
/>
|
||||
<v-btn color="black_and_white" icon="mdi-account-multiple-outline" @click="drawer_right = !drawer_right"
|
||||
v-bind="props" />
|
||||
</template>
|
||||
<span>
|
||||
{{
|
||||
drawer_right == true
|
||||
? "Скрыть пользователей"
|
||||
: "Показать пользователей"
|
||||
? "Скрыть пользователей"
|
||||
: "Показать пользователей"
|
||||
}}
|
||||
</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
icon="mdi-logout"
|
||||
@click="accountStore.logout"
|
||||
v-bind="props"
|
||||
/>
|
||||
<v-btn color="black_and_white" icon="mdi-logout" @click="accountStore.logout" v-bind="props" />
|
||||
</template>
|
||||
<span> Выход </span>
|
||||
</v-tooltip>
|
||||
@@ -113,36 +72,19 @@
|
||||
</template>
|
||||
</template>
|
||||
</v-app-bar>
|
||||
<v-navigation-drawer
|
||||
v-if="accountStore.cod2user"
|
||||
:width="245"
|
||||
:rail="rail"
|
||||
permanent
|
||||
v-model="drawer"
|
||||
>
|
||||
<v-navigation-drawer v-if="accountStore.cod2user" :width="245" :rail="rail" permanent v-model="drawer">
|
||||
<v-row class="my-0 h-100">
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-row
|
||||
><v-col>
|
||||
<v-row><v-col>
|
||||
<v-list nav density="compact">
|
||||
<template v-for="(x, key) in navigations">
|
||||
<!-- v-if="!('submenu' in x) || (x.path== '/portal' && accountStore.user.is_staff)" -->
|
||||
<v-list-item
|
||||
v-if="
|
||||
(x.path == '/portal'
|
||||
? accountStore.user.is_superuser
|
||||
: true) && !('submenu' in x)
|
||||
"
|
||||
:key="x.key"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
:disabled="x.path == ''"
|
||||
:to="x.path"
|
||||
:target="x.link ? '_blank' : ''"
|
||||
color="navigation"
|
||||
>
|
||||
|
||||
<v-list-item v-if="(x.path == '/portal'
|
||||
? accountStore.user.is_superuser
|
||||
: true) && !('submenu' in x)
|
||||
" :key="x.key" :title="x.name" :value="x.name" :href="x.link" :disabled="x.path == ''" :to="x.path"
|
||||
:target="x.link ? '_blank' : ''" color="navigation">
|
||||
|
||||
<!-- Чтобы сделать неактивным раздел безопасность, не забыть прописать путь до него в disabled для показа -->
|
||||
<template v-slot:prepend>
|
||||
<v-icon :icon="x.ico" />
|
||||
@@ -152,38 +94,18 @@
|
||||
</template>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-group
|
||||
v-if="x.path != '/portal' && 'submenu' in x"
|
||||
:class="rail ? 'railmenu' : ''"
|
||||
:key="key"
|
||||
:value="x.name"
|
||||
>
|
||||
<v-list-group v-if="x.path != '/portal' && 'submenu' in x" :class="rail ? 'railmenu' : ''" :key="key"
|
||||
:value="x.name">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-list-item
|
||||
v-bind="props"
|
||||
:title="x.name"
|
||||
:prepend-icon="x.ico"
|
||||
color="navigation"
|
||||
>
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top"
|
||||
>
|
||||
<v-list-item v-bind="props" :title="x.name" :prepend-icon="x.ico" color="navigation">
|
||||
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<v-list-item
|
||||
v-for="(child, k) in x.submenu"
|
||||
color="navigation"
|
||||
:href="child.link"
|
||||
:key="k"
|
||||
:value="child.name"
|
||||
:title="!rail ? child.name : menuTruncated(child.name)"
|
||||
:to="child.path"
|
||||
:target="child.link ? '_blank' : ''"
|
||||
>
|
||||
<v-list-item v-for="(child, k) in x.submenu" color="navigation" :href="child.link" :key="k"
|
||||
:value="child.name" :title="!rail ? child.name : menuTruncated(child.name)" :to="child.path"
|
||||
:target="child.link ? '_blank' : ''">
|
||||
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||
{{ child.name }}
|
||||
</v-tooltip>
|
||||
@@ -193,15 +115,8 @@
|
||||
</v-list>
|
||||
|
||||
<v-list nav density="compact">
|
||||
<v-list-item
|
||||
v-for="x of mainmenuStore.portallinks"
|
||||
:key="x.name"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
color="app_bar"
|
||||
:target="x.link ? '_blank' : ''"
|
||||
>
|
||||
<v-list-item v-for="x of mainmenuStore.portallinks" :key="x.name" :title="x.name" :value="x.name"
|
||||
:href="x.link" color="app_bar" :target="x.link ? '_blank' : ''">
|
||||
<template v-slot:prepend>
|
||||
<v-icon :icon="x.imagecode" />
|
||||
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||
@@ -243,13 +158,8 @@
|
||||
<alert-default />
|
||||
</v-main>
|
||||
<v-main v-else class="d-flex align-center text-h3 bg-teal-lighten-2">
|
||||
<v-card
|
||||
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
||||
:image="`${burl}${scrimg}`"
|
||||
>
|
||||
<v-card-text
|
||||
class="justify-center bgCard h-100 ma-3 d-flex flex-column"
|
||||
>
|
||||
<v-card class="h-100 w-100 d-flex justify-center rounded-0 flex-column" :image="`${burl}${scrimg}`">
|
||||
<v-card-text class="justify-center bgCard h-100 ma-3 d-flex flex-column">
|
||||
<v-row class="bgText flex-grow-0">
|
||||
<v-col class="text-center textcolor font-weight-black text-h3 pb-0">
|
||||
Добро пожаловать на портал МИ ФНС России по ЦОД № 2
|
||||
@@ -265,14 +175,8 @@
|
||||
|
||||
<alert-default />
|
||||
</v-main>
|
||||
<v-navigation-drawer
|
||||
v-if="accountStore.cod2user"
|
||||
v-model="drawer_right"
|
||||
rail
|
||||
permanent
|
||||
location="right"
|
||||
@click="rail = false"
|
||||
>
|
||||
<v-navigation-drawer v-if="accountStore.cod2user" v-model="drawer_right" rail permanent location="right"
|
||||
@click="rail = false">
|
||||
<Online-users />
|
||||
</v-navigation-drawer>
|
||||
</v-app>
|
||||
@@ -331,7 +235,7 @@ export default {
|
||||
|
||||
const screenimg = () => {
|
||||
if (!accountStore.cod2user) {
|
||||
|
||||
|
||||
clearAxios.get(`api/navigation/screensaver/`).then((data) => {
|
||||
console.log(data, 'saver--')
|
||||
// scrimg.value = data.data[0].img;
|
||||
@@ -402,6 +306,7 @@ export default {
|
||||
name: "Справочник",
|
||||
link: "http://10.252.44.33/accounting6/members.php",
|
||||
},
|
||||
|
||||
// {
|
||||
// name: 'О пользователе',
|
||||
// ico: 'mdi-account',
|
||||
@@ -425,6 +330,11 @@ export default {
|
||||
ico: "mdi-calendar",
|
||||
path: "/ical",
|
||||
},
|
||||
{
|
||||
name: "Голосование",
|
||||
ico: "mdi-vote",
|
||||
path: "/vote",
|
||||
},
|
||||
|
||||
{
|
||||
name: "Об инспекции",
|
||||
|
||||
@@ -141,10 +141,10 @@ const routes = [
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/votes",
|
||||
name: "Votes",
|
||||
path: "/vote",
|
||||
name: "Vote",
|
||||
component: () =>
|
||||
import("@/components/votes/VotesList.vue")
|
||||
import("@/views/Vote.vue")
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<v-row justify="center" align="center">
|
||||
<!-- Голосование Лучший сотрудник -->
|
||||
<v-col justify="center" align="center">
|
||||
<v-card class="justify-center" image="@/assets/best_employee.jpg" width="500" height="700" variant="elevated">
|
||||
<v-card-title class="vote-card-title">
|
||||
ЛУЧШИЙ СОТРУДНИК
|
||||
</v-card-title>
|
||||
|
||||
<v-card-actions class="justify-center vote-button">
|
||||
<v-btn size="x-large" variant="elevated" color="teal-darken-1">ОТДАТЬ ГОЛОС!</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<!-- Голосование Спасибо -->
|
||||
<v-col justify="center" align="center">
|
||||
<v-card class="justify-center" image="@/assets/thanks.jpeg" width="500" height="700" variant="elevated">
|
||||
<v-card-title class="vote-card-title">
|
||||
СПАСИБО!
|
||||
</v-card-title>
|
||||
|
||||
<v-card-actions class="justify-center vote-button">
|
||||
<v-btn size="x-large" variant="elevated" color="teal-darken-1">ОТДАТЬ ГОЛОС!</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { spravURL } from "@/utils/axios-api";
|
||||
import { useDisplay } from "vuetify";
|
||||
</script>
|
||||
<style>
|
||||
.vote-card-title {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.vote-button {
|
||||
margin-top: 590px;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user