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
+62 -51

No files matched your search

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