Merge branch 'Alex' into razrab
This commit is contained in:
commit
470d2e1fe0
4 files changed
+21
-13
No files matched your search
@@ -1,14 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- <v-row class="bg-red w-100">
|
<v-row class="pa-2">
|
||||||
<v-col class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light">
|
<v-col cols="5" class="d-flex flex-column justify-start h-screen gap">
|
||||||
|
<v-card v-for="item in safetyData" :key="item.id" class="overflow-y-auto mb-2 h-auto">
|
||||||
|
|
||||||
</v-col>
|
|
||||||
</v-row> -->
|
|
||||||
<!-- Безопасность -->
|
|
||||||
<v-row>
|
|
||||||
<v-col cols="6">
|
|
||||||
<v-card v-for="item in safetyData" :key="item.id">
|
|
||||||
<v-card-title>{{ item.name }}</v-card-title>
|
<v-card-title>{{ item.name }}</v-card-title>
|
||||||
<v-container
|
<v-container
|
||||||
v-for="category in item.categories"
|
v-for="category in item.categories"
|
||||||
@@ -24,7 +17,7 @@
|
|||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
<v-expand-transition>
|
<v-expand-transition>
|
||||||
<div v-show="showMore[item.id + category.id]">
|
<div v-show="showMore[item.id + category.id]">
|
||||||
<v-card-actions v-for="file in category.files" :key="file.id">
|
<v-card-actions v-for="file in category.files" :key="file.id" class="overflow-y-auto">
|
||||||
<v-card-text>{{ file.name }}</v-card-text>
|
<v-card-text>{{ file.name }}</v-card-text>
|
||||||
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(safetyURL + file.url), loading=true"></v-btn>
|
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(safetyURL + file.url), loading=true"></v-btn>
|
||||||
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(safetyURL + file.url, file.name)"></v-btn>
|
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(safetyURL + file.url, file.name)"></v-btn>
|
||||||
@@ -34,8 +27,23 @@
|
|||||||
</v-container>
|
</v-container>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
<v-col cols="7">
|
||||||
|
<v-card v-show="showFile" class="h-screen overflow-y-auto">
|
||||||
|
<v-container v-if="loading">
|
||||||
|
<v-progress-linear
|
||||||
|
:rounded="5"
|
||||||
|
indeterminate
|
||||||
|
color="teal">
|
||||||
|
</v-progress-linear>
|
||||||
|
</v-container>
|
||||||
|
<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-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-dialog v-model="showFile" width="auto" height="auto">
|
<!-- <v-dialog v-model="showFile" width="auto" height="auto">
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-container v-if="loading">
|
<v-container v-if="loading">
|
||||||
<v-progress-linear
|
<v-progress-linear
|
||||||
@@ -49,7 +57,7 @@
|
|||||||
<v-btn block @click="showFile = false">Закрыть</v-btn>
|
<v-btn block @click="showFile = false">Закрыть</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog> -->
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user