Исправлено отображение ответственных, откорректирован вывод схем

This commit is contained in:
Alex committed 2024-04-18 10:32:28 +03:00
1 parent 81568e4300
commit 1ec6c5f474
2 files changed
+43 -13

No files matched your search

@@ -140,17 +140,17 @@ function getSafety() {
})
}
const formainpage = computed({
get(){
get() {
let arr=[]
if(safetyData.value.length>0){
safetyData.value[0].categories.forEach(element => {
element.files.forEach((e)=>{
if(e.formainpage==true){arr.push(e)}})
if(e.formainpage==true){
arr.push(e)}
})
})
}
return arr
}
})
+39 -9
View File
@@ -1,23 +1,53 @@
<template>
<v-row no-gutters class="gap h-100 ">
<v-col class="bg-red flex-column" >
<v-col cols="9" class="flex-column" >
<v-row no-gutters class="h-100 justify-center">
<v-col lg="6" class="bg-yellow meheight " v-for="x in formainpage" :key="key">
<v-img
<v-col lg="6" class="meheight " v-for="schema in formainpage" :key="key">
<VuePdfEmbed v-if="schema.url.endsWith('.pdf')" :source="burl + schema.url" width="500" />
<v-img v-else
class="cursor-pointer"
:src="burl + x.url"
:src="burl + schema.url"
@click="openFirstPlan_opener(schema)">
</v-img>
</v-col>
<!-- <v-col lg="6" class="bg-green">2</v-col>
<v-col lg="6" class="bg-pink">2</v-col> -->
</v-row>
</v-col>
<v-col class="w100">
<v-card class="h-100 d-flex flex-column">
<v-card-title class="text-wrap">Ответственные за противопожарную безопасность</v-card-title>
<v-row class="ma-0 overflow-auto h-0">
<v-card class="pa-1 overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
<list-user
v-for="item in responsibility"
:key=item
:author="item">
</list-user>
</v-card>
</v-row>
</v-card>
<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 flex-grow-0">
<v-btn
density="compact"
variant="text"
icon="mdi-close"
@click="openFirstPlan = false">
</v-btn>
<v-img
:src="urlschema"
class="cursor-pointer"
height="100%"
width="100%"
@click="openFirstPlan = false">
</v-img>
</v-card>
</v-row>
</v-dialog>
</v-col>
</v-row>
<!-- <v-card class="h-100 black_and_white">
<my-helper :pretext=" formainpage" /> -->
<!-- <v-card class="h-100 black_and_white"> -->
<!-- <v-row no-gutters class="h-100">
<v-col cols="9">
<v-card class="h-100 d-flex flex-column black_and_white">