feat [P-227]: отправляем id теста
This commit is contained in:
1 parent
dd3e4ff5e5
commit
77ff1c9449
3 files changed
+1
-3
No files matched your search
@@ -209,7 +209,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const response = await axiosApiInstance.post(
|
const response = await axiosApiInstance.post(
|
||||||
`/api/tests/testresultview/?${queryParams.toString()}`,
|
`/api/tests/testresultview/?${queryParams.toString()}&id=${testId}`,
|
||||||
answersToSubmit,
|
answersToSubmit,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -247,7 +247,6 @@ async function createTest(testData) {
|
|||||||
async function assignTest(testId, employeeIds, completionDate) {
|
async function assignTest(testId, employeeIds, completionDate) {
|
||||||
try {
|
try {
|
||||||
if (!completionDate) {
|
if (!completionDate) {
|
||||||
// If no completion date provided, get it from test details
|
|
||||||
const testDetails = await getTestDetail(testId);
|
const testDetails = await getTestDetail(testId);
|
||||||
completionDate = testDetails.dateend;
|
completionDate = testDetails.dateend;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -228,7 +228,6 @@ export default {
|
|||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
if (activeTab.value === 0) {
|
if (activeTab.value === 0) {
|
||||||
// Считаем только активные тесты для счётчика
|
|
||||||
currentTest.value = getAllTests.value.filter(test => test.is_active).length;
|
currentTest.value = getAllTests.value.filter(test => test.is_active).length;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user