Files
PORTAL_COD2/src/front/src/components/testing/TestResults.vue
T

46 lines
1.3 KiB
Vue

<template>
<v-card v-if="testFinished" class="mt-4 pa-4" flat>
<v-card-title class="text-h6 font-weight-bold">Результаты тестирования</v-card-title>
<v-card-text>
<v-alert v-if="testPassed" type="success"> Тест успешно пройден </v-alert>
<v-alert v-if="!testPassed" type="error"> Тест не пройден </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>