Merge branch 'Alex' into razrab
This commit is contained in:
commit
6a11bddacf
3 files changed
+81
-54
No files matched your search
@@ -1,47 +1,71 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-container :fluid="true">
|
<v-row no-gutters class="flex-column h-100 gap pa-1">
|
||||||
<v-card>
|
<v-col lg="1" class="w100 h-100">
|
||||||
<v-tabs
|
<v-card>
|
||||||
v-model="tab"
|
<v-tabs
|
||||||
bg-color="teal-darken-1"
|
v-model="tab"
|
||||||
slider-color="teal-darken-2"
|
bg-color="teal-darken-1"
|
||||||
:grow="true">
|
slider-color="teal-darken-2"
|
||||||
<v-tab selected-class="isActiveTab" value="document">Библиотека документов</v-tab>
|
:grow="true">
|
||||||
<v-tab selected-class="isActiveTab" value="testings">Тестирование</v-tab>
|
<v-tab selected-class="isActiveTab" value="document">Библиотека документов</v-tab>
|
||||||
</v-tabs>
|
<v-tab selected-class="isActiveTab" value="testings">Тестирование</v-tab>
|
||||||
</v-card>
|
</v-tabs>
|
||||||
<v-window v-model="tab">
|
</v-card>
|
||||||
<v-window-item value="document">
|
</v-col>
|
||||||
<v-row class="my-1">
|
<v-col class="w100 h-100">
|
||||||
<v-col cols="5" class="d-flex justify-start h-screen">
|
<v-window v-model="tab" class="h-100">
|
||||||
<v-card v-for="item in safetyData" :key="item.id" class="overflow-y-auto h-auto flex-grow-1 flex-shrink-1">
|
<v-window-item value="document" class="h-100">
|
||||||
<v-card-title>{{ item.name }}</v-card-title>
|
<v-row no-gutters class="gap h-100 ">
|
||||||
<v-container
|
<v-col lg="6">
|
||||||
v-for="category in item.categories"
|
<v-card class="h-100 flex-column d-flex gap">
|
||||||
:key="item.id + category.id"
|
<v-row class="ma-0 my-3 overflow-auto h-0 pb-1">
|
||||||
:fluid="true"
|
<v-card v-for="item in safetyData" :key="item.id" class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||||
class="py-0">
|
<v-card-title>{{ item.name }}</v-card-title>
|
||||||
<v-card-actions>
|
<v-container
|
||||||
<v-btn @click="showMore[item.id + category.id] = !showMore[item.id + category.id]" variant="text">{{ category.name }}</v-btn>
|
v-for="category in item.categories"
|
||||||
<v-btn
|
:key="item.id + category.id"
|
||||||
:icon="showMore[item.id + category.id] ? 'mdi-chevron-up' : 'mdi-chevron-down'"
|
:fluid="true"
|
||||||
@click="showMore[item.id + category.id] = !showMore[item.id + category.id]">
|
class="py-0">
|
||||||
</v-btn>
|
<v-card-actions>
|
||||||
</v-card-actions>
|
<v-btn
|
||||||
<v-expand-transition>
|
@click="showMore[item.id + category.id] = !showMore[item.id + category.id]"
|
||||||
<div v-show="showMore[item.id + category.id]">
|
variant="text">
|
||||||
<v-card-actions v-for="file in category.files" :key="file.id" class="overflow-y-auto">
|
{{ category.name }}
|
||||||
<v-card-text>{{ file.name }}</v-card-text>
|
</v-btn>
|
||||||
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(burl + file.url), loading=true"></v-btn>
|
<v-btn
|
||||||
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(burl + file.url, file.name)"></v-btn>
|
:icon="showMore[item.id + category.id] ? 'mdi-chevron-up' : 'mdi-chevron-down'"
|
||||||
</v-card-actions>
|
@click="showMore[item.id + category.id] = !showMore[item.id + category.id]">
|
||||||
</div>
|
</v-btn>
|
||||||
</v-expand-transition>
|
</v-card-actions>
|
||||||
</v-container>
|
<v-expand-transition>
|
||||||
</v-card>
|
<div v-show="showMore[item.id + category.id]">
|
||||||
</v-col>
|
<v-card-actions v-for="file in category.files" :key="file.id" class="overflow-y-auto">
|
||||||
<v-col cols="7" class="d-flex justify-start h-screen">
|
<v-card-text
|
||||||
<v-card v-show="showFile" class="flex-grow-1 flex-shrink-1 overflow-y-auto">
|
class="cursor-pointer"
|
||||||
|
:ref_="openPDF(burl + file.url)"
|
||||||
|
@click="openPDF(burl + file.url), loading=true">
|
||||||
|
{{ file.name }}
|
||||||
|
</v-card-text>
|
||||||
|
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(burl + file.url), loading=true"></v-btn>
|
||||||
|
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(burl + file.url, file.name)"></v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</div>
|
||||||
|
</v-expand-transition>
|
||||||
|
</v-container>
|
||||||
|
</v-card>
|
||||||
|
</v-row>
|
||||||
|
<v-row class="ma-0 overflow-auto h-0">
|
||||||
|
<v-card
|
||||||
|
title="Здесь будет отображена информация о комиссиях"
|
||||||
|
class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||||
|
</v-card>
|
||||||
|
</v-row>
|
||||||
|
</v-card>
|
||||||
|
</v-col>
|
||||||
|
<v-col>
|
||||||
|
<v-card class="h-100 flex-column d-flex gap">
|
||||||
|
<v-row class="ma-0 overflow-auto h-0">
|
||||||
|
<v-card v-show="showFile" class="mr-2 flex-grow-1 flex-shrink-1 h-100 pa-2 overflow-auto">
|
||||||
<v-container v-if="loading">
|
<v-container v-if="loading">
|
||||||
<v-progress-linear
|
<v-progress-linear
|
||||||
:rounded="5"
|
:rounded="5"
|
||||||
@@ -50,22 +74,25 @@
|
|||||||
</v-progress-linear>
|
</v-progress-linear>
|
||||||
</v-container>
|
</v-container>
|
||||||
<VuePdfEmbed :source="pdfSource" width="720" @rendered="loading = false"/>
|
<VuePdfEmbed :source="pdfSource" width="720" @rendered="loading = false"/>
|
||||||
<v-card-actions>
|
|
||||||
<v-btn block @click="showFile = false">Закрыть</v-btn>
|
|
||||||
</v-card-actions>
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-row>
|
||||||
</v-row>
|
<v-card-actions v-show="showFile">
|
||||||
</v-window-item>
|
<v-btn
|
||||||
|
position="sticky"
|
||||||
|
block
|
||||||
|
@click="showFile = false">Закрыть</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-window-item>
|
||||||
<v-window-item value="testings">
|
<v-window-item value="testings">
|
||||||
<!-- Для тестов с пропсами
|
|
||||||
<TestSafety :data="data"></TestSafety>
|
|
||||||
-->
|
|
||||||
<TestSafety></TestSafety>
|
<TestSafety></TestSafety>
|
||||||
</v-window-item>
|
</v-window-item>
|
||||||
</v-window>
|
</v-window>
|
||||||
|
</v-col>
|
||||||
</v-container>
|
</v-row>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user