From cb8c70639b6ec50793c6d07ac30d03102107314b Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Thu, 23 Oct 2025 16:36:36 +0300 Subject: [PATCH] =?UTF-8?q?chore=20[X-01]:=20=D0=B2=D0=B5=D1=80=D1=81?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/vote/VoteResult.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/front/src/components/vote/VoteResult.vue b/src/front/src/components/vote/VoteResult.vue index 6d46ec1cd..c8e3bdf94 100644 --- a/src/front/src/components/vote/VoteResult.vue +++ b/src/front/src/components/vote/VoteResult.vue @@ -38,9 +38,9 @@ + style="height: 30vh; overflow-y: auto;"> - {{ department }} + {{ department }} Победитель: {{ winner.employee.fio || winner.name }} 🏆 @@ -162,14 +162,14 @@ - Результаты голосования: {{ activeDepartment }} + Результаты голосования: {{ activeDepartment }}

@@ -191,9 +191,8 @@ Должность: {{ answer.employee ? answer.employee.post : '' }}

- { + console.log(question); + if (typeof question === 'undefined') return 100 const totalVotes = question.answers.reduce((sum, answer) => sum + answer.count, 0); return totalVotes > 0 ? (count / totalVotes) * 100 : 0; };