diff --git a/src/back/vote/views.py b/src/back/vote/views.py index 158ce2547..78b076d54 100644 --- a/src/back/vote/views.py +++ b/src/back/vote/views.py @@ -64,7 +64,7 @@ class GetBest(APIView): def get(self, request): # Группировка кандидатов по имени и подсчет каждого count_bests = BestVote.objects.values( - 'cand_name').annotate(total=Count('id')) + 'department_user', 'cand_name').annotate(total=Count('id')) return Response(count_bests) diff --git a/src/front/src/components/vote/VoteAdmin.vue b/src/front/src/components/vote/VoteAdmin.vue index a1f5629d9..f907756e2 100644 --- a/src/front/src/components/vote/VoteAdmin.vue +++ b/src/front/src/components/vote/VoteAdmin.vue @@ -11,15 +11,18 @@ - 88 + {{ perc_bst }}% Лидер номинации - + + {{ department }} - ФИО +
+ {{ employee.name }} +
@@ -78,8 +81,10 @@