P-29 скролл

This commit is contained in:
iriska-gri committed 2024-05-22 08:06:44 +03:00
1 parent ffbbddcfa5
commit d0f19d6c90
3 files changed
+59 -48

No files matched your search

@@ -1,5 +1,5 @@
<template> <template>
<v-app class="overflow-hidden"> <v-app >
<v-app-bar <v-app-bar
:elevation="accountStore.cod2user ? 2 : 0" :elevation="accountStore.cod2user ? 2 : 0"
density="compact" density="compact"
@@ -1,7 +1,7 @@
<template> <template>
<pattern-tabs :tabs="tabs_items"> <pattern-tabs :tabs="tabs_items">
<template v-slot:item> <template v-slot:item>
<v-window-item class="gap h-100" value="mainInfo"> <v-window-item class="gap h-100 " value="mainInfo">
<MainInfoSafety <MainInfoSafety
:formainpage="safetyData.mainpage_file" :formainpage="safetyData.mainpage_file"
:responsibility="safetyData.type_resp" :responsibility="safetyData.type_resp"
+57 -46
View File
@@ -1,23 +1,32 @@
<template> <template>
<v-row no-gutters class="h-100">
<v-row no-gutters class="bg-red"> <v-col cols="9" class="flex-column">
<!-- <v-col cols="9" class="flex-column" > <v-row no-gutters class="h-100 justify-center">
<v-row no-gutters class="h-100 justify-center"> <v-col
<v-col lg="6" class="meheight" v-for="schema in formainpage" :key="schema.id"> lg="6"
<VuePdfEmbed v-if="schema.url.endsWith('.pdf')" class="meheight"
:source="burl + schema.url" v-for="schema in formainpage"
width="500" :key="schema.id"
@click="openFirstPlan_opener(schema)"/> >
<v-img v-else <VuePdfEmbed
class="cursor-pointer" v-if="schema.url.endsWith('.pdf')"
:src="burl + schema.url" :source="burl + schema.url"
@click="openFirstPlan_opener(schema)"> width="500"
</v-img> @click="openFirstPlan_opener(schema)"
</v-col> />
</v-row> <v-img
</v-col> --> v-else
<v-col cols="3" class="d-flex flex-column bg-red h-100 overflow-hidden"> class="cursor-pointer"
<div class=" overflow-y-auto h-100 bg-orange"> :src="burl + schema.url"
@click="openFirstPlan_opener(schema)"
>
</v-img>
</v-col>
</v-row>
</v-col>
<v-col cols="3" class="d-flex flex-column h-100">
<v-row no-gutters class="h-0 overflow-auto">
<v-col>
<v-col class="v-col-auto "> <v-col class="v-col-auto ">
<div class="text-h6 d-flex justify-center">Ответственные</div> <div class="text-h6 d-flex justify-center">Ответственные</div>
</v-col> </v-col>
@@ -42,7 +51,7 @@
<div class="text-caption text-grey d-flex justify-center">Данные по ответственным отсутствуют</div> <div class="text-caption text-grey d-flex justify-center">Данные по ответственным отсутствуют</div>
</div> </div>
</v-col> </v-col>
<v-col class="bg-yellow v-col-auto"> <v-col class="v-col-auto">
<div class="text-h6 d-flex justify-center">Комиссии</div> <div class="text-h6 d-flex justify-center">Комиссии</div>
</v-col> </v-col>
<v-col class="v-col-auto"> <v-col class="v-col-auto">
@@ -69,8 +78,16 @@
</v-col> </v-col>
</v-col>
</v-row>
<!-- <div class=" overflow-y-auto h-100 bg-orange">
<!-- <v-dialog v-model="openFirstPlan" :width="900" height="100%">
</div> -->
</v-col>
</v-row>
<!-- <v-dialog v-model="openFirstPlan" :width="900" height="100%">
<v-row class="ma-0 overflow-auto h-0"> <v-row class="ma-0 overflow-auto h-0">
<v-card class="h-100 w-100 pa-0"> <v-card class="h-100 w-100 pa-0">
<v-card-actions class="d-flex justify-space-between"> <v-card-actions class="d-flex justify-space-between">
@@ -99,46 +116,40 @@
</v-card> </v-card>
</v-row> </v-row>
</v-dialog> --> </v-dialog> -->
</div>
</v-col>
</v-row>
</template> </template>
<script setup> <script setup>
import { baseURL, axiosApiInstance } from '@/utils/axios-api' import { baseURL, axiosApiInstance } from "@/utils/axios-api";
import { ref } from 'vue'; import { ref } from "vue";
import VuePdfEmbed from 'vue-pdf-embed'; import VuePdfEmbed from "vue-pdf-embed";
import { saveAs } from 'file-saver'; import { saveAs } from "file-saver";
defineProps({ defineProps({
formainpage: Object, formainpage: Object,
responsibility: Array, responsibility: Array,
commitee: Array, commitee: Array,
require:true require: true,
}) });
const downloadFile = (url, fileName) => { const downloadFile = (url, fileName) => {
axiosApiInstance.get(url, { responseType: 'blob' }) axiosApiInstance.get(url, { responseType: "blob" }).then((response) => {
.then(response => { saveAs(response.data, fileName);
saveAs(response.data, fileName) });
})
}; };
const urlschema=ref(null) const urlschema = ref(null);
const burl = baseURL.slice(0,-1) const burl = baseURL.slice(0, -1);
const openFirstPlan = ref(false) const openFirstPlan = ref(false);
function openFirstPlan_opener(schema){ function openFirstPlan_opener(schema) {
urlschema.value = burl + schema.url urlschema.value = burl + schema.url;
openFirstPlan.value = true openFirstPlan.value = true;
} }
</script> </script>
<style> <style>
.meheight { .meheight {
max-height: 44vh; max-height: 44vh;
} }
</style> </style>