refactor [P-36 УМТ]: карточки тестов
This commit is contained in:
1 parent
8322398c10
commit
18bff58f66
171 files changed
+1908
-68116
No files matched your search
@@ -0,0 +1,49 @@
|
||||
<template>
|
||||
<v-card v-if="testFinished" class="mt-4 pa-4">
|
||||
<v-card-title class="text-h6 font-weight-bold">Результаты тестирования</v-card-title>
|
||||
<v-card-text>
|
||||
<v-alert v-if="testPassed" type="success" class="mt-4 d-flex align-center">
|
||||
Тест успешно пройден
|
||||
</v-alert>
|
||||
<v-alert v-if="!testPassed" type="error" class="mt-4 d-flex align-center">
|
||||
Тест не пройден
|
||||
</v-alert>
|
||||
</v-card-text>
|
||||
|
||||
<v-row class="mt-2">
|
||||
<v-col cols="4">
|
||||
<v-card class="pa-2 text-center">
|
||||
<p class="text-h6">{{ correctAnswers }}/{{ totalQuestions }}</p>
|
||||
<small>Правильных ответов</small>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="4">
|
||||
<v-card class="pa-2 text-center">
|
||||
<p class="text-h6">{{ answeredQuestions }}/{{ totalQuestions }}</p>
|
||||
<small>Ответов дано</small>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="4">
|
||||
<v-card class="pa-2 text-center">
|
||||
<p class="text-h6">{{ formattedTime }}</p>
|
||||
<small>Оставшееся время</small>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
testFinished: Boolean,
|
||||
testPassed: Boolean,
|
||||
correctAnswers: Number,
|
||||
answeredQuestions: Number,
|
||||
totalQuestions: Number,
|
||||
formattedTime: String,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in new issue
Block a user