From 97ef96cf36b99cbb44511f3ceef35fa9bb266313 Mon Sep 17 00:00:00 2001 From: Andrei Filippov Date: Tue, 15 Oct 2024 11:30:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D1=81=D0=BF=D0=B8?= =?UTF-8?q?=D1=81=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/back/vote/views.py | 2 -- src/front/src/components/VoteForm.vue | 48 +++++++++++++++++++++++++++ src/front/src/views/Vote.vue | 47 ++++++++++++++++---------- 3 files changed, 78 insertions(+), 19 deletions(-) create mode 100644 src/front/src/components/VoteForm.vue diff --git a/src/back/vote/views.py b/src/back/vote/views.py index e7a60ec5b..10e97cf86 100644 --- a/src/back/vote/views.py +++ b/src/back/vote/views.py @@ -20,8 +20,6 @@ class GetForBst(APIView): def get(self, request): user_login = request.GET.get('login') dep_id = request.GET.get('dep') - print(user_login) - print(dep_id) emp_user = DictEmployee.objects.filter(Q(id_dict_department=dep_id), ~Q( post="Начальник отдела"), ~Q(login=user_login)) return Response(GetEmpSerializer(emp_user, many=True).data) diff --git a/src/front/src/components/VoteForm.vue b/src/front/src/components/VoteForm.vue new file mode 100644 index 000000000..9a30fbb79 --- /dev/null +++ b/src/front/src/components/VoteForm.vue @@ -0,0 +1,48 @@ + + + \ No newline at end of file diff --git a/src/front/src/views/Vote.vue b/src/front/src/views/Vote.vue index ba58fc19e..bb6f42647 100644 --- a/src/front/src/views/Vote.vue +++ b/src/front/src/views/Vote.vue @@ -33,16 +33,18 @@ - Форма + Лучший сотрудник + + + - - + назад - @@ -82,12 +84,18 @@ - Форма + СПАСИБО + + + + + + - - + назад @@ -105,18 +113,20 @@ \ No newline at end of file