This commit is contained in:
Nukeap committed 2024-11-11 14:43:39 +03:00
1 parent 83246b9cbb
commit ac735bfb9f
6 files changed
+15 -17

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ class GetNotVoteBst(APIView):
class GetVoteInfo(APIView):
def get(self, request):
print(request.user)
allcod = DictEmplyeeR.objects.filter( ~Q(id_dict_department=1),id_dict_employee__deleted=0)
allcod = DictEmplyeeR.objects.filter( id_dict_employee__deleted=0)
# try:
realdep = allcod.get(id_dict_employee__login=request.user)
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "front",
"version": "0.0.76",
"version": "0.0.77",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "front",
"version": "0.0.76",
"version": "0.0.77",
"dependencies": {
"-": "^0.0.1",
"@ckeditor/ckeditor5-build-classic": "^41.4.2",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "front",
"version": "0.0.76",
"version": "0.0.77",
"scripts": {
"dev": "vite",
"build": "vite build",
+5 -7
View File
@@ -1,9 +1,8 @@
<template>
<v-row class="pa-2">
<v-col cols="6" class=''>
<v-col>
<v-row justify="center" align="center" class="pa-2">
<v-col justify="center" align="center" class="flex-column">
<v-card width="700" height="820" class="elevation-12">
<v-card class="mb-2" color="teal-darken-1" elevation="0">
<!-- <v-card-title>Голосование</v-card-title> -->
<v-card-title color="teal-darken-1">&laquo;Мой коллега самый лучший&raquo;</v-card-title>
@@ -27,7 +26,6 @@
</div>
</v-card>
</v-card>
</v-col>
<v-card color="teal-darken-1" class="ma-2">
<v-card-title>ФИО не участвовавших в голосовании</v-card-title>
</v-card>
@@ -42,7 +40,7 @@
</v-card>
</v-card>
</v-card>
</v-col>
<v-col justify="center" align="center">
<v-card width="700" height="820" class="elevation-12">
@@ -317,7 +315,7 @@ export default {
.scroll-leaders {
overflow-y: scroll;
height: 95px;
height: 125px;
}
.scroll-window {
+2 -2
View File
@@ -2,8 +2,8 @@
<v-form @submit="voteSend">
<v-card id="scroll-window-chekbox" height="300" elevation="0">
<!-- Форма голосования -->
<v-virtual-scroll :items="type_fetch=='best'?persons.filter(e=>e.post!='Начальник отдела'):persons" :item-height="40">
<v-virtual-scroll :items="persons.filter(e=>e.id_dict_department!=1)" :item-height="40">
<template v-slot:default="{ item }">
<v-checkbox v-model="vote" :id="item.fio" :value="item.fio" :label="item.fio" required />
</template>
+4 -4
View File
@@ -161,7 +161,7 @@
<template v-slot:activator="{ props: activatorProps }">
<v-btn v-bind="activatorProps " variant='plain'
class="procent_card_font pa-0">
{{ Math.round(voteresults.usersvotedbest.length*100/(mydepartment.length+1))}}%
{{ Math.round((voteresults.usersvotedbest.length*100/(mydepartment.length+1)).toFixed(2))}}%
</v-btn>
</template>
<template v-slot:default="{ isActive }">
@@ -182,7 +182,7 @@
</v-col>
<v-col v-else justify="center" align="center" cols="6" class="procent_card_font pa-0">
<span>{{ (Math.round(voteresults.usersvotedbest.filter(e=>e.department_user==mydepartment[0].department).length )*100/(mydepartment.length+1))}}%</span>
<span>{{ (Math.round(((voteresults.usersvotedbest.filter(e=>e.department_user==mydepartment[0].department).length )*100/(mydepartment.length+1)).toFixed(2)))}}%</span>
</v-col>
<v-col v-if="admin_panel" justify="center" align="center" cols="6" class=" pa-0">
@@ -190,7 +190,7 @@
<template v-slot:activator="{ props: activatorProps }">
<v-btn v-bind="activatorProps " variant='plain'
class="procent_card_font pa-0" >
<span>{{ Math.round(voteresults.uservotedthanks.length*100/(allsorted.length+1))}}%</span>
<span>{{ Math.round((voteresults.uservotedthanks.length*100/(allsorted.length+1)).toFixed(2))}}%</span>
</v-btn>
</template>
<template v-slot:default="{ isActive }">
@@ -209,7 +209,7 @@
</v-dialog>
</v-col>
<v-col v-else justify="center" align="center" cols="6" class="procent_card_font pa-0">
<span>{{ Math.round(voteresults.uservotedthanks.length*100/(allsorted.length+1))}}%</span>
<span>{{ Math.round((voteresults.uservotedthanks.length*100/(allsorted.length+1)).toFixed(2))}}%</span>
</v-col>
</v-col>
<v-col cols="12" class="d-flex justify-center align-start pa-0">