From 52625d4992466df48b90b66262fdac3b121105e8 Mon Sep 17 00:00:00 2001 From: Denzel Date: Mon, 17 Feb 2025 16:32:30 +0300 Subject: [PATCH] =?UTF-8?q?refactor=20[P-36=20=D0=A3=D0=9C=D0=A2]:=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B0=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D0=BA=D1=80=D0=B5=D1=82=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=82?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/testing/BodyDetailTesting.vue | 15 ++- .../src/components/testing/DetailCardTest.vue | 104 ++++++++++++------ .../testing/HeaderDetailTesting.vue | 9 +- .../src/components/testing/QuestionBlock.vue | 4 +- .../src/components/testing/TestResults.vue | 2 +- src/front/src/views/TestHomePage.vue | 13 ++- 6 files changed, 98 insertions(+), 49 deletions(-) diff --git a/src/front/src/components/testing/BodyDetailTesting.vue b/src/front/src/components/testing/BodyDetailTesting.vue index 69bf87e35..90e378b4f 100644 --- a/src/front/src/components/testing/BodyDetailTesting.vue +++ b/src/front/src/components/testing/BodyDetailTesting.vue @@ -5,16 +5,18 @@ Информация -

Текст описания теста

- Текст описания технических возможностей тестирования (можно пропускать вопросы, - возвращаться, менять ответы, завершить досрочно тест...) + {{ data?.description }} +

+

+ Время на прохождение — {{ data?.time }} минут +

+

+ Срок окончания — {{ new Date(data?.dateend).toLocaleDateString() }}

-

Время на прохождение — 15 минут

-

Срок прохождения — 22.06.2024

-

Попытка 1 из 2

+

Попытка 1 из {{ data?.attemps_number }}

Начать @@ -29,6 +31,7 @@ export default { props: { startTest: Function, + data: Object, }, }; diff --git a/src/front/src/components/testing/DetailCardTest.vue b/src/front/src/components/testing/DetailCardTest.vue index 2af8fb157..ab415d289 100644 --- a/src/front/src/components/testing/DetailCardTest.vue +++ b/src/front/src/components/testing/DetailCardTest.vue @@ -6,19 +6,20 @@ :formattedTime="formattedTime" :finishTest="openFinishDialog" :currentQuestion="currentQuestion" - :totalQuestions="questions.length" + :totalQuestions="data?.question_count" @change-question="changeQuestion" + :data="data" /> - + @@ -30,7 +31,7 @@ :testPassed="testPassed" :correctAnswers="correctAnswers" :answeredQuestions="answeredQuestions" - :totalQuestions="questions.length" + :totalQuestions="data.question_count" :formattedTime="formattedTime" /> @@ -49,21 +50,28 @@