P-29 скролл
This commit is contained in:
1 parent
ffbbddcfa5
commit
d0f19d6c90
3 files changed
+46
-35
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"
|
||||||
|
|||||||
@@ -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 lg="6" class="meheight" v-for="schema in formainpage" :key="schema.id">
|
<v-col
|
||||||
<VuePdfEmbed v-if="schema.url.endsWith('.pdf')"
|
lg="6"
|
||||||
|
class="meheight"
|
||||||
|
v-for="schema in formainpage"
|
||||||
|
:key="schema.id"
|
||||||
|
>
|
||||||
|
<VuePdfEmbed
|
||||||
|
v-if="schema.url.endsWith('.pdf')"
|
||||||
:source="burl + schema.url"
|
:source="burl + schema.url"
|
||||||
width="500"
|
width="500"
|
||||||
@click="openFirstPlan_opener(schema)"/>
|
@click="openFirstPlan_opener(schema)"
|
||||||
<v-img v-else
|
/>
|
||||||
|
<v-img
|
||||||
|
v-else
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
:src="burl + schema.url"
|
:src="burl + schema.url"
|
||||||
@click="openFirstPlan_opener(schema)">
|
@click="openFirstPlan_opener(schema)"
|
||||||
|
>
|
||||||
</v-img>
|
</v-img>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-col> -->
|
</v-col>
|
||||||
<v-col cols="3" class="d-flex flex-column bg-red h-100 overflow-hidden">
|
<v-col cols="3" class="d-flex flex-column h-100">
|
||||||
<div class=" overflow-y-auto h-100 bg-orange">
|
<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,6 +78,14 @@
|
|||||||
|
|
||||||
|
|
||||||
</v-col>
|
</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-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">
|
||||||
@@ -99,42 +116,36 @@
|
|||||||
</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>
|
||||||
|
|||||||
Reference in new issue
Block a user