P-82 ref
This commit is contained in:
1 parent
548a782cb0
commit
97ee551bf3
2 files changed
+88
-15
No files matched your search
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<v-card-title>{{ item.title }}</v-card-title>
|
||||
<v-card-subtitle>
|
||||
<div>{{ item.description }}</div>
|
||||
</v-card-subtitle>
|
||||
<v-card-actions class="ga-4">
|
||||
<div>
|
||||
<v-icon color="teal-darken-4">mdi-calendar</v-icon>
|
||||
<strong> До:</strong> {{ item.date }}
|
||||
</div>
|
||||
<div>
|
||||
<v-icon color="teal-darken-4">mdi-calendar-text</v-icon>
|
||||
<strong> Вопросов:</strong> {{ item.questions }}
|
||||
</div>
|
||||
<div v-if="item.time">
|
||||
<v-icon color="teal-darken-4">mdi-clock</v-icon>
|
||||
<strong> Время:</strong> {{ item.time }}
|
||||
</div>
|
||||
<div v-if="item.attempts">
|
||||
<v-icon color="deep-orange-accent-4">mdi-alert-outline</v-icon>
|
||||
<strong> Попытки:</strong> {{ item.attempts }}
|
||||
</div>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
item: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -33,18 +33,7 @@
|
||||
</template>
|
||||
|
||||
<template #item.title="{ item }">
|
||||
<v-card-title>
|
||||
{{ item.title }}
|
||||
</v-card-title>
|
||||
<v-card-subtitle>
|
||||
<div>{{ item.description }}</div>
|
||||
</v-card-subtitle>
|
||||
<v-card-actions class="ga-4">
|
||||
<div><v-icon color="teal-darken-4">mdi-calendar</v-icon><strong> До:</strong> {{ item.date }}</div>
|
||||
<div><v-icon color="teal-darken-4">mdi-calendar-text</v-icon> <strong> Вопросов:</strong> {{ item.questions }}</div>
|
||||
<div v-if="item.time"><v-icon color="teal-darken-4">mdi-clock</v-icon><strong> Время:</strong> {{ item.time }}</div>
|
||||
<div v-if="item.attempts"><v-icon color="deep-orange-accent-4">mdi-alert-outline</v-icon><strong> Попытки:</strong> {{ item.attempts }}</div>
|
||||
</v-card-actions>
|
||||
<TestCard :item="item"/>
|
||||
</template>
|
||||
|
||||
<template #item.actions="{ item }">
|
||||
@@ -61,16 +50,63 @@
|
||||
<v-card-title>
|
||||
Завершенные
|
||||
</v-card-title>
|
||||
<p>Список завершенных тестов будет здесь.</p>
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="filteredTests"
|
||||
hide-default-footer
|
||||
hide-default-header
|
||||
item-value="id"
|
||||
>
|
||||
<template #item.image="{ item }">
|
||||
<v-img :src="item.image" alt="Test Image" height="100" width="100"/>
|
||||
</template>
|
||||
|
||||
<template #item.title="{ item }">
|
||||
<TestCard :item="item"/>
|
||||
</template>
|
||||
|
||||
<template #item.actions="{ item }">
|
||||
<v-btn color="teal-darken-4">Посмотреть результаты</v-btn>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-card>
|
||||
</v-tabs-window-item>
|
||||
|
||||
<v-tabs-window-item>
|
||||
<v-card class="mb-6" outlined>
|
||||
<v-card outlined>
|
||||
<v-card-title>
|
||||
Каталог
|
||||
</v-card-title>
|
||||
<p>Список доступных тестов будет здесь.</p>
|
||||
|
||||
<v-text-field
|
||||
v-model="search"
|
||||
class="mx-4"
|
||||
clearable
|
||||
label="Найти тестирование по названию"
|
||||
variant="outlined"
|
||||
/>
|
||||
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="filteredTests"
|
||||
hide-default-footer
|
||||
hide-default-header
|
||||
item-value="id"
|
||||
>
|
||||
<template #item.image="{ item }">
|
||||
<v-img :src="item.image" alt="Test Image" height="100" width="100"/>
|
||||
</template>
|
||||
|
||||
<template #item.title="{ item }">
|
||||
<TestCard :item="item"/>
|
||||
</template>
|
||||
|
||||
<template #item.actions="{ item }">
|
||||
<v-btn v-if="item.type === 'test'" class="mr-4" color="teal-darken-4" variant="tonal">Тренироваться
|
||||
</v-btn>
|
||||
<v-btn color="teal-darken-4">Пройти</v-btn>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-card>
|
||||
</v-tabs-window-item>
|
||||
</v-tabs-window>
|
||||
@@ -80,8 +116,10 @@
|
||||
|
||||
<script>
|
||||
import {computed, ref} from 'vue';
|
||||
import TestCard from "@/components/tests/TestCard.vue";
|
||||
|
||||
export default {
|
||||
components: {TestCard},
|
||||
setup() {
|
||||
const activeTab = ref(0);
|
||||
const search = ref('');
|
||||
|
||||
Reference in new issue
Block a user