P-82 Макет тестов

This commit is contained in:
Denzel committed 2025-01-27 10:16:18 +03:00
1 parent 35dcabf162
commit 08ccc34ede
2 files changed
+20 -7

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import axios from "axios";
const spravURL = 'http://10.252.44.33/accounting6/images/photo/'
const spravURLBase = 'http://10.252.44.33/accounting6/'
const baseURL = process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:8000/' : `http://${window.location.host}/`;
const baseWS = process.env.NODE_ENV == 'development' ? 'ws://127.0.0.1:8000/' : `ws://${window.location.host}/`;
const baseWS = process.env.NODE_ENV === 'development' ? 'ws://127.0.0.1:8000/' : `ws://${window.location.host}/`;
// const baseURL = process.env.NODE_ENV == 'development'? 'http://127.0.0.1:8000/': `http://10.252.44.60:9965/`;
// const baseWS = process.env.NODE_ENV == 'development'? 'ws://127.0.0.1:8000/': `ws://10.252.44.60:9966/`;
// для релизного меняем 'http://ukd/'
+19 -6
View File
@@ -24,12 +24,26 @@
<v-data-table
:headers="headers"
:items="filteredTests"
class="elevation-1"
hide-default-footer
item-value="id"
>
<template #item.image="{ item }">
<v-img :src="item.image" alt="Test Image" height="100" width="100"/>
<v-img :src="item.image" alt="Test Image" height="200" width="200"/>
</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>
</template>
<template #item.actions="{ item }">
@@ -62,6 +76,7 @@
</v-container>
</template>
<script>
import {computed, ref} from 'vue';
@@ -73,8 +88,6 @@ export default {
const headers = [
{text: 'Картинка', value: 'image', sortable: false},
{text: 'Название', value: 'title', align: 'start'},
{text: 'Описание', value: 'description'},
{text: 'Дата', value: 'date'},
{text: 'Действия', value: 'actions', sortable: false},
];
@@ -84,7 +97,7 @@ export default {
title: 'Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий',
type: 'test',
description: 'Краткое описание тестирования',
date: '22.06.2024',
date: '28.02.2025',
questions: 20,
time: '15 минут',
attempts: 1,
@@ -95,7 +108,7 @@ export default {
title: 'Удобство раздела тестирования',
type: 'survey',
description: 'Опрос среди сотрудников ЦОД МФ',
date: '22.06.2024',
date: '22.06.2025',
questions: 28,
time: null,
attempts: null,