Merge branch 'P-29' into P-25
This commit is contained in:
commit
ecc2a4c7ea
5 files changed
+126
-73
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column gap pa-1">
|
||||
<v-col class="bg-green flex-grow-0">
|
||||
<v-col class="v-col-auto">
|
||||
<v-card>
|
||||
<v-tabs
|
||||
v-model="tab"
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="flex-column">
|
||||
<v-col class="">
|
||||
<v-window v-model="tab" class="h-100">
|
||||
<slot name="item" />
|
||||
</v-window>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<v-app>
|
||||
<v-app >
|
||||
<v-app-bar
|
||||
:elevation="accountStore.cod2user ? 2 : 0"
|
||||
density="compact"
|
||||
@@ -266,6 +266,7 @@
|
||||
permanent
|
||||
location="right"
|
||||
@click="rail = false"
|
||||
|
||||
>
|
||||
<Online-users />
|
||||
</v-navigation-drawer>
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
<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"
|
||||
:commitee="safetyData.type_comm"
|
||||
></MainInfoSafety>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="document">
|
||||
<documentation-safety :docSections = "safetyData" />
|
||||
<documentation-safety />
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="testings">
|
||||
<TestSafety></TestSafety>
|
||||
@@ -17,7 +19,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref, onUpdated } from "vue";
|
||||
import { ref, onMounted, onUpdated } from "vue";
|
||||
|
||||
import { pagecounter } from "@/utils/universal_functions";
|
||||
import PatternTabs from "@/components/UI/PatternTabs.vue";
|
||||
@@ -51,8 +53,9 @@ export default {
|
||||
console.log(safetyData.value, "-------------------------------");
|
||||
});
|
||||
};
|
||||
getSafety()
|
||||
onUpdated(() => getSafety());
|
||||
|
||||
onMounted(() => getSafety())
|
||||
onUpdated(() => getSafety())
|
||||
|
||||
return {
|
||||
safetyData,
|
||||
|
||||
@@ -1,37 +1,95 @@
|
||||
<template>
|
||||
|
||||
<v-row no-gutters class="gap 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-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-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>
|
||||
</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>
|
||||
<v-col class="v-col-auto">
|
||||
<div v-if="responsibility != undefined && responsibility.length > 0" >
|
||||
<v-expansion-panels>
|
||||
<v-expansion-panel v-for="item in responsibility">
|
||||
<v-expansion-panel-title class="font-weight-medium">
|
||||
{{ item.resp.sphere_of_responsibility }}
|
||||
</v-expansion-panel-title>
|
||||
<v-expansion-panel-text>
|
||||
<list-user
|
||||
v-for="user in item.resp.employee"
|
||||
:key=user
|
||||
:author="user">
|
||||
</list-user>
|
||||
</v-expansion-panel-text>
|
||||
</v-expansion-panel>
|
||||
</v-expansion-panels>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div class="text-caption text-grey d-flex justify-center">Данные по ответственным отсутствуют</div>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col class="v-col-auto">
|
||||
<div class="text-h6 d-flex justify-center">Комиссии</div>
|
||||
</v-col>
|
||||
<v-col class="v-col-auto">
|
||||
<div v-if="commitee != undefined && commitee.length > 0" >
|
||||
<v-expansion-panels >
|
||||
<v-expansion-panel v-for="item in commitee">
|
||||
<v-expansion-panel-title class="font-weight-medium">
|
||||
{{ item.comm.name }}
|
||||
</v-expansion-panel-title>
|
||||
<v-expansion-panel-text>
|
||||
<list-user
|
||||
v-for="user in item.comm.com_members"
|
||||
:key=user
|
||||
:author="user">
|
||||
</list-user>
|
||||
</v-expansion-panel-text>
|
||||
</v-expansion-panel>
|
||||
</v-expansion-panels>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div class="text-caption text-grey d-flex justify-center">Данные по комиссиям отсутствуют</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</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 flex-grow-0">
|
||||
<v-card class="h-100 w-100 pa-0">
|
||||
<v-card-actions class="d-flex justify-space-between">
|
||||
<v-btn
|
||||
density="compact"
|
||||
@@ -55,49 +113,43 @@
|
||||
width="100%"
|
||||
@click="openFirstPlan = false">
|
||||
</v-img>
|
||||
</v-card>
|
||||
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-dialog>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-dialog> -->
|
||||
</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,
|
||||
require:true
|
||||
},
|
||||
)
|
||||
defineProps({
|
||||
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>
|
||||
Reference in new issue
Block a user