P-29
This commit is contained in:
1 parent
6a2786897a
commit
ffbbddcfa5
5 files changed
+69
-44
No files matched your search
@@ -12,14 +12,11 @@ class FileResponsiblitySerializer(serializers.ModelSerializer):
|
||||
fields = ['file_name', 'id', 'id_order_responsibility']
|
||||
|
||||
class CommeetePersonSerializer(serializers.ModelSerializer):
|
||||
fio=serializers.CharField()
|
||||
id = serializers.IntegerField()
|
||||
login = serializers.CharField()
|
||||
|
||||
|
||||
|
||||
class Meta:
|
||||
model=DictEmployee
|
||||
fields=['fio','id', 'login']
|
||||
fields=['fio','id', 'login', 'tel', 'room', 'email', 'post', 'department']
|
||||
|
||||
class ResponsibilityUsersSerializer(serializers.ModelSerializer):
|
||||
fio=serializers.CharField(source='id_dict_employee.fio')
|
||||
|
||||
@@ -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 class="overflow-hidden">
|
||||
<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>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<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">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
|
||||
<v-row no-gutters class="gap h-100 ">
|
||||
<v-col cols="9" class="flex-column" >
|
||||
<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')"
|
||||
@@ -15,39 +15,64 @@
|
||||
</v-img>
|
||||
</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">
|
||||
<v-expansion-panels multiple flat>
|
||||
<v-expansion-panel v-for="item in responsibility" elevation=0>
|
||||
<v-expansion-panel-title class="font-weight-medium">
|
||||
{{ item.resp.name }}
|
||||
</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-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-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="bg-yellow 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 v-for="x in responsibility">
|
||||
<list-user
|
||||
v-for="item in x.resp.employee"
|
||||
:key=item
|
||||
:author="item">
|
||||
</list-user>
|
||||
</div> -->
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-card>
|
||||
<v-dialog v-model="openFirstPlan" :width="900" height="100%">
|
||||
</div>
|
||||
<div v-else>
|
||||
<div class="text-caption text-grey d-flex justify-center">Данные по комиссиям отсутствуют</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</v-col>
|
||||
|
||||
<!-- <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"
|
||||
@@ -71,10 +96,10 @@
|
||||
width="100%"
|
||||
@click="openFirstPlan = false">
|
||||
</v-img>
|
||||
</v-card>
|
||||
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-dialog>
|
||||
</v-dialog> -->
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
@@ -90,6 +115,7 @@ import { saveAs } from 'file-saver';
|
||||
defineProps({
|
||||
formainpage: Object,
|
||||
responsibility: Array,
|
||||
commitee: Array,
|
||||
require:true
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user