142 lines
6.5 KiB
Vue
142 lines
6.5 KiB
Vue
<template>
|
|
<v-card class="h-100">
|
|
<v-row no-gutters class="h-100">
|
|
<v-col cols="9">
|
|
<v-card class="h-100 d-flex flex-column">
|
|
<v-row class="ma-0 overflow-auto h-0">
|
|
<v-col
|
|
cols="6"
|
|
class="h-100 gap">
|
|
<v-card class="h-100">
|
|
<v-img
|
|
class="cursor-pointer"
|
|
:src="`${burl}/media/safety/schemas/Схема1.jpg`"
|
|
height="100%"
|
|
@click="openFirstPlan = true">
|
|
</v-img>
|
|
</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="`${burl}/media/safety/schemas/Схема1.jpg`"
|
|
class="cursor-pointer"
|
|
height="100%"
|
|
width="100%"
|
|
@click="openFirstPlan = false">
|
|
</v-img>
|
|
</v-card>
|
|
</v-row>
|
|
</v-dialog>
|
|
</v-col>
|
|
<v-col
|
|
cols="6"
|
|
class="h-100 gap">
|
|
<v-card class="h-100">
|
|
<v-img
|
|
:src="`${burl}/media/safety/schemas/Схема2.jpg`"
|
|
class="cursor-pointer"
|
|
height="100%"
|
|
@click="openSecondPlan = true">
|
|
</v-img>
|
|
<v-dialog v-model="openSecondPlan" :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="openSecondPlan = false">
|
|
</v-btn>
|
|
<v-img
|
|
:src="`${burl}/media/safety/schemas/Схема2.jpg`"
|
|
class="cursor-pointer"
|
|
height="100%"
|
|
width="100%"
|
|
@click="openSecondPlan = false">
|
|
</v-img>
|
|
</v-card>
|
|
</v-row>
|
|
</v-dialog>
|
|
</v-card>
|
|
</v-col>
|
|
</v-row>
|
|
<v-row class="ma-0 overflow-auto h-0">
|
|
<v-col class="h-100 gap">
|
|
<v-card class="h-100">
|
|
<v-img
|
|
:src="`${burl}/media/safety/schemas/План.jpg`" @click="openImg = true"
|
|
class="cursor-pointer"
|
|
height="100%"
|
|
width="100%">
|
|
</v-img>
|
|
<v-dialog v-model="openImg" :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="openImg = false">
|
|
</v-btn>
|
|
<v-img
|
|
:src="`${burl}/media/safety/schemas/План.jpg`"
|
|
class="cursor-pointer"
|
|
height="100%"
|
|
width="100%"
|
|
@click="openImg = false">
|
|
</v-img>
|
|
</v-card>
|
|
</v-row>
|
|
</v-dialog>
|
|
</v-card>
|
|
</v-col>
|
|
</v-row>
|
|
</v-card>
|
|
</v-col>
|
|
<v-col cols="3" 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-col>
|
|
</v-row>
|
|
</v-card>
|
|
</template>
|
|
|
|
<script setup>
|
|
|
|
import { baseURL, axiosApiInstance } from '@/utils/axios-api'
|
|
import { ref } from 'vue';
|
|
|
|
const burl = baseURL.slice(0,-1)
|
|
const openImg = ref(false)
|
|
const openFirstPlan = ref(false)
|
|
const openSecondPlan = ref(false)
|
|
const responsibility = ref([])
|
|
|
|
function getResponsibility() {
|
|
axiosApiInstance.get(`api/safety/responsibility/`).then(result => {
|
|
responsibility.value = result.data.users
|
|
|
|
})
|
|
}
|
|
|
|
getResponsibility()
|
|
|
|
|
|
</script> |