From 77ff1c9449ad6a42f98e8f0fbb8fe63c1230d9c2 Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Fri, 30 May 2025 10:20:44 +0300 Subject: [PATCH] =?UTF-8?q?feat=20[P-227]:=20=D0=BE=D1=82=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D1=8F=D0=B5=D0=BC=20id=20=D1=82=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/testing/DetailCardTest.vue | 2 +- src/front/src/utils/axios-api.js | 1 - src/front/src/views/TestHomePage.vue | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/front/src/components/testing/DetailCardTest.vue b/src/front/src/components/testing/DetailCardTest.vue index 8df8aae53..de1efe642 100644 --- a/src/front/src/components/testing/DetailCardTest.vue +++ b/src/front/src/components/testing/DetailCardTest.vue @@ -209,7 +209,7 @@ export default { } const response = await axiosApiInstance.post( - `/api/tests/testresultview/?${queryParams.toString()}`, + `/api/tests/testresultview/?${queryParams.toString()}&id=${testId}`, answersToSubmit, ); diff --git a/src/front/src/utils/axios-api.js b/src/front/src/utils/axios-api.js index a082b169f..2c2db761e 100644 --- a/src/front/src/utils/axios-api.js +++ b/src/front/src/utils/axios-api.js @@ -247,7 +247,6 @@ async function createTest(testData) { async function assignTest(testId, employeeIds, completionDate) { try { if (!completionDate) { - // If no completion date provided, get it from test details const testDetails = await getTestDetail(testId); completionDate = testDetails.dateend; } diff --git a/src/front/src/views/TestHomePage.vue b/src/front/src/views/TestHomePage.vue index 02d3475c5..d5496b267 100644 --- a/src/front/src/views/TestHomePage.vue +++ b/src/front/src/views/TestHomePage.vue @@ -228,7 +228,6 @@ export default { }) .finally(() => { if (activeTab.value === 0) { - // Считаем только активные тесты для счётчика currentTest.value = getAllTests.value.filter(test => test.is_active).length; } });