Merge branch 'develop' into 38_calendar_back
This commit is contained in:
commit
c2f0c6061a
40 files changed
+2548
-2099
No files matched your search
@@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column gap pa-1">
|
||||
<v-col class="bg-green flex-grow-0">
|
||||
<v-card>
|
||||
<v-tabs
|
||||
v-model="tab"
|
||||
bg-color="teal-darken-1"
|
||||
slider-color="teal-lighten-3"
|
||||
selected-class="active-tab"
|
||||
:grow="true"
|
||||
>
|
||||
<v-tab
|
||||
v-for="(tabitem, key) in tabs"
|
||||
:value="tabitem.value"
|
||||
:key="key"
|
||||
|
||||
>
|
||||
{{ tabitem.title }}
|
||||
</v-tab>
|
||||
</v-tabs>
|
||||
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="flex-column">
|
||||
<v-window v-model="tab" class="h-100">
|
||||
<slot name="item" />
|
||||
</v-window>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
tabs: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
},
|
||||
|
||||
setup() {
|
||||
return {
|
||||
tab: ref(null),
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
@@ -1,169 +1,246 @@
|
||||
<template>
|
||||
<v-row class="ma-1">
|
||||
<v-col lg="6" class="d-flex justify-center align-start">
|
||||
<v-card :elevation="5">
|
||||
<div style="width:915px;height:832px; ">
|
||||
<l-map :zoom="13" :min-zoom="13" :center="markers[0].coordinate">
|
||||
<l-tile-layer :url="`${baseURL}media/Tiles/{z}/{x}/{y}.png`" />
|
||||
<l-marker v-for="marker in markers" :key="marker" :lat-lng="marker.coordinate"
|
||||
:icon="icon(marker.icon)">
|
||||
<l-tooltip>
|
||||
<p>{{ marker.tooltip }}</p>
|
||||
<p style="max-width: 20%; min-width: 20%; word-wrap: break-word;">{{ marker.tooltip_bus }}
|
||||
</p>
|
||||
</l-tooltip>
|
||||
</l-marker>
|
||||
|
||||
</l-map>
|
||||
</div>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col lg="6" class="d-flex flex-column gap">
|
||||
|
||||
<v-card :elevation="5">
|
||||
|
||||
<v-card-title class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4">
|
||||
<v-row>
|
||||
<v-col lg="5" class="d-flex justify-center">Адрес</v-col>
|
||||
<v-col lg="6" class="d-flex justify-center">Время работы</v-col>
|
||||
</v-row>
|
||||
</v-card-title>
|
||||
<v-row class="d-flex justify-center align-center">
|
||||
<v-col lg="4">
|
||||
<v-card-text class="text-subtitle-1">
|
||||
{{ address.building }}
|
||||
</v-card-text>
|
||||
<v-card-text class="text-subtitle-1">
|
||||
{{ address.phone }}
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-col lg="7">
|
||||
<v-list>
|
||||
<v-list-item v-for="work_time in work_times">
|
||||
<v-row>
|
||||
<v-col lg="6" class="text-subtitle-1 d-flex justify-center align-center">{{
|
||||
work_time.day
|
||||
}}</v-col>
|
||||
<v-col lg="6" class="text-subtitle-1 d-flex justify-center align-center">{{
|
||||
work_time.time
|
||||
}}</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
<v-card :elevation="5">
|
||||
<v-card-title class="text-h6 d-flex justify-center bg-teal-lighten-5 text-teal-darken-4">
|
||||
Способ проезда
|
||||
</v-card-title>
|
||||
<v-row no-gutters class="h-100 gap">
|
||||
<v-col lg="5" md="12" sm="12" xs="12" class="flex-column d-flex">
|
||||
<v-card elevation="5" class="h-100" min-height="250">
|
||||
<l-map :zoom="14" :min-zoom="14" :center="markers[0].coordinate">
|
||||
<l-tile-layer :url="`${baseURL}media/Tiles/{z}/{x}/{y}.png`" />
|
||||
<l-marker
|
||||
v-for="marker in markers"
|
||||
:key="marker"
|
||||
:lat-lng="marker.coordinate"
|
||||
:icon="icon(marker.icon)"
|
||||
>
|
||||
<l-tooltip>
|
||||
<p>{{ marker.tooltip }}</p>
|
||||
<p style="max-width: 20%; min-width: 20%; word-wrap: break-word">
|
||||
{{ marker.tooltip_bus }}
|
||||
</p>
|
||||
</l-tooltip>
|
||||
</l-marker>
|
||||
</l-map>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="flex-column">
|
||||
<v-row no-gutters class="h-100 gap flex-column">
|
||||
<v-col lg="3" class="w100 flex-column">
|
||||
<v-card class="h-100 flex-column d-flex" elevation="5">
|
||||
<v-card-title
|
||||
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||
>
|
||||
<v-row>
|
||||
<v-col lg="5" class="d-flex justify-center">Адрес</v-col>
|
||||
<v-col lg="6" class="d-flex justify-center">Время работы</v-col>
|
||||
</v-row>
|
||||
</v-card-title>
|
||||
<v-row class="d-flex justify-center align-center">
|
||||
<v-col lg="4">
|
||||
<v-card-text class="text-subtitle-1">
|
||||
<v-list>
|
||||
<v-list-item v-for="address_path in address_pathes" class="pa-7">
|
||||
<strong>{{ address_path.title_path }}</strong>{{ address_path.path }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
{{ address.building }}
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
<v-card-text class="text-subtitle-1">
|
||||
{{ address.phone }}
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-col lg="7">
|
||||
<v-list>
|
||||
<v-list-item v-for="work_time in work_times" :key="work_time">
|
||||
<v-row>
|
||||
<v-col
|
||||
lg="6"
|
||||
class="text-subtitle-1 d-flex justify-center align-center"
|
||||
>{{ work_time.day }}</v-col
|
||||
>
|
||||
<v-col
|
||||
lg="6"
|
||||
class="text-subtitle-1 d-flex justify-center align-center"
|
||||
>{{ work_time.time }}</v-col
|
||||
>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
<v-col>
|
||||
<v-card class="h-100 flex-column d-flex" elevation="5">
|
||||
<v-card-title
|
||||
class="text-h6 d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||
>
|
||||
Способ проезда
|
||||
</v-card-title>
|
||||
<v-card-text class="text-subtitle-1">
|
||||
<v-list lines="three">
|
||||
<v-list-item
|
||||
v-for="address_path in address_pathes"
|
||||
:key="address_path"
|
||||
>
|
||||
<strong>{{ address_path.title_path }}</strong
|
||||
>{{ address_path.path }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
import { ref } from "vue";
|
||||
import { baseURL } from "@/utils/axios-api";
|
||||
import "leaflet/dist/leaflet.css";
|
||||
import { LMap, LTileLayer, LMarker, LTooltip } from "@vue-leaflet/vue-leaflet";
|
||||
import { L, icon } from "leaflet"
|
||||
import { L, icon } from "leaflet";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
LMap,
|
||||
LTileLayer,
|
||||
LMarker,
|
||||
LTooltip,
|
||||
L,
|
||||
icon
|
||||
},
|
||||
setup() {
|
||||
components: {
|
||||
LMap,
|
||||
LTileLayer,
|
||||
LMarker,
|
||||
LTooltip,
|
||||
L,
|
||||
icon,
|
||||
},
|
||||
setup() {
|
||||
const pathbuild = (icon) => {
|
||||
return `${baseURL}media/map_icons/${icon}.png`;
|
||||
};
|
||||
const icons = {
|
||||
icon_cod: {
|
||||
iconUrl: pathbuild(`fns`),
|
||||
iconSize: [30, 30],
|
||||
iconAnchor: [16, 40],
|
||||
},
|
||||
icon_metro: {
|
||||
iconUrl: pathbuild(`mos_metro`),
|
||||
iconSize: [30, 25],
|
||||
iconAnchor: [10, 20],
|
||||
},
|
||||
icon_mcd: {
|
||||
iconUrl: pathbuild(`mcd_d2`),
|
||||
iconSize: [32, 18],
|
||||
iconAnchor: [10, 20],
|
||||
},
|
||||
icon_bus: {
|
||||
iconUrl: pathbuild(`bus`),
|
||||
iconSize: [18, 18],
|
||||
iconAnchor: [1, 1],
|
||||
},
|
||||
};
|
||||
const markers = ref([
|
||||
{
|
||||
coordinate: [55.83451, 37.40848],
|
||||
icon: icons.icon_cod,
|
||||
tooltip: "МИ ФНС России по ЦОД №2",
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.83309, 37.39933],
|
||||
icon: icons.icon_mcd,
|
||||
tooltip: 'МЦД D2: пл."Трикотажная"',
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.82741, 37.43715],
|
||||
icon: icons.icon_metro,
|
||||
tooltip: 'Ст.метро: "Тушинская"',
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.82705, 37.4411],
|
||||
icon: icons.icon_mcd,
|
||||
tooltip: 'МЦД D2: пл. "Тушинская"',
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.8496, 37.43925],
|
||||
icon: icons.icon_metro,
|
||||
tooltip: 'Ст.метро: "Сходненская"',
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.835274, 37.411052],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка: "Налоговый городок"',
|
||||
tooltip_bus: "Автобусы:№368, №с377",
|
||||
},
|
||||
{
|
||||
coordinate: [55.833193, 37.400858],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка:"МЦД Трикотажная"',
|
||||
tooltip_bus: "Автобусы: №26, №368, №с377, №с396",
|
||||
},
|
||||
{
|
||||
coordinate: [55.82524, 37.43575],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка: "метро Тушинская", выход:5 ',
|
||||
tooltip_bus: "Автобусы: №400, №741, №741к, №856, №436, №575",
|
||||
},
|
||||
{
|
||||
coordinate: [55.8501, 37.43905],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка: "метро Сходненская", выход:9',
|
||||
tooltip_bus: "Автобус: №368",
|
||||
},
|
||||
{
|
||||
coordinate: [55.83607, 37.40569],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка "Храм Сергия Радонежского"',
|
||||
tooltip_bus: "Автобусы: №88, №488, №с377, №с396",
|
||||
},
|
||||
{
|
||||
coordinate: [55.83132, 37.4034],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка "МЦД Трикотажная"',
|
||||
tooltip_bus: "Автобусы: №2, №210, №400Т, №741, №741к, №856, №436, №575",
|
||||
},
|
||||
]);
|
||||
|
||||
const pathbuild = (icon) => {
|
||||
return `${baseURL}media/map_icons/${icon}.png`
|
||||
}
|
||||
const icons = {
|
||||
icon_cod: {
|
||||
iconUrl: pathbuild(`fns`),
|
||||
iconSize: [30, 30],
|
||||
iconAnchor: [16, 40]
|
||||
},
|
||||
icon_metro: {
|
||||
iconUrl: pathbuild(`mos_metro`),
|
||||
iconSize: [30, 25],
|
||||
iconAnchor: [10, 20]
|
||||
},
|
||||
icon_mcd: {
|
||||
iconUrl: pathbuild(`mcd_d2`),
|
||||
iconSize: [32, 18],
|
||||
iconAnchor: [10, 20]
|
||||
},
|
||||
icon_bus: {
|
||||
iconUrl: pathbuild(`bus`),
|
||||
iconSize: [18, 18],
|
||||
iconAnchor: [1, 1]
|
||||
}
|
||||
return {
|
||||
icons,
|
||||
markers,
|
||||
icon,
|
||||
|
||||
address: {
|
||||
building: "125373, Москва, Походный проезд, двл.3, стр 1",
|
||||
phone: "Телефон: 8(495) 198-53-12",
|
||||
},
|
||||
address_pathes: [
|
||||
{
|
||||
title_path: "От станции МЦД «Трикотажная»,",
|
||||
path: 'на автобусе 368, до остановки "Налоговый городок" или пешком (10 минут) до территории Налоговго городка',
|
||||
},
|
||||
{
|
||||
title_path: "От станции метро «Сходненская», выход:9,",
|
||||
path: " 1-й вагон из центра, далее на автобусе № 368",
|
||||
},
|
||||
{
|
||||
title_path: "От станции МЦД «Тушинская»,",
|
||||
path: " проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка",
|
||||
},
|
||||
{
|
||||
title_path: "От станции метро «Тушинская», выход:5,",
|
||||
path: " последний вагон из центра, автобусы №2, №210, №400Т, №741, №741к, №856, №436, №575 до остановки «пл. Трикотажная» или от станции МЦД «Тушинская» проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка",
|
||||
},
|
||||
{
|
||||
title_path: "От остановки автобуса «Храм Сергия Радонежского»",
|
||||
path: " и далее пешком (10 минут) до территории Налоговго городка",
|
||||
},
|
||||
],
|
||||
|
||||
}
|
||||
const markers = ref([
|
||||
{ coordinate: [55.83451, 37.40848], icon: icons.icon_cod, tooltip: "МИ ФНС России по ЦОД №2", tooltip_bus: "" },
|
||||
{ coordinate: [55.83309, 37.39933], icon: icons.icon_mcd, tooltip: "МЦД D2: пл.\"Трикотажная\"", tooltip_bus: "" },
|
||||
{ coordinate: [55.82741, 37.43715], icon: icons.icon_metro, tooltip: "Ст.метро: \"Тушинская\"", tooltip_bus: "" },
|
||||
{ coordinate: [55.82705, 37.4411], icon: icons.icon_mcd, tooltip: "МЦД D2: пл. \"Тушинская\"", tooltip_bus: "" },
|
||||
{ coordinate: [55.8496, 37.43925], icon: icons.icon_metro, tooltip: "Ст.метро: \"Сходненская\"", tooltip_bus: "" },
|
||||
{ coordinate: [55.835274, 37.411052], icon: icons.icon_bus, tooltip: "Остановка: \"Налоговый городок\"", tooltip_bus: "Автобусы:№368, №с377" },
|
||||
{ coordinate: [55.833193, 37.400858], icon: icons.icon_bus, tooltip: "Остановка:\"МЦД Трикотажная\"", tooltip_bus: "Автобусы: №26, №368, №с377, №с396" },
|
||||
{ coordinate: [55.82524, 37.43575], icon: icons.icon_bus, tooltip: "Остановка: \"метро Тушинская\", выход:5 ", tooltip_bus: "Автобусы: №400, №741, №741к, №856, №436, №575" },
|
||||
{ coordinate: [55.8501, 37.43905], icon: icons.icon_bus, tooltip: "Остановка: \"метро Сходненская\", выход:9", tooltip_bus: "Автобус: №368" },
|
||||
{ coordinate: [55.83607, 37.40569], icon: icons.icon_bus, tooltip: "Остановка \"Храм Сергия Радонежского\"", tooltip_bus: "Автобусы: №88, №488, №с377, №с396" },
|
||||
{ coordinate: [55.83132, 37.40340], icon: icons.icon_bus, tooltip: "Остановка \"МЦД Трикотажная\"", tooltip_bus: "Автобусы: №2, №210, №400Т, №741, №741к, №856, №436, №575" },
|
||||
|
||||
|
||||
])
|
||||
|
||||
return {
|
||||
icons,
|
||||
markers,
|
||||
icon,
|
||||
|
||||
address: {
|
||||
"building": "125373, Москва, Походный проезд, двл.3, стр 1",
|
||||
"phone": "Телефон: 8(495) 198-53-12"
|
||||
},
|
||||
address_pathes: [
|
||||
{ "title_path": "От станции МЦД «Трикотажная»,", "path": "на автобусе 368, до остановки \"Налоговый городок\" или пешком (10 минут) до территории Налоговго городка" },
|
||||
{ "title_path": "От станции метро «Сходненская», выход:9,", "path": " 1-й вагон из центра, далее на автобусе № 368" },
|
||||
{ "title_path": "От станции МЦД «Тушинская»,", "path": " проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка" },
|
||||
{ "title_path": "От станции метро «Тушинская», выход:5,", "path": " последний вагон из центра, автобусы №2, №210, №400Т, №741, №741к, №856, №436, №575 до остановки «пл. Трикотажная» или от станции МЦД «Тушинская» проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка" },
|
||||
{ "title_path": "От остановки автобуса «Храм Сергия Радонежского»", "path": " и далее пешком (10 минут) до территории Налоговго городка" },
|
||||
|
||||
],
|
||||
|
||||
work_times: [
|
||||
{ "day": "Понедельник - Четверг", "time": "09:00 - 18:00" },
|
||||
{ "day": "Пятница", "time": "09:00 - 16:45" },
|
||||
{ "day": "Суббота - Воскресенье", "time": "Выходной" },
|
||||
],
|
||||
baseURL,
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
work_times: [
|
||||
{ day: "Понедельник - Четверг", time: "09:00 - 18:00" },
|
||||
{ day: "Пятница", time: "09:00 - 16:45" },
|
||||
{ day: "Суббота - Воскресенье", time: "Выходной" },
|
||||
],
|
||||
baseURL,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
.leaflet-control-attribution {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@@ -0,0 +1,202 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column h-100 gap">
|
||||
<v-col>
|
||||
<v-row no-gutters class="flex-column h-100 gap">
|
||||
<v-col class="w100 flex-grow-0">
|
||||
<v-card class="text-center">
|
||||
<v-card-text class="font-weight-medium text-lg-h6">
|
||||
Межрегиональная инспекция Федеральной налоговой службы по
|
||||
централизованной обработке данных №2
|
||||
|
||||
<p class="font-weight-medium text-lg-subtitle-1 text-sm-caption">
|
||||
создана 01.02.2018 года в соответствии с приказом ФНС России от
|
||||
27.12.2017 №ММВ-7-4/1102
|
||||
</p>
|
||||
|
||||
<p class="mt-3">
|
||||
<a class="text-decoration-none" :href="caCuratorLink"
|
||||
>Работа МИ ФНС России по ЦОД №2 координируется заместителем
|
||||
руководителя ФНС России Будариным Андреем Владимировичем</a
|
||||
>
|
||||
</p>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="d-flex">
|
||||
<v-row no-gutters class="gap">
|
||||
<v-col lg="3" class="flex-column">
|
||||
<v-row no-gutters class="gap flex-column h-100">
|
||||
<v-col class="w100">
|
||||
<v-card class="h-100">
|
||||
<v-card-title class="text-h6 text-uppercase text-center">
|
||||
Начальник инспекции</v-card-title
|
||||
>
|
||||
<v-divider class="mb-3" />
|
||||
|
||||
<v-img
|
||||
:src="checkremote(`${spravURL}${userlinks.login}.jpg`)"
|
||||
height="200"
|
||||
/>
|
||||
|
||||
<v-card-title class="text-h6 text-center">{{
|
||||
userlinks.fio
|
||||
}}</v-card-title>
|
||||
<v-card-text class="text-center text-body-2">
|
||||
<p>
|
||||
Государственный советник Российской Федерации 2 класса
|
||||
</p>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="w100 flex-column d-flex">
|
||||
<general-information-size
|
||||
:size="getstatesize"
|
||||
:title="'Фактическая численнность'"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="w100 flex-column d-flex">
|
||||
<general-information-size
|
||||
:size="getfactsize"
|
||||
:title="'Штатная численность'"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-card class="h-100 flex-column d-flex">
|
||||
<v-card-title class="text-h6 text-uppercase text-center">
|
||||
Основные направления деятельности инспекции
|
||||
</v-card-title>
|
||||
<v-divider class="pb-3" />
|
||||
|
||||
<v-row
|
||||
no-gutters
|
||||
class="gap"
|
||||
:class="lgAndUp ? 'h-0 overflow-auto' : ''"
|
||||
>
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-col
|
||||
class="px-3 py-2 flex-grow-0"
|
||||
v-for="direction in directionworks"
|
||||
:key="direction.id"
|
||||
>
|
||||
<v-card class="d-flex" :elevation="3">
|
||||
<v-col class="d-flex align-center">
|
||||
<v-avatar
|
||||
class="elevation-10 text-teal-darken-4"
|
||||
color="teal-lighten-5"
|
||||
>
|
||||
<v-icon :icon="direction.icon_name"></v-icon>
|
||||
</v-avatar>
|
||||
</v-col>
|
||||
<v-col
|
||||
class="d-flex align-center justify-start text-h6"
|
||||
>
|
||||
{{ direction.direction_title }}
|
||||
</v-col>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-col>
|
||||
<!-- <v-col
|
||||
lg="12"
|
||||
class="px-3"
|
||||
v-for="direction in 10"
|
||||
:key="direction.id"
|
||||
>
|
||||
<v-card class="d-flex" :elevation="3">
|
||||
<v-col class="d-flex align-center justify-center">
|
||||
<v-avatar
|
||||
class="elevation-10 text-teal-darken-4"
|
||||
color="teal-lighten-5"
|
||||
>
|
||||
<v-icon :icon="direction.icon_name"></v-icon>
|
||||
</v-avatar>
|
||||
</v-col>
|
||||
<v-col
|
||||
lg="11"
|
||||
class="d-flex align-center justify-start text-h6"
|
||||
>
|
||||
{{ direction.direction_title }}
|
||||
</v-col>
|
||||
</v-card>
|
||||
</v-col> -->
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row></v-col
|
||||
>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { axiosApiInstance } from "@/utils/axios-api";
|
||||
import { checkremote } from "@/utils/universal_functions";
|
||||
import { spravURL, baseURL } from "@/utils/axios-api";
|
||||
import { useDisplay } from "vuetify";
|
||||
import GeneralInformationSize from "@/components/about_inspection/general_information/GeneralInformationSize.vue";
|
||||
|
||||
export default {
|
||||
components: { GeneralInformationSize },
|
||||
setup() {
|
||||
const { lgAndUp } = useDisplay();
|
||||
const userlinks = ref([]);
|
||||
const getfactsize = ref({ factsize: 0, date_created: new Date() });
|
||||
const getstatesize = ref({ statesize: 0, date_created: new Date() });
|
||||
const directionworks = ref([]);
|
||||
|
||||
const infouser = () => {
|
||||
axiosApiInstance
|
||||
.get("api/accounts/getuser/?userlogin=9966-00-001")
|
||||
.then((res) => {
|
||||
userlinks.value = res.data;
|
||||
});
|
||||
};
|
||||
const getFactSize = () => {
|
||||
axiosApiInstance.get("api/about_inspection/getfactsize/").then((res) => {
|
||||
getfactsize.value = res.data;
|
||||
});
|
||||
};
|
||||
|
||||
const getStateSize = () => {
|
||||
axiosApiInstance.get("api/about_inspection/getstatesize/").then((res) => {
|
||||
getstatesize.value = res.data;
|
||||
});
|
||||
};
|
||||
|
||||
const getInspectionDirections = () => {
|
||||
axiosApiInstance
|
||||
.get("api/about_inspection/getinspectiondirections/")
|
||||
.then((res) => {
|
||||
directionworks.value = res.data;
|
||||
});
|
||||
};
|
||||
|
||||
getInspectionDirections();
|
||||
getStateSize();
|
||||
getFactSize();
|
||||
|
||||
infouser();
|
||||
|
||||
return {
|
||||
userlinks,
|
||||
checkremote,
|
||||
directionworks,
|
||||
getstatesize,
|
||||
getfactsize,
|
||||
spravURL,
|
||||
baseURL,
|
||||
lgAndUp,
|
||||
|
||||
date_now: new Date().toLocaleDateString("ru-RU"),
|
||||
caCuratorLink: ref(
|
||||
"https://www.nalog.gov.ru/rn77/about_fts/fts/structure_fts/ca_fns/9515034/"
|
||||
),
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
<template>
|
||||
<v-card class="flex-grow-1 d-flex flex-column ">
|
||||
|
||||
<v-card-title class="text-h6 text-center text-uppercase">
|
||||
{{title}}
|
||||
</v-card-title>
|
||||
<template v-if="Object.keys(size).length > 0">
|
||||
<!-- <v-card-text class="text-h2 text-center">
|
||||
|
||||
<vue3-autocounter
|
||||
ref="counter"
|
||||
:startAmount="0"
|
||||
:endAmount="size.statesize"
|
||||
:duration="2"
|
||||
/>
|
||||
</v-card-text> -->
|
||||
|
||||
<!-- <v-card-subtitle class="text-center"
|
||||
>по состоянию на
|
||||
{{
|
||||
new Date(size.date_created).toLocaleDateString(
|
||||
"ru-RU"
|
||||
)
|
||||
}}
|
||||
</v-card-subtitle> -->
|
||||
<v-card
|
||||
class="h-100 flex-column d-flex align-center justify-center text-center elevation-0"
|
||||
>
|
||||
<vue3-autocounter
|
||||
class="text-h2 font-weight-regular pb-2"
|
||||
ref="counter"
|
||||
:startAmount="0"
|
||||
:endAmount="size.size"
|
||||
:duration="2"
|
||||
/>
|
||||
<!-- <v-card-text class="text-h2 text-center">
|
||||
<vue3-autocounter
|
||||
|
||||
ref="counter"
|
||||
:startAmount="0"
|
||||
:endAmount="size.size"
|
||||
:duration="2"
|
||||
/>
|
||||
</v-card-text> -->
|
||||
|
||||
</v-card>
|
||||
<v-card-subtitle class="text-center"
|
||||
>по состоянию на
|
||||
{{
|
||||
new Date(size.date_created).toLocaleDateString(
|
||||
"ru-RU"
|
||||
)
|
||||
}}
|
||||
</v-card-subtitle>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-card
|
||||
class="h-100 d-flex align-center justify-center text-center"
|
||||
>
|
||||
<span class="text-subtitle-1 text-grey"
|
||||
>Данных нет</span
|
||||
>
|
||||
</v-card>
|
||||
|
||||
</template>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
size: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
@@ -0,0 +1,233 @@
|
||||
<template>
|
||||
<v-row no-gutters class="h-100 gap" v-if="vacancy.length > 0">
|
||||
<v-col lg="4" class="flex-column d-flex">
|
||||
<v-card class="h-100 pa-1 d-flex flex-column rounded-0">
|
||||
<v-card-title
|
||||
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||
>
|
||||
Вакансии
|
||||
</v-card-title>
|
||||
<v-row no-gutters class="h-0 gap overflow-auto">
|
||||
<v-col>
|
||||
<v-card class="mx-auto h-100">
|
||||
<v-list density="compact" class="px-0">
|
||||
<v-list-item
|
||||
v-for="vac in vacancy"
|
||||
:key="vac.id"
|
||||
:value="vac"
|
||||
class="border-b-sm"
|
||||
active-class="custom-active"
|
||||
color="teal-darken-3"
|
||||
@click="getIndVacation(vac.id)"
|
||||
>
|
||||
<v-card class="rounded-0 bg-transparent">
|
||||
<v-card-title class="text-wrap">
|
||||
{{ vac.name }}
|
||||
</v-card-title>
|
||||
<v-card-text class="pb-2">
|
||||
<v-row no-gutters class="gap">
|
||||
<v-col>{{ vac.department.name }}</v-col>
|
||||
<v-col
|
||||
class="flex-grow-0 text-subtitle-1 text-btn_text"
|
||||
>
|
||||
Подробнее
|
||||
</v-col>
|
||||
<v-col class="flex-grow-0 align-self-center pl-2">
|
||||
<v-icon
|
||||
icon="mdi-arrow-right"
|
||||
color="btn_text"
|
||||
size="small"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-card class="h-100 pa-1 d-flex flex-column rounded-0">
|
||||
<v-card-title
|
||||
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||
>
|
||||
Описание
|
||||
</v-card-title>
|
||||
<v-row
|
||||
no-gutters
|
||||
class="h-0 gap overflow-auto"
|
||||
id="goto-container-example"
|
||||
>
|
||||
<v-col>
|
||||
<v-card
|
||||
class="rounded-0 h-100"
|
||||
v-if="vacancyDescription.name != ''"
|
||||
>
|
||||
<v-card-title class="mt-4">
|
||||
<span class="text-h4 text-wrap">
|
||||
{{ vacancyDescription.name }}
|
||||
</span>
|
||||
</v-card-title>
|
||||
|
||||
<v-card-title class="pt-0">
|
||||
<span class="text-h5">
|
||||
{{ vacancyDescription.department.name }}
|
||||
</span>
|
||||
</v-card-title>
|
||||
<v-card-title>
|
||||
<v-btn
|
||||
type="submit"
|
||||
class="text-subtitle-1 font-weight-light"
|
||||
color="btn_text"
|
||||
elevation="1"
|
||||
@click="
|
||||
goTo('#response', { container: '#goto-container-example' })
|
||||
"
|
||||
>
|
||||
Откликнуться
|
||||
</v-btn>
|
||||
</v-card-title>
|
||||
<v-card-title class="pt-6">
|
||||
<span class="text-h6">
|
||||
Направление деятельности подразделения
|
||||
</span>
|
||||
</v-card-title>
|
||||
<v-card-text class="mx-5 my-1">
|
||||
<ul>
|
||||
<li
|
||||
class="py-1"
|
||||
v-for="directionTitle in vacancyDescription.department
|
||||
.department_directions"
|
||||
:key="directionTitle"
|
||||
>
|
||||
{{ directionTitle.direction_title }}
|
||||
</li>
|
||||
</ul>
|
||||
</v-card-text>
|
||||
<v-card-title>
|
||||
<span class="text-h6">
|
||||
Функционал и должностные обязанности
|
||||
</span>
|
||||
</v-card-title>
|
||||
<v-card-text class="mx-5 my-0 ckeditor_ul">
|
||||
<div class="py-1" v-html="vacancyDescription.functional"></div>
|
||||
</v-card-text>
|
||||
<v-card-title>
|
||||
<span class="text-h6"> Базовые требования к соискателю </span>
|
||||
</v-card-title>
|
||||
<v-card-text class="mx-5 my-0 ckeditor_ul">
|
||||
<div class="py-1" v-html="vacancyDescription.functional"></div>
|
||||
</v-card-text>
|
||||
<v-divider />
|
||||
<response-vacancies id="response" :idVacations=vacancySelect />
|
||||
</v-card>
|
||||
|
||||
<v-card
|
||||
class="h-100 pa-1 d-flex align-center justify-center text-center"
|
||||
v-else
|
||||
>
|
||||
<v-card-subtitle>
|
||||
<v-icon
|
||||
icon="mdi-format-list-bulleted"
|
||||
color="grey"
|
||||
size="x-large"
|
||||
/>
|
||||
<br />
|
||||
<span class="text-h5 text-grey"
|
||||
>Для подробного описания вакансии <br />
|
||||
выберите её из списка слева</span
|
||||
>
|
||||
</v-card-subtitle>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row no-gutters class="h-100 gap" v-else>
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-card class="h-100 pa-1 d-flex align-center justify-center text-center">
|
||||
<v-card-subtitle>
|
||||
<v-icon icon="mdi-credit-card-off" size="x-large" color="grey" />
|
||||
<br />
|
||||
<span class="text-h5 text-grey"
|
||||
>Сейчас вакансий нет, <br />
|
||||
загляните позжет</span
|
||||
>
|
||||
</v-card-subtitle>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { useGoTo } from "vuetify";
|
||||
import { clearAxios } from "@/utils/axios-api";
|
||||
import { baseURL } from "@/utils/axios-api";
|
||||
import ResponseVacancies from "@/components/about_inspection/open_vacancies/ResponseVacancies.vue";
|
||||
|
||||
export default {
|
||||
components: { ResponseVacancies },
|
||||
setup() {
|
||||
const goTo = useGoTo();
|
||||
let vacancyDescription = ref({ name: "", department: { name: "" } });
|
||||
let vacancySelect = ref(-1);
|
||||
|
||||
let vacancy = ref({});
|
||||
|
||||
const getVacancies = () => {
|
||||
clearAxios.get(`api/about_inspection/getvacancy/`).then((data) => {
|
||||
vacancy.value = data.data;
|
||||
vacancyDescription.value = vacancy.value[0];
|
||||
vacancySelect.value = vacancy.value[0].id
|
||||
});
|
||||
};
|
||||
|
||||
const formatText = (text) => {
|
||||
return text.replaceAll(
|
||||
'src="/media/uploads',
|
||||
`src="${baseURL}media/uploads`
|
||||
);
|
||||
};
|
||||
|
||||
const getIndVacation = (ind) => {
|
||||
if (vacancySelect.value != ind) {
|
||||
vacancySelect.value = ind;
|
||||
vacancyDescription.value = vacancy.value.find((el) => el.id == ind);
|
||||
} else {
|
||||
vacancySelect.value = -1;
|
||||
vacancyDescription.value = { name: "", department: { name: "" } };
|
||||
}
|
||||
};
|
||||
|
||||
getVacancies();
|
||||
|
||||
return {
|
||||
vacancy,
|
||||
formatText,
|
||||
vacancyDescription,
|
||||
getIndVacation,
|
||||
vacancySelect,
|
||||
goTo,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.ckeditor_ul ul li {
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.custom-active .v-card-title {
|
||||
color: #001e19;
|
||||
}
|
||||
|
||||
.custom-active .v-card-text {
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,120 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-card-text class="text-center">
|
||||
<span class="text-h4">Откликнуться на вакансию</span>
|
||||
</v-card-text>
|
||||
<v-card-text class="d-flex flex-column pt-0">
|
||||
<form @submit.prevent="submit">
|
||||
<v-row no-gutters class="justify-center">
|
||||
<v-col lg="8">
|
||||
<v-text-field
|
||||
v-model="name.value.value"
|
||||
:counter="10"
|
||||
:error-messages="name.errorMessage.value"
|
||||
label="Фамилия, имя, отчество"
|
||||
/>
|
||||
<v-row no-gutters class="gap">
|
||||
<v-col>
|
||||
<v-text-field
|
||||
v-model="email.value.value"
|
||||
:error-messages="email.errorMessage.value"
|
||||
label="E-mail или почта Lotus"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-text-field
|
||||
v-model="phone.value.value"
|
||||
:counter="7"
|
||||
:error-messages="phone.errorMessage.value"
|
||||
label="Телефон"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-textarea
|
||||
v-model="message.value.value"
|
||||
no-resize
|
||||
rows="4"
|
||||
label="Сопроводительное письмо"
|
||||
/>
|
||||
<v-file-input label="Резюме" hide-details v-model="responseFiles" />
|
||||
|
||||
<v-btn block type="submit" class="mt-4 text-none" color="btn_text">
|
||||
Отправить
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</form>
|
||||
</v-card-text>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { useField, useForm } from "vee-validate";
|
||||
import * as yup from "yup";
|
||||
import { clearAxios } from "@/utils/axios-api";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
idVacations: {
|
||||
type: Number,
|
||||
default: -1
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
|
||||
const responseFiles = ref('')
|
||||
|
||||
const { handleSubmit, handleReset } = useForm({
|
||||
validationSchema: yup.object({
|
||||
email: yup
|
||||
.string()
|
||||
.email("Введите корректный email")
|
||||
.required("Поле обязательно для заполнения"),
|
||||
name: yup
|
||||
.string()
|
||||
.matches(/^[а-яА-ЯЁё]+$/, "Имя должно содержать только русские буквы")
|
||||
.required("Поле обязательно для заполнения"),
|
||||
phone: yup
|
||||
.string()
|
||||
.matches(
|
||||
/^[[\d-]*\d[\d-]*$/,
|
||||
"Номер телефона должен содержать только цифры"
|
||||
)
|
||||
.required("Поле обязательно для заполнения"),
|
||||
message: yup.string(),
|
||||
}),
|
||||
});
|
||||
|
||||
const name = useField("name");
|
||||
const phone = useField("phone");
|
||||
const email = useField("email");
|
||||
const message = useField("message");
|
||||
|
||||
const submit = handleSubmit((values) => {
|
||||
const postFile = new FormData()
|
||||
|
||||
postFile.append("file", responseFiles.value);
|
||||
postFile.append("resp", JSON.stringify(values));
|
||||
postFile.append("id", JSON.stringify(props.idVacations));
|
||||
|
||||
clearAxios
|
||||
.post(`api/about_inspection/postresponsevacancy/`, postFile)
|
||||
.then((data) => {
|
||||
|
||||
});
|
||||
handleReset()
|
||||
alert(JSON.stringify(values, null, 2));
|
||||
});
|
||||
|
||||
return {
|
||||
name,
|
||||
phone,
|
||||
email,
|
||||
message,
|
||||
submit,
|
||||
responseFiles
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -0,0 +1,120 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-card-text class="text-center">
|
||||
<span class="text-h4">Откликнуться на вакансию</span>
|
||||
</v-card-text>
|
||||
<v-card-text class="d-flex flex-column pt-0">
|
||||
<v-form @submit.prevent="submit">
|
||||
<v-row no-gutters class="justify-center">
|
||||
<v-col lg="8">
|
||||
|
||||
<v-text-field
|
||||
v-model="form.fio"
|
||||
:counter="10"
|
||||
:rules="rules.fio"
|
||||
label="Фамилия, имя, отчество"
|
||||
/>
|
||||
<v-row no-gutters class="gap">
|
||||
<v-col>
|
||||
<v-text-field
|
||||
v-model="form.email"
|
||||
:rules="rules.email"
|
||||
label="E-mail или почта Lotus"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-text-field
|
||||
v-model="form.tel"
|
||||
:counter="7"
|
||||
:rules="rules.tel"
|
||||
label="Телефон"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-textarea
|
||||
v-model="form.text"
|
||||
no-resize
|
||||
rows="4"
|
||||
label="Сопроводительное письмо"
|
||||
/>
|
||||
<v-file-input label="Резюме" hide-details v-model="file" />
|
||||
|
||||
<v-btn block type="submit" class="mt-4 text-none" color="btn_text">
|
||||
Отправить
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-form>
|
||||
</v-card-text>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { useAlertStore } from '@/store/useAlertStore'
|
||||
import { clearAxios } from "@/utils/axios-api";
|
||||
|
||||
|
||||
export default {
|
||||
props: {
|
||||
idVacations: {
|
||||
type: Number,
|
||||
default: -1,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
const form = ref({ fio: "", email: "", tel: "", text: "" });
|
||||
const feedalert = useAlertStore().alert
|
||||
|
||||
const req = (val) => {
|
||||
return !!val || "Поле обязательно"
|
||||
}
|
||||
|
||||
|
||||
const rules = {
|
||||
fio: [
|
||||
(val) => req(val),
|
||||
(val) =>
|
||||
val.match(/^[а-яА-ЯЁё ]+$/) !== null || "хочу имя русскими буквами",
|
||||
],
|
||||
email: [(val) => req(val)],
|
||||
tel: [
|
||||
(val) => req(val),
|
||||
(val) => val.match(/^[[\d-]*\d[\d-]*$/) !== null || "хочу цифрами",
|
||||
],
|
||||
text: "",
|
||||
};
|
||||
|
||||
const file = ref(null);
|
||||
|
||||
const submit = () => {
|
||||
const postFile = new FormData();
|
||||
postFile.append(
|
||||
"data",
|
||||
JSON.stringify({ ...form.value, vacancy_id: props.idVacations })
|
||||
);
|
||||
if (file.value !==null) {
|
||||
postFile.append("file", file.value[0]);
|
||||
}
|
||||
|
||||
|
||||
clearAxios
|
||||
.post(`api/about_inspection/postresponsevacancy/`, postFile)
|
||||
.then((data) => {
|
||||
feedalert.alert = true;
|
||||
feedalert.text = data.data;
|
||||
feedalert.color = "teal-lighten-4";
|
||||
feedalert.ico = "mdi-email-outline";
|
||||
console.log(data.data, 'ggggggggggggggggggggg')
|
||||
});
|
||||
};
|
||||
|
||||
return {
|
||||
form,
|
||||
file,
|
||||
rules,
|
||||
submit,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -1,72 +1,121 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-row no-gutters class="gap h-100 flex-column">
|
||||
<v-col lg="3" class="flex-column w100">
|
||||
<structure-inspection-row :sText="'Руководство'">
|
||||
<template v-slot:cardboss>
|
||||
<v-col lg="3" class="flex-column d-flex align-center" v-for="structure in structures" :key="structure.id">
|
||||
<v-card class="flex-column d-flex mr-1" :width="370" :elevation="10">
|
||||
<v-card-text class="pa-0">
|
||||
<v-row no-gutters class="h-100 gap">
|
||||
<v-col class="flex-grow-0 d-flex d-sm-none d-lg-none d-xl-flex">
|
||||
<v-row no-gutters class="flex-column">
|
||||
<v-col lg="4">
|
||||
<span class="vertext text-button my-1 pb-8">Руководство</span>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<span class="vertext text-button my-1 pb-13"
|
||||
>Структурные подразделения</span
|
||||
>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
<v-col class="d-flex ">
|
||||
<v-row no-gutters :class="smAndDown ? ' flex-column' : ''">
|
||||
<v-col
|
||||
:md="mdAndDown ? '12' : ''"
|
||||
:lg="lgAndDown ? 6 : ''"
|
||||
class="w100 flex-column d-flex"
|
||||
v-for="structure in structures"
|
||||
:key="structure.id"
|
||||
>
|
||||
|
||||
<v-row no-gutters class="flex-grow-0">
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-row no-gutters class="mb-2 mt-1 justify-center d-flex mx-1">
|
||||
<v-card class="flex-column d-flex flex-grow-1" :elevation="10">
|
||||
<v-card-text class="pa-0">
|
||||
<v-col lg="12" class="pa-0">
|
||||
<v-row no-gutters>
|
||||
<v-col
|
||||
class="d-flex py-3 justify-center align-center font-weight-medium text-uppercase"
|
||||
>
|
||||
{{ structure.post }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-row no-gutters>
|
||||
<v-col lg="4" class="pa-1 heightfoto">
|
||||
<v-img
|
||||
class="h-100"
|
||||
:src="checkremote(`${spravURL}${structure.login}.jpg`)"
|
||||
cover
|
||||
/>
|
||||
</v-col>
|
||||
<v-col
|
||||
class="text-center align-self-center font-weight-medium"
|
||||
>
|
||||
{{ structure.fio }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card> </v-row>
|
||||
</v-col>
|
||||
<!-- :class="mdAndDown ? 'flex-column gap' : ''" -->
|
||||
</v-row>
|
||||
|
||||
<v-row no-gutters :class="lgAndDown ?'':'gap h-0 overflow-auto'">
|
||||
<v-col lg=12 >
|
||||
<v-row
|
||||
no-gutters
|
||||
class="gap mb-1"
|
||||
v-for="boss in structure.deps"
|
||||
:key="boss.id"
|
||||
>
|
||||
<v-col class="d-flex flex-column">
|
||||
<v-card
|
||||
class="flex-column d-flex flex-grow-1 mx-1"
|
||||
:elevation="5"
|
||||
>
|
||||
<v-card-text class="pa-1 pt-3 px-3 flex-column">
|
||||
<v-col lg="12" class="minh pa-0">
|
||||
<v-row no-gutters>
|
||||
<v-col class="d-flex h-75 justify-center align-center font-weight-medium text-uppercase">
|
||||
{{ structure.post }}
|
||||
<v-col
|
||||
class="text-wrap text-center text-body-2 font-weight-medium text-uppercase"
|
||||
>
|
||||
{{ boss.name }}
|
||||
</v-col>
|
||||
<v-col class="flex-grow-0">
|
||||
<v-tooltip location="top">
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props">
|
||||
<v-icon
|
||||
size="large"
|
||||
color="green"
|
||||
icon="mdi-arrow-top-right"
|
||||
/>
|
||||
</span>
|
||||
</template>
|
||||
<v-row>
|
||||
<v-col> Перейти на страницу отдела </v-col>
|
||||
</v-row>
|
||||
</v-tooltip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-row no-gutters>
|
||||
<v-col lg="4" class="pa-1 heightfoto">
|
||||
<v-img class="h-100" :src="checkremote(`${spravURL}${structure.login}.jpg`)" cover />
|
||||
</v-col>
|
||||
<v-col class="text-center align-self-center font-weight-medium">
|
||||
{{ structure.fio }}
|
||||
</v-col>
|
||||
<list-user :author="boss.chief_deps" />
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</template>
|
||||
</structure-inspection-row>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<structure-inspection-row :sText="'Структурные подразделения'">
|
||||
<template v-slot:cardboss>
|
||||
<v-col class="flex-column d-flex align-center" v-for="bosses in structures" :key="bosses">
|
||||
<div v-for="boss in bosses.deps" :key="boss.id">
|
||||
<v-card class="flex-column d-flex mb-1 mr-1 width-subdeps" :elevation="5">
|
||||
<v-card-text class="pa-1 pt-3 px-3 flex-column">
|
||||
<v-col lg="12" class=" minh pa-0">
|
||||
<v-row no-gutters>
|
||||
<v-col class="text-wrap text-center text-body-2 font-weight-medium text-uppercase ">
|
||||
{{ boss.name }}
|
||||
</v-col>
|
||||
<v-col class="flex-grow-0">
|
||||
<v-tooltip location="top">
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props">
|
||||
<v-icon size="large" color="green" icon="mdi-arrow-top-right" />
|
||||
</span>
|
||||
</template>
|
||||
<v-row>
|
||||
<v-col> Перейти на страницу отдела </v-col>
|
||||
</v-row>
|
||||
</v-tooltip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-row no-gutters>
|
||||
<list-user :author="boss.chief_deps" />
|
||||
</v-col> </v-row>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
|
||||
|
||||
|
||||
<!-- -->
|
||||
|
||||
<!-- -->
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</div>
|
||||
</v-col>
|
||||
</template>
|
||||
</structure-inspection-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -75,17 +124,17 @@ import { spravURL } from "@/utils/axios-api";
|
||||
import { checkremote } from "@/utils/universal_functions";
|
||||
import { axiosApiInstance } from "@/utils/axios-api";
|
||||
import StructureInspectionRow from "./StructureInspectionRow.vue";
|
||||
import ListUser from "../../UI/fiousercard/ListUser.vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
export default {
|
||||
components: { StructureInspectionRow, ListUser },
|
||||
components: { StructureInspectionRow },
|
||||
setup() {
|
||||
const structures = ref([]);
|
||||
const { smAndDown, mdAndDown, lgAndDown } = useDisplay();
|
||||
|
||||
const getStructure = () => {
|
||||
axiosApiInstance.get("api/about_inspection/getstructure/").then((res) => {
|
||||
structures.value = res.data;
|
||||
console.log(structures.value)
|
||||
});
|
||||
};
|
||||
|
||||
@@ -94,12 +143,20 @@ export default {
|
||||
structures,
|
||||
checkremote,
|
||||
spravURL,
|
||||
mdAndDown,
|
||||
lgAndDown,
|
||||
smAndDown
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.vertext {
|
||||
writing-mode: vertical-rl;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.deps-title {
|
||||
height: 90px;
|
||||
}
|
||||
@@ -108,12 +165,6 @@ export default {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.page_block {
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
|
||||
.minh {
|
||||
min-height: 43px;
|
||||
}
|
||||
@@ -123,7 +174,7 @@ export default {
|
||||
min-height: 140px;
|
||||
}
|
||||
|
||||
.width-subdeps {
|
||||
/* .width-subdeps {
|
||||
width: 350px;
|
||||
}
|
||||
} */
|
||||
</style>
|
||||
@@ -38,8 +38,5 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.vertext {
|
||||
writing-mode: vertical-rl;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
</style>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,185 +1,185 @@
|
||||
|
||||
<template>
|
||||
<v-app>
|
||||
<v-app-bar
|
||||
:elevation="accountStore.cod2user?2:0"
|
||||
density="compact"
|
||||
color="app_bar"
|
||||
<v-app-bar
|
||||
:elevation="accountStore.cod2user ? 2 : 0"
|
||||
density="compact"
|
||||
color="app_bar"
|
||||
class="pl-4"
|
||||
>
|
||||
<v-icon
|
||||
v-if="accountStore.cod2user"
|
||||
class="px-3"
|
||||
class="px-3"
|
||||
size="20"
|
||||
color="black_and_white"
|
||||
:icon="rail ? 'mdi-chevron-right' : 'mdi-chevron-left'"
|
||||
:icon="rail ? 'mdi-chevron-right' : 'mdi-chevron-left'"
|
||||
@click="rail = !rail"
|
||||
/>
|
||||
|
||||
<v-card
|
||||
|
||||
<v-card
|
||||
v-if="accountStore.cod2user"
|
||||
class="bg-transparent py"
|
||||
color="black_and_white"
|
||||
density="compact"
|
||||
:prepend-avatar="imageSrc"
|
||||
title="Портал МИ ФНС России по ЦОД № 2"
|
||||
variant="text"
|
||||
:to="'/'"
|
||||
/>
|
||||
<template v-slot:image>
|
||||
<v-img class="bggrad" />
|
||||
</template>
|
||||
class="bg-transparent py"
|
||||
color="black_and_white"
|
||||
density="compact"
|
||||
:prepend-avatar="imageSrc"
|
||||
title="Портал МИ ФНС России по ЦОД № 2"
|
||||
variant="text"
|
||||
:to="'/'"
|
||||
/>
|
||||
<template v-slot:image>
|
||||
<v-img class="bggrad" />
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<template v-if="accountStore.cod2user">
|
||||
<vcard-user
|
||||
:author = accountStore.user
|
||||
/>
|
||||
|
||||
<vcard-user :author="accountStore.user" />
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark to="/faq"
|
||||
icon="mdi-comment-question-outline" />
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark
|
||||
to="/faq"
|
||||
icon="mdi-comment-question-outline"
|
||||
/>
|
||||
</template>
|
||||
<span>F.A.Q.</span>
|
||||
|
||||
</v-tooltip>
|
||||
|
||||
<v-dialog
|
||||
v-model="LikeDialog"
|
||||
persistent width="800">
|
||||
<v-dialog v-model="LikeDialog" persistent width="800">
|
||||
<template v-slot:activator="{ props }">
|
||||
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark icon="mdi-thumb-up-outline" >
|
||||
<v-icon></v-icon>
|
||||
<v-tooltip
|
||||
activator="parent"
|
||||
location="bottom"
|
||||
>Обратная связь</v-tooltip>
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark
|
||||
icon="mdi-thumb-up-outline"
|
||||
>
|
||||
<v-icon></v-icon>
|
||||
<v-tooltip activator="parent" location="bottom"
|
||||
>Обратная связь</v-tooltip
|
||||
>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
|
||||
<Card-like
|
||||
:LikeDialog="LikeDialog"
|
||||
@menusClose="closeinfo()"
|
||||
/>
|
||||
<Card-like :LikeDialog="LikeDialog" @menusClose="closeinfo()" />
|
||||
</v-dialog>
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn icon @click="toggleTheme">
|
||||
<v-icon
|
||||
v-bind="props"
|
||||
class="mr-1"
|
||||
color="lampa">
|
||||
mdi-lightbulb-outline
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span> Сменить тему</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn icon @click="toggleTheme">
|
||||
<v-icon v-bind="props" class="mr-1" color="lampa">
|
||||
mdi-lightbulb-outline
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span> Сменить тему</span>
|
||||
</v-tooltip>
|
||||
|
||||
<v-card v-show="message" class="" width="50">{{ name }}</v-card>
|
||||
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn color="black_and_white" icon="mdi-account-multiple-outline" @click="drawer_right = !drawer_right" v-bind="props"/>
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
icon="mdi-account-multiple-outline"
|
||||
@click="drawer_right = !drawer_right"
|
||||
v-bind="props"
|
||||
/>
|
||||
</template>
|
||||
<span>
|
||||
{{
|
||||
drawer_right == true
|
||||
? "Скрыть пользователей"
|
||||
: "Показать пользователей"
|
||||
}}
|
||||
</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
icon="mdi-logout"
|
||||
@click="accountStore.logout"
|
||||
v-bind="props"
|
||||
/>
|
||||
</template>
|
||||
<span> Выход </span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<span> {{ (drawer_right == true) ? 'Скрыть пользователей' : 'Показать пользователей'}} </span>
|
||||
</v-tooltip>
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn color="black_and_white" icon="mdi-logout" @click="accountStore.logout" v-bind="props"/>
|
||||
</template>
|
||||
<span> Выход </span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
|
||||
|
||||
<template v-else>
|
||||
|
||||
|
||||
<v-row justify="center">
|
||||
<Auth-form
|
||||
@challengealert = "alert=true"
|
||||
/>
|
||||
<Auth-form @challengealert="alert = true" />
|
||||
</v-row>
|
||||
|
||||
|
||||
</template>
|
||||
</template>
|
||||
</v-app-bar>
|
||||
<v-navigation-drawer v-if="accountStore.cod2user" :width="245" :rail="rail" permanent v-model="drawer">
|
||||
<v-navigation-drawer
|
||||
v-if="accountStore.cod2user"
|
||||
:width="245"
|
||||
:rail="rail"
|
||||
permanent
|
||||
v-model="drawer"
|
||||
>
|
||||
<v-row class="my-0 h-100">
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-row><v-col>
|
||||
<v-row
|
||||
><v-col>
|
||||
<v-list nav density="compact">
|
||||
|
||||
<template v-for="(x, key) in navigations">
|
||||
<v-list-item v-if="!('submenu' in x)"
|
||||
:key="x.key"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
:disabled="x.path==''"
|
||||
:to="x.path"
|
||||
:target="x.link?'_blank':''"
|
||||
color="navigation">
|
||||
<!-- Чтобы сделать неактивным раздел безопасность, не забыть прописать путь до него в disabled для показа -->
|
||||
<template v-slot:prepend>
|
||||
<v-icon :icon="x.ico"/>
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top">
|
||||
{{ x.name }}
|
||||
<v-list-item
|
||||
v-if="!('submenu' in x)"
|
||||
:key="x.key"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
:disabled="x.path == ''"
|
||||
:to="x.path"
|
||||
:target="x.link ? '_blank' : ''"
|
||||
color="navigation"
|
||||
>
|
||||
<!-- Чтобы сделать неактивным раздел безопасность, не забыть прописать путь до него в disabled для показа -->
|
||||
<template v-slot:prepend>
|
||||
<v-icon :icon="x.ico" />
|
||||
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</template>
|
||||
</template>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-group v-else
|
||||
:class="rail?'railmenu':''"
|
||||
:key="key"
|
||||
:value="x.name">
|
||||
<v-list-group
|
||||
v-else
|
||||
:class="rail ? 'railmenu' : ''"
|
||||
:key="key"
|
||||
:value="x.name"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-list-item
|
||||
v-bind="props"
|
||||
:title="x.name"
|
||||
:prepend-icon="x.ico"
|
||||
<v-list-item
|
||||
v-bind="props"
|
||||
:title="x.name"
|
||||
:prepend-icon="x.ico"
|
||||
color="navigation"
|
||||
>
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top"
|
||||
>
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<v-list-item
|
||||
v-for="(child, k) in x.submenu"
|
||||
color="navigation"
|
||||
|
||||
>
|
||||
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top"
|
||||
>
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<v-list-item v-for="(child, k) in x.submenu"
|
||||
color="navigation"
|
||||
:href="child.link"
|
||||
:key="k"
|
||||
:value="child.name"
|
||||
:title="!rail?child.name:menuTruncated(child.name)"
|
||||
:to="child.path"
|
||||
:target="child.link?'_blank':''"
|
||||
|
||||
:href="child.link"
|
||||
:key="k"
|
||||
:value="child.name"
|
||||
:title="!rail ? child.name : menuTruncated(child.name)"
|
||||
:to="child.path"
|
||||
:target="child.link ? '_blank' : ''"
|
||||
>
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top"
|
||||
>
|
||||
{{ child.name }}
|
||||
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||
{{ child.name }}
|
||||
</v-tooltip>
|
||||
</v-list-item>
|
||||
</v-list-group>
|
||||
@@ -187,25 +187,20 @@
|
||||
</v-list>
|
||||
|
||||
<v-list nav density="compact">
|
||||
|
||||
<v-list-item v-for="x of mainmenuStore.portallinks"
|
||||
:key="x.name"
|
||||
:title="x.name"
|
||||
<v-list-item
|
||||
v-for="x of mainmenuStore.portallinks"
|
||||
:key="x.name"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
color="app_bar"
|
||||
:target="x.link?'_blank':''"
|
||||
>
|
||||
|
||||
:target="x.link ? '_blank' : ''"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<v-icon
|
||||
:icon="x.imagecode" />
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top">
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
<v-icon :icon="x.imagecode" />
|
||||
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
@@ -214,7 +209,7 @@
|
||||
|
||||
<v-row class="flex-grow-0" v-if="accountStore.user.is_staff">
|
||||
<v-col>
|
||||
<default-portal-menu-list :rail=rail />
|
||||
<default-portal-menu-list :rail="rail" />
|
||||
<!-- <v-list nav density="compact" active-class="noneoutline">
|
||||
<default-portal-menu-list :aMenuItem="supperuser"/>
|
||||
<div v-if="getDevelopment()">
|
||||
@@ -229,242 +224,246 @@
|
||||
</v-row>
|
||||
<v-row no-gutters class="flex-grow-0">
|
||||
<v-col>
|
||||
<page-counter :rail=rail />
|
||||
<page-counter :rail="rail" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
|
||||
</v-navigation-drawer>
|
||||
|
||||
<v-main v-if="accountStore.cod2user" class="d-flex bg-main_theme">
|
||||
<router-view />
|
||||
|
||||
|
||||
<alert-default />
|
||||
|
||||
|
||||
|
||||
<alert-default />
|
||||
</v-main>
|
||||
<v-main v-else class="d-flex align-center text-h3 bg-teal-lighten-2">
|
||||
|
||||
<v-card
|
||||
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
||||
:image="`${burl}${scrimg}`"
|
||||
>
|
||||
<v-card-text class="justify-center bgCard h-100 ma-3 d-flex flex-column">
|
||||
<v-row class="bgText flex-grow-0">
|
||||
<v-col class="text-center textcolor font-weight-black text-h3 pb-0">
|
||||
Добро пожаловать на портал МИ ФНС России по ЦОД № 2
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="bgText flex-grow-0">
|
||||
<v-col class="text-subtitle-1 text-center textcolor pt-0">
|
||||
Авторизуйтесь для получения доступа к контенту портала
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
|
||||
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
||||
:image="`${burl}${scrimg}`"
|
||||
>
|
||||
<v-card-text
|
||||
class="justify-center bgCard h-100 ma-3 d-flex flex-column"
|
||||
>
|
||||
<v-row class="bgText flex-grow-0">
|
||||
<v-col class="text-center textcolor font-weight-black text-h3 pb-0">
|
||||
Добро пожаловать на портал МИ ФНС России по ЦОД № 2
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="bgText flex-grow-0">
|
||||
<v-col class="text-subtitle-1 text-center textcolor pt-0">
|
||||
Авторизуйтесь для получения доступа к контенту портала
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
<alert-default />
|
||||
</v-main>
|
||||
<v-navigation-drawer v-if="accountStore.cod2user"
|
||||
v-model="drawer_right"
|
||||
rail permanent
|
||||
location="right"
|
||||
@click="rail = false">
|
||||
|
||||
<v-navigation-drawer
|
||||
v-if="accountStore.cod2user"
|
||||
v-model="drawer_right"
|
||||
rail
|
||||
permanent
|
||||
location="right"
|
||||
@click="rail = false"
|
||||
>
|
||||
<Online-users />
|
||||
|
||||
</v-navigation-drawer>
|
||||
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
import { ref, computed} from 'vue'
|
||||
import uf from '@/utils/universal_functions'
|
||||
import { useAccountStore } from '@/store/AccountStore'
|
||||
import { useMainmenuStore } from '@/store/MainmenuStore'
|
||||
import { ref, computed } from "vue";
|
||||
import uf from "@/utils/universal_functions";
|
||||
import { useAccountStore } from "@/store/AccountStore";
|
||||
import { useMainmenuStore } from "@/store/MainmenuStore";
|
||||
import { useTheme } from "vuetify";
|
||||
import AuthForm from '@/components/UI/Auth-form.vue'
|
||||
import OnlineUsers from '@/components/UI/fiousercard/onlineUsers.vue'
|
||||
import CardLike from '@/components/cardLike.vue'
|
||||
import { clearAxios } from '@/utils/axios-api'
|
||||
import AuthForm from "@/components/UI/Auth-form.vue";
|
||||
import OnlineUsers from "@/components/UI/fiousercard/onlineUsers.vue";
|
||||
import CardLike from "@/components/cardLike.vue";
|
||||
import { axiosApiInstance, clearAxios } from "@/utils/axios-api";
|
||||
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
import VcardUser from '@/components/UI/fiousercard/vcardUser.vue'
|
||||
import PageCounter from '@/components/UI/defaultportal/page-counter.vue'
|
||||
import DefaultPortalMenuList from '@/layouts/default/DefaultPortalMenuList.vue'
|
||||
import {getDevelopment} from '@/utils/universal_functions'
|
||||
import { baseURL } from "@/utils/axios-api";
|
||||
import VcardUser from "@/components/UI/fiousercard/vcardUser.vue";
|
||||
import PageCounter from "@/components/UI/defaultportal/page-counter.vue";
|
||||
import DefaultPortalMenuList from "@/layouts/default/DefaultPortalMenuList.vue";
|
||||
import { getDevelopment } from "@/utils/universal_functions";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
export default {
|
||||
|
||||
components: {
|
||||
AuthForm,
|
||||
OnlineUsers,
|
||||
CardLike,
|
||||
VcardUser,
|
||||
PageCounter,
|
||||
DefaultPortalMenuList
|
||||
DefaultPortalMenuList,
|
||||
},
|
||||
|
||||
mixins: [uf],
|
||||
|
||||
setup() {
|
||||
|
||||
|
||||
const { name } = useDisplay();
|
||||
const theme = useTheme();
|
||||
const mainmenuStore = useMainmenuStore()
|
||||
const accountStore = useAccountStore()
|
||||
const drawer = ref(true)
|
||||
const drawer_right = ref(true)
|
||||
const mainmenuStore = useMainmenuStore();
|
||||
const accountStore = useAccountStore();
|
||||
const drawer = ref(true);
|
||||
const drawer_right = ref(true);
|
||||
|
||||
const LikeDialog = ref(false);
|
||||
const rail = ref(false);
|
||||
const showTooltip = ref(false);
|
||||
const alert = ref(false);
|
||||
const burl = baseURL.slice(0, -1);
|
||||
const scrimg = ref([]);
|
||||
|
||||
const message = computed({
|
||||
get: () => {
|
||||
return process.env.NODE_ENV == "development" ? true : false;
|
||||
},
|
||||
});
|
||||
|
||||
const LikeDialog = ref(false)
|
||||
const rail = ref(false)
|
||||
const showTooltip = ref(false)
|
||||
const alert = ref(false)
|
||||
const burl = baseURL.slice(0,-1)
|
||||
const scrimg = ref([])
|
||||
|
||||
const screenimg = () => {
|
||||
|
||||
if(!accountStore.cod2user){
|
||||
clearAxios.get(`api/navigation/screensaver/`)
|
||||
.then(data => {
|
||||
scrimg.value = data.data[0].img
|
||||
})}
|
||||
if (!accountStore.cod2user) {
|
||||
clearAxios.get(`api/navigation/screensaver/`).then((data) => {
|
||||
scrimg.value = data.data[0].img;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
screenimg();
|
||||
|
||||
screenimg()
|
||||
|
||||
const menuTruncated = (menus) => {
|
||||
return menus.slice(0,2).toUpperCase()
|
||||
}
|
||||
return menus.slice(0, 2).toUpperCase();
|
||||
};
|
||||
|
||||
const toggleTheme = () => {
|
||||
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
||||
}
|
||||
theme.global.name.value = theme.global.current.value.dark
|
||||
? "light"
|
||||
: "dark";
|
||||
};
|
||||
|
||||
mainmenuStore.loadlinks()
|
||||
mainmenuStore.loadlinks();
|
||||
|
||||
const gittlink = () => {
|
||||
const link =
|
||||
baseURL == "http://127.0.0.1:8000/"
|
||||
? "http://sulaco.nodered.ru:5223/COD2/PORTAL_COD2/projects"
|
||||
: "http://maestro.cod2.regions.tax.nalog.ru:3333/COD2/PORTAL_COD2/projects/22";
|
||||
return link;
|
||||
};
|
||||
|
||||
const link = baseURL=='http://127.0.0.1:8000/'?'http://sulaco.nodered.ru:5223/COD2/PORTAL_COD2/projects':'http://maestro.cod2.regions.tax.nalog.ru:3333/COD2/PORTAL_COD2/projects/22'
|
||||
return link
|
||||
}
|
||||
|
||||
// 'https://materialdesignicons.com/cdn/1.6.50-dev/'
|
||||
|
||||
// 'https://materialdesignicons.com/cdn/1.6.50-dev/'
|
||||
|
||||
const oRasrab = [
|
||||
{
|
||||
name: 'Gitt',
|
||||
ico: 'mdi-github',
|
||||
link: gittlink()
|
||||
},
|
||||
name: "Gitt",
|
||||
ico: "mdi-github",
|
||||
link: gittlink(),
|
||||
},
|
||||
{
|
||||
name: 'Swagger',
|
||||
ico: 'mdi-puzzle',
|
||||
link: 'http://127.0.0.1:8000/swagger/'
|
||||
}
|
||||
]
|
||||
|
||||
name: "Swagger",
|
||||
ico: "mdi-puzzle",
|
||||
link: "http://127.0.0.1:8000/swagger/",
|
||||
},
|
||||
];
|
||||
|
||||
// ]
|
||||
|
||||
const navigations = [
|
||||
|
||||
const navigations = ref([
|
||||
{
|
||||
name: 'Структура',
|
||||
ico: 'mdi-source-branch',
|
||||
name: "Структура",
|
||||
ico: "mdi-source-branch",
|
||||
submenu: [
|
||||
|
||||
{
|
||||
name: 'ОКиБ',
|
||||
path: "/okib"
|
||||
name: "ОКиБ",
|
||||
path: "/okib",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Сотрудники',
|
||||
ico: 'mdi-account-multiple-outline',
|
||||
name: "Сотрудники",
|
||||
ico: "mdi-account-multiple-outline",
|
||||
submenu: [
|
||||
{
|
||||
name: 'Справочник',
|
||||
link: 'http://10.252.44.33/accounting6/members.php'
|
||||
name: "Справочник",
|
||||
link: "http://10.252.44.33/accounting6/members.php",
|
||||
},
|
||||
// {
|
||||
// name: 'О пользователе',
|
||||
// ico: 'mdi-account',
|
||||
// path: "/userinfo"
|
||||
// },
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Деятельность',
|
||||
ico: 'mdi-bulletin-board',
|
||||
name: "Деятельность",
|
||||
ico: "mdi-bulletin-board",
|
||||
submenu: [
|
||||
{
|
||||
name: 'Обеспечивающая',
|
||||
path: "/providing"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Новости',
|
||||
ico: 'mdi-newspaper',
|
||||
path: "/news"
|
||||
},
|
||||
{
|
||||
name: 'Безопасность',
|
||||
ico: 'mdi-security',
|
||||
submenu: [
|
||||
{
|
||||
name: 'Пожарная безопасность',
|
||||
path: "/fire_safety"
|
||||
name: "Обеспечивающая",
|
||||
path: "/providing",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'О портале',
|
||||
ico: 'mdi-information-variant',
|
||||
path: "/portal"
|
||||
name: "Новости",
|
||||
ico: "mdi-newspaper",
|
||||
path: "/news",
|
||||
},
|
||||
{
|
||||
name: "О портале",
|
||||
ico: "mdi-information-variant",
|
||||
path: "/portal",
|
||||
},
|
||||
|
||||
{
|
||||
name: 'Об инспекции',
|
||||
ico: 'mdi-city',
|
||||
path: "/inspection"
|
||||
name: "Об инспекции",
|
||||
ico: "mdi-city",
|
||||
path: "/inspection",
|
||||
},
|
||||
{
|
||||
name: 'ical',
|
||||
ico: 'mdi-calendar',
|
||||
path: "/ical"
|
||||
name: "ical",
|
||||
ico: "mdi-calendar",
|
||||
path: "/ical",
|
||||
},
|
||||
|
||||
|
||||
// {
|
||||
// name: 'К празднику',
|
||||
// ico: 'mdi-cake-variant',
|
||||
// path: "/fnshol"
|
||||
// }
|
||||
]
|
||||
|
||||
]);
|
||||
|
||||
const imageSrc = computed(() => {
|
||||
return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href;
|
||||
})
|
||||
});
|
||||
|
||||
const closeinfo = () => {
|
||||
LikeDialog.value = false
|
||||
LikeDialog.value = false;
|
||||
// feedalert.value=true
|
||||
}
|
||||
};
|
||||
|
||||
const getSafetyChapter = () => {
|
||||
axiosApiInstance.get("api/safety/gettypes/").then((response) => {
|
||||
response.data.forEach((item) => {
|
||||
if (!item.path.startsWith("/")) {
|
||||
item.path = "/" + item.path;
|
||||
}
|
||||
});
|
||||
|
||||
if (response.data.length > 0) {
|
||||
let safetyMenu = {
|
||||
name: "Безопасность",
|
||||
ico: "mdi-security",
|
||||
submenu: response.data,
|
||||
};
|
||||
navigations.value.splice(5, 0, safetyMenu);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
getSafetyChapter();
|
||||
|
||||
return {
|
||||
theme,
|
||||
@@ -484,16 +483,14 @@ export default {
|
||||
// feedalert,
|
||||
alert,
|
||||
burl,
|
||||
|
||||
name,
|
||||
closeinfo,
|
||||
baseURL,
|
||||
getDevelopment
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
getDevelopment,
|
||||
message,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.mystat {
|
||||
@@ -503,25 +500,20 @@ export default {
|
||||
z-index: 1005;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.btnNav .v-navigation-drawer__content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.railmenu .v-list-group__items .v-list-item {
|
||||
padding-inline-start: 11px!important;
|
||||
padding-inline-start: 11px !important;
|
||||
}
|
||||
|
||||
.textcolor {
|
||||
color: #2f535e
|
||||
color: #2f535e;
|
||||
}
|
||||
|
||||
#tr-popup {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
</style>
|
||||
@@ -14,7 +14,7 @@
|
||||
:icon=feedalert.ico
|
||||
theme="dark"
|
||||
min-height="40"
|
||||
min-width = "500"
|
||||
|
||||
position="fixed"
|
||||
location = "bottom"
|
||||
class="mb-2"
|
||||
|
||||
@@ -40,7 +40,9 @@ export default createVuetify({
|
||||
app_bar: '#004D40', // Цвет для навигационной (аппбар) панели
|
||||
black_and_white: '#FFFFFF',
|
||||
grey_white: '#FFFFFF', // Цвет для карточек
|
||||
insert_table: '#FAFAFA'
|
||||
insert_table: '#FAFAFA',
|
||||
btn_text: '#00897B', // фигма, текст кнопки с иконкой
|
||||
select_list: '#E0EAE8'
|
||||
},
|
||||
},
|
||||
dark: {
|
||||
@@ -64,7 +66,9 @@ export default createVuetify({
|
||||
app_bar: '#212121',
|
||||
black_and_white: '#101311',
|
||||
grey_white: '#212121',
|
||||
insert_table: '#323030'
|
||||
insert_table: '#323030',
|
||||
btn_text: '#00897B',
|
||||
select_list: '#E0EAE8'
|
||||
},
|
||||
},
|
||||
options: {
|
||||
|
||||
@@ -75,7 +75,7 @@ const routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/:chapter_id',
|
||||
path: '/:chapter',
|
||||
component: () => import('@/views/safety/ChaptersSafety.vue'),
|
||||
meta: {
|
||||
title: "Разделы безопасности",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import axios from "axios";
|
||||
const spravURL = 'http://10.252.44.33/accounting6/images/photo/'
|
||||
|
||||
const spravURLBase = 'http://10.252.44.33/accounting6/'
|
||||
const baseURL = process.env.NODE_ENV == 'development'? 'http://127.0.0.1:8000/': `http://${window.location.host}/`;
|
||||
const baseWS = process.env.NODE_ENV == 'development'? 'ws://127.0.0.1:8000/': `ws://${window.location.host}/`;
|
||||
// const baseURL = process.env.NODE_ENV == 'development'? 'http://127.0.0.1:8000/': `http://10.252.44.60:9965/`;
|
||||
@@ -89,4 +89,4 @@ async error => {
|
||||
})
|
||||
|
||||
|
||||
export { axiosApiInstance, clearAxios, baseURL,spravURL,baseWS }
|
||||
export { axiosApiInstance, clearAxios, baseURL,spravURL, spravURLBase, baseWS }
|
||||
@@ -1,221 +1,60 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column">
|
||||
<v-card>
|
||||
<v-tabs v-model="tab" bg-color="teal-darken-1" slider-color="teal-lighten-3" selected-class="active-tab"
|
||||
:grow="true">
|
||||
<v-tab v-for="tabitem in tabs_items" :value="tabitem.value">{{ tabitem.title }}</v-tab>
|
||||
</v-tabs>
|
||||
</v-card>
|
||||
<v-col>
|
||||
<v-window v-model="tab">
|
||||
<v-window-item class="gap h-100" value="mainInfo">
|
||||
<v-row class="ma-1">
|
||||
<v-row no-gutters>
|
||||
<v-col class="d-flex flex-column gap">
|
||||
<v-card>
|
||||
<v-card-text class="text-h6 text-center">
|
||||
<p>
|
||||
Межрегиональная инспекция Федеральной налоговой службы по централизованной
|
||||
обработке
|
||||
данных №2
|
||||
</p>
|
||||
<p>
|
||||
создана 01.02.2018 года в соответствии с приказом ФНС России от 27.12.2017
|
||||
№ММВ-7-4/1102
|
||||
</p>
|
||||
</v-card-text>
|
||||
|
||||
<v-card-text class="text-h6 text-center">
|
||||
<a class=" text-decoration-none" :href="caCuratorLink">Работа МИ ФНС
|
||||
России
|
||||
по ЦОД №2
|
||||
координируется заместителем
|
||||
руководителя ФНС
|
||||
России
|
||||
Будариным Андреем Владимировичем</a>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col lg="3" class="d-flex flex-column gap">
|
||||
<v-card>
|
||||
<v-card-title class="text-h6 text-uppercase text-center"> Начальник
|
||||
инспекции</v-card-title>
|
||||
<v-divider></v-divider>
|
||||
<div class="w-100 d-flex justify-center">
|
||||
<v-avatar rounded="0" size="200">
|
||||
<v-img :src="checkremote(`${spravURL}${userlinks.login}.jpg`)"></v-img>
|
||||
</v-avatar>
|
||||
</div>
|
||||
<v-card-title class="text-h6 text-center">{{ userlinks.fio }}</v-card-title>
|
||||
<v-card-text class="text-center">
|
||||
<p>{{ bossRank }}</p>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
<v-card>
|
||||
<v-card-title class="text-h6 text-center text-uppercase">
|
||||
Штатная численность
|
||||
</v-card-title>
|
||||
<v-card-text class="text-h2 text-center ma-7">
|
||||
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='getstatesize.statesize'
|
||||
:duration='2' />
|
||||
</v-card-text>
|
||||
|
||||
<v-card-subtitle class="text-center">по состоянию на
|
||||
{{ new Date(getstatesize.date_created).toLocaleDateString("ru-RU") }}
|
||||
</v-card-subtitle>
|
||||
|
||||
<v-divider></v-divider>
|
||||
|
||||
<v-card-title class="text-h6 text-center text-uppercase">
|
||||
Фактическая численность
|
||||
</v-card-title>
|
||||
|
||||
<v-card-text class="text-h2 text-center ma-8">
|
||||
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='getfactsize.factsize'
|
||||
:duration='2' />
|
||||
</v-card-text>
|
||||
|
||||
<v-card-subtitle class="text-center">по состоянию на
|
||||
{{ new Date(getfactsize.date_created).toLocaleDateString("ru-RU") }}
|
||||
</v-card-subtitle>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col lg="9">
|
||||
<v-card>
|
||||
<v-card-title class=" text-h6 text-uppercase text-center">
|
||||
Основные направления деятельности инспекции
|
||||
</v-card-title>
|
||||
<v-divider></v-divider>
|
||||
<v-row no-gutters class="d-flex justify-center">
|
||||
<v-col v-for="direction in directionworks" :key="direction.id" lg="12">
|
||||
<v-card class="ma-3 d-flex" :elevation="3" :height="104">
|
||||
<v-col class="d-flex align-center justify-center">
|
||||
<v-avatar class="elevation-10 text-teal-darken-4"
|
||||
color="teal-lighten-5">
|
||||
<v-icon :icon="direction.icon_name"></v-icon>
|
||||
</v-avatar>
|
||||
</v-col>
|
||||
<v-col lg="11" class="d-flex align-center justify-start text-h6">
|
||||
{{ direction.direction_title }}
|
||||
</v-col>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-row>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="structureInspection">
|
||||
<structure-inspection />
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="openVacancies">
|
||||
<h1>Открытые вакансии</h1>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="contactInfo">
|
||||
<contact-info />
|
||||
</v-window-item>
|
||||
</v-window>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<pattern-tabs :tabs="tabs_items">
|
||||
<template v-slot:item>
|
||||
<v-window-item class="gap h-100" value="mainInfo">
|
||||
<general-information />
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="structureInspection">
|
||||
<structure-inspection />
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="openVacancies">
|
||||
<open-vacancies/>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="contactInfo">
|
||||
<contact-info />
|
||||
</v-window-item>
|
||||
</template>
|
||||
</pattern-tabs>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import { axiosApiInstance } from '@/utils/axios-api'
|
||||
import { checkremote } from '@/utils/universal_functions'
|
||||
import { spravURL, baseURL } from '@/utils/axios-api'
|
||||
import StructureInspection from '@/components/about_inspection/structure/StructureInspection.vue';
|
||||
import ContactInfo from '@/components/about_inspection/contacts/ContactInfo.vue';
|
||||
import { pagecounter } from '@/utils/universal_functions'
|
||||
|
||||
|
||||
import StructureInspection from "@/components/about_inspection/structure/StructureInspection.vue";
|
||||
import ContactInfo from "@/components/about_inspection/contacts/ContactInfo.vue";
|
||||
import { pagecounter } from "@/utils/universal_functions";
|
||||
import PatternTabs from "@/components/UI/PatternTabs.vue";
|
||||
import GeneralInformation from "@/components/about_inspection/general_information/GeneralInformation.vue";
|
||||
import OpenVacancies from '@/components/about_inspection/open_vacancies/OpenVacancies.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
StructureInspection,
|
||||
ContactInfo,
|
||||
},
|
||||
|
||||
setup() {
|
||||
const userlinks = ref([])
|
||||
const getfactsize = ref({ 'factsize': 0, 'date_created': new Date() })
|
||||
const getstatesize = ref({ 'statesize': 0, 'date_created': new Date() })
|
||||
const directionworks = ref([])
|
||||
const caCuratorLink = ref('https://www.nalog.gov.ru/rn77/about_fts/fts/structure_fts/ca_fns/9515034/')
|
||||
|
||||
const infouser = () => {
|
||||
axiosApiInstance.get('api/accounts/getuser/?userlogin=9966-00-001').then(res => {
|
||||
userlinks.value = res.data
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
const getFactSize = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getfactsize/').then(res => {
|
||||
getfactsize.value = res.data
|
||||
})
|
||||
}
|
||||
|
||||
const getStateSize = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getstatesize/').then(res => {
|
||||
getstatesize.value = res.data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const getInspectionDirections = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getinspectiondirections/').then(res => {
|
||||
directionworks.value = res.data
|
||||
console.log(directionworks.value)
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
getInspectionDirections()
|
||||
getStateSize()
|
||||
getFactSize()
|
||||
infouser()
|
||||
pagecounter()
|
||||
return {
|
||||
caCuratorLink,
|
||||
directionworks,
|
||||
getstatesize,
|
||||
getfactsize,
|
||||
spravURL,
|
||||
baseURL,
|
||||
checkremote,
|
||||
caCuratorLink,
|
||||
userlinks,
|
||||
tab: ref(null),
|
||||
date_now: new Date().toLocaleDateString("ru-RU"),
|
||||
bossRank: "Государственный советник Российской Федерации 2 класса",
|
||||
tabs_items: [{ "title": "Общая информация", "value": "mainInfo" },
|
||||
{ "title": "Структура инспекции", "value": "structureInspection" },
|
||||
{ "title": "Открытые вакансии", "value": "openVacancies" },
|
||||
{ "title": "Контактная информация", "value": "contactInfo" }],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
components: {
|
||||
StructureInspection,
|
||||
ContactInfo,
|
||||
PatternTabs,
|
||||
GeneralInformation,
|
||||
OpenVacancies
|
||||
},
|
||||
|
||||
setup() {
|
||||
|
||||
pagecounter();
|
||||
return {
|
||||
tabs_items: [
|
||||
{ title: "Общая информация", value: "mainInfo" },
|
||||
{ title: "Структура инспекции", value: "structureInspection" },
|
||||
{ title: "Открытые вакансии", value: "openVacancies" },
|
||||
{ title: "Контактная информация", value: "contactInfo" },
|
||||
],
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
.active-tab {
|
||||
background-color: #E0F2F1;
|
||||
color: #004D40;
|
||||
background-color: #e0f2f1;
|
||||
color: #004d40;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@@ -1,119 +1,104 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column h-100 gap pa-1">
|
||||
<v-col lg="1" class="w100 h-100">
|
||||
<v-card>
|
||||
<v-tabs
|
||||
v-model="tab"
|
||||
bg-color="teal-darken-1"
|
||||
slider-color="teal-darken-2"
|
||||
:grow="true">
|
||||
<v-tab selected-class="isActiveTab" value="mainInfo">Основная информация</v-tab>
|
||||
<v-tab selected-class="isActiveTab" value="document">Документация</v-tab>
|
||||
<v-tab selected-class="isActiveTab" value="testings">Тестирование</v-tab>
|
||||
</v-tabs>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="w100 h-100">
|
||||
<v-window v-model="tab" class="h-100">
|
||||
<v-window-item no-gutters class="gap h-100" value="mainInfo">
|
||||
<MainInfoSafety></MainInfoSafety>
|
||||
</v-window-item>
|
||||
<v-window-item value="document" class="h-100">
|
||||
<v-row no-gutters class="gap h-100 ">
|
||||
<v-col lg="6">
|
||||
<!---->
|
||||
<v-card class="h-100 flex-column d-flex gap">
|
||||
<v-row class="ma-0 my-3 overflow-auto h-0 pb-1">
|
||||
<v-card v-for="item in safetyData" :key="item.id" class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||
<v-card-title>{{ item.name }}</v-card-title>
|
||||
<v-container
|
||||
v-for="category in item.categories"
|
||||
:key="item.id + category.id"
|
||||
:fluid="true"
|
||||
class="py-0">
|
||||
<v-card-actions v-if="category.id != 'evacuation_plan'">
|
||||
<v-btn
|
||||
@click="showMore[item.id + category.id] = !showMore[item.id + category.id]"
|
||||
variant="text">
|
||||
{{ category.name }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:icon="showMore[item.id + category.id] ? 'mdi-chevron-up' : 'mdi-chevron-down'"
|
||||
@click="showMore[item.id + category.id] = !showMore[item.id + category.id]">
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
<v-expand-transition>
|
||||
<div v-show="showMore[item.id + category.id]">
|
||||
<v-card-actions v-for="file in category.files" :key="file.id" class="overflow-y-auto">
|
||||
<v-card-text
|
||||
class="cursor-pointer"
|
||||
:ref_="openPDF(burl + file.url)"
|
||||
@click="openPDF(burl + file.url), loading=true">
|
||||
{{ file.name }}
|
||||
<v-row no-gutters class="flex-column h-100 gap pa-1">
|
||||
<v-col class="w100 h-100 flex-grow-0">
|
||||
<v-card>
|
||||
<v-tabs v-model="tab" bg-color="bg_tab" slider-color="slider_tab" selected-class="isActiveTab" :grow="true">
|
||||
<v-tab value="mainInfo">Основная информация</v-tab>
|
||||
<v-tab value="document">Документация</v-tab>
|
||||
<v-tab value="testings">Тестирование</v-tab>
|
||||
</v-tabs>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="w100 h-100">
|
||||
<v-window v-model="tab" class="h-100">
|
||||
<v-window-item no-gutters class="gap h-100" value="mainInfo">
|
||||
<MainInfoSafety :formainpage="formainpage"></MainInfoSafety>
|
||||
</v-window-item>
|
||||
<v-window-item value="document" class="h-100">
|
||||
<v-row no-gutters class="gap h-100 ">
|
||||
<v-col lg="6">
|
||||
<v-card class="h-100 flex-column d-flex gap ">
|
||||
<v-row class="ma-0 overflow-auto pb-1 ">
|
||||
<v-card class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||
<v-card-title>{{ safetyData.name }}</v-card-title>
|
||||
<v-expansion-panels
|
||||
multiple
|
||||
flat>
|
||||
<v-expansion-panel elevation=0 v-for="category in safetyData.categories"
|
||||
:key="category.id" class="py-0">
|
||||
<v-expansion-panel-title class="font-weight-medium">{{
|
||||
category.category__name }}</v-expansion-panel-title>
|
||||
<v-expansion-panel-text>
|
||||
<div v-for="file in category.files" :key="file.id"
|
||||
class="overflow-y-auto d-flex justify-space-between">
|
||||
<div class="cursor-pointer"
|
||||
@click="openPDF(file.url), loading = true">
|
||||
{{ file.name }}
|
||||
</div>
|
||||
<div>
|
||||
<v-btn variant="text" icon="mdi-file-pdf-box"
|
||||
color="red"
|
||||
@click="openPDF(file.url), loading = true"></v-btn>
|
||||
<v-btn variant="text"
|
||||
icon='mdi-file-download-outline' color="green"
|
||||
@click="downloadItem(burl + file.url, file.name)"></v-btn>
|
||||
</div>
|
||||
</div>
|
||||
</v-expansion-panel-text>
|
||||
</v-expansion-panel>
|
||||
</v-expansion-panels>
|
||||
</v-card>
|
||||
</v-row>
|
||||
<v-row class="ma-0 overflow-auto bg-yellow ">
|
||||
<v-card class="overflow-y-auto flex-grow-1 h-100">
|
||||
<v-card-title>{{ responsibilityData.name }}</v-card-title>
|
||||
<v-container v-for="file in responsibilityData.files" :fluid="true" class="py-0">
|
||||
<v-card-actions :key="file.id">
|
||||
<v-card-text class="cursor-pointer"
|
||||
@click="openPDF(checkNameFiles(file)), loading = true">
|
||||
{{ get_name(decodeURI(file.file_name.replace(/\.[^/.]+$/, ""))) }}
|
||||
</v-card-text>
|
||||
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(burl + file.url), loading=true"></v-btn>
|
||||
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(burl + file.url, file.name)"></v-btn>
|
||||
<v-btn icon="mdi-file-pdf-box" color="red"
|
||||
@click="openPDF(checkNameFiles(file)), loading = true"></v-btn>
|
||||
<v-btn icon='mdi-file-download-outline' color="green"
|
||||
@click="downloadItem(burl + checkNameFiles(file), get_name(decodeURI(file.file_name)))"></v-btn>
|
||||
</v-card-actions>
|
||||
</div>
|
||||
</v-expand-transition>
|
||||
</v-container>
|
||||
</v-card>
|
||||
</v-row>
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||
<v-card-title>{{ responsibilityData.name }}</v-card-title>
|
||||
<v-container
|
||||
v-for="file in responsibilityData.files"
|
||||
:fluid="true"
|
||||
class="py-0">
|
||||
<v-card-actions :key="file.id">
|
||||
<v-card-text>{{ file.file_name.replace(/\.[^/.]+$/, "") }}</v-card-text>
|
||||
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(burl + file.url), loading=true"></v-btn>
|
||||
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(burl + file.file_name, file.file_name)"></v-btn>
|
||||
<!-- @click="downloadItem(burl + file.file_name, file.file_name)" -->
|
||||
</v-container>
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-card class="h-100 flex-column d-flex gap">
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card v-show="showFile"
|
||||
class="mr-2 flex-grow-1 flex-shrink-1 h-100 pa-2 overflow-auto">
|
||||
<v-container v-if="loading">
|
||||
<v-progress-linear :rounded="5" indeterminate color="teal">
|
||||
</v-progress-linear>
|
||||
</v-container>
|
||||
<VuePdfEmbed :source="pdfSource" width="720" @rendered="loading = false" />
|
||||
</v-card>
|
||||
</v-row>
|
||||
<v-card-actions v-show="showFile">
|
||||
<v-btn position="sticky" block @click="showFile = false">Закрыть</v-btn>
|
||||
</v-card-actions>
|
||||
</v-container>
|
||||
</v-card>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<!-- <v-card class="h-100 flex-column d-flex gap">
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card v-show="showFile" class="mr-2 flex-grow-1 flex-shrink-1 h-100 pa-2 overflow-auto">
|
||||
<v-container v-if="loading">
|
||||
<v-progress-linear
|
||||
:rounded="5"
|
||||
indeterminate
|
||||
color="teal">
|
||||
</v-progress-linear>
|
||||
</v-container>
|
||||
<VuePdfEmbed :source="pdfSource" width="720" @rendered="loading = false"/>
|
||||
</v-card>
|
||||
</v-row>
|
||||
<v-card-actions v-show="showFile">
|
||||
<v-btn
|
||||
position="sticky"
|
||||
block
|
||||
@click="showFile = false">Закрыть</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card> -->
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-window-item>
|
||||
<v-window-item value="testings" no-gutters class="gap h-100 ">
|
||||
<TestSafety></TestSafety>
|
||||
</v-window-item>
|
||||
</v-window>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-window-item>
|
||||
<v-window-item value="testings" no-gutters class="gap h-100 ">
|
||||
<TestSafety></TestSafety>
|
||||
</v-window-item>
|
||||
</v-window>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onBeforeMount, onUpdated } from 'vue';
|
||||
import { ref, onBeforeMount, computed } from 'vue';
|
||||
import { pagecounter } from '@/utils/universal_functions';
|
||||
import { axiosApiInstance, baseURL } from '@/utils/axios-api';
|
||||
import { axiosApiInstance, baseURL, spravURLBase } from '@/utils/axios-api';
|
||||
import { saveAs } from 'file-saver';
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
@@ -123,23 +108,41 @@ import MainInfoSafety from './MainInfoSafety.vue';
|
||||
|
||||
pagecounter();
|
||||
|
||||
const safetyData = ref([]);
|
||||
const safetyData = ref({categories:[]});
|
||||
const responsibilityData = ref();
|
||||
const showMore = ref(false);
|
||||
const showFile = ref(false);
|
||||
let pdfSource = '';
|
||||
const showFile = ref(true);
|
||||
let pdfSource = ref("");
|
||||
const loading = ref(false);
|
||||
const tab = ref('');
|
||||
const burl = baseURL.slice(0,-1);
|
||||
const burl = baseURL.slice(0, -1);
|
||||
const route = useRoute();
|
||||
|
||||
// Вынес запрос в отдельную функцию, чтобы избежать дублирования одного и того же запроса на сервер.
|
||||
function getSafety() {
|
||||
axiosApiInstance.get(`api/safety/files/?chapter_id=${route.params.chapter_id}`).then(result => {
|
||||
axiosApiInstance.get(`api/safety/files/?chapter=${route.params.chapter}`).then(result => {
|
||||
safetyData.value = result.data
|
||||
// console.log(safetyData.value);
|
||||
loading.value = true
|
||||
pdfSource.value = burl + safetyData.value.categories[0].files[0].url
|
||||
// console.log(safetyData.value);
|
||||
})
|
||||
}
|
||||
|
||||
const formainpage = computed({
|
||||
get() {
|
||||
let arr = []
|
||||
safetyData.value.categories.forEach(element => {
|
||||
element.files.forEach((e) => {
|
||||
if (e.formainpage == true) {
|
||||
arr.push(e)
|
||||
}
|
||||
})
|
||||
})
|
||||
return arr
|
||||
}
|
||||
})
|
||||
|
||||
function getResponsibility() {
|
||||
axiosApiInstance.get(`api/safety/committee_files/`).then(result => {
|
||||
responsibilityData.value = result.data
|
||||
@@ -149,32 +152,37 @@ function getResponsibility() {
|
||||
getResponsibility()
|
||||
|
||||
onBeforeMount(() => getSafety());
|
||||
// Хук обновления реализует возможность динамической подгрузки данных при переключении между вкладками раздела безопасность
|
||||
onUpdated(() => getSafety());
|
||||
|
||||
// Проверяем по ID на какой категории срабатывает клик на раскрытии/скрытии, чтобы избежать срабатывания у всех категорий одновременно
|
||||
showMore.value = safetyData.value.reduce((acc, value) => {
|
||||
acc[value.id] = false
|
||||
return acc
|
||||
}, {});
|
||||
|
||||
const downloadItem = (url, fileName) => {
|
||||
axiosApiInstance.get(url, {responseType: 'blob'})
|
||||
.then(response => {
|
||||
saveAs(response.data, fileName)
|
||||
})
|
||||
axiosApiInstance.get(url, { responseType: 'blob' })
|
||||
.then(response => {
|
||||
saveAs(response.data, fileName)
|
||||
})
|
||||
};
|
||||
|
||||
function openPDF(url) {
|
||||
pdfSource.value = burl + url
|
||||
showFile.value = true
|
||||
if (showFile) {
|
||||
return pdfSource = url
|
||||
}
|
||||
};
|
||||
|
||||
function get_name(namestr) {
|
||||
let arr = namestr.split("/")
|
||||
return arr[arr.length - 1]
|
||||
}
|
||||
|
||||
function checkNameFiles(obj) {
|
||||
if (obj.file_name.includes('/media/comitee_files/')) {
|
||||
return obj.file_name
|
||||
}
|
||||
else {
|
||||
return spravURLBase + `files/committee1_docs/${obj.id_committee1}/${get_name(obj.file_name)}`
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.isActiveTab {
|
||||
background-color: #68c3ff70;
|
||||
background-color: #E0F2F1;
|
||||
color: #004D40;
|
||||
}
|
||||
</style>
|
||||
@@ -1,106 +1,19 @@
|
||||
<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-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" />
|
||||
<v-img v-else
|
||||
class="cursor-pointer"
|
||||
:src="burl + schema.url"
|
||||
@click="openFirstPlan_opener(schema)">
|
||||
</v-img>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-col cols="3" class="w100">
|
||||
<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">
|
||||
@@ -112,23 +25,52 @@
|
||||
</list-user>
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</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>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
import { baseURL, axiosApiInstance } from '@/utils/axios-api'
|
||||
import { ref } from 'vue';
|
||||
import VuePdfEmbed from 'vue-pdf-embed';
|
||||
|
||||
defineProps(
|
||||
{
|
||||
formainpage: Object,
|
||||
require:true
|
||||
},
|
||||
)
|
||||
|
||||
const urlschema=ref(null)
|
||||
const burl = baseURL.slice(0,-1)
|
||||
const openImg = ref(false)
|
||||
const openFirstPlan = ref(false)
|
||||
const openSecondPlan = ref(false)
|
||||
const responsibility = ref([])
|
||||
|
||||
function openFirstPlan_opener(schema){
|
||||
urlschema.value = burl + schema.url
|
||||
openFirstPlan.value = true
|
||||
}
|
||||
|
||||
function getResponsibility() {
|
||||
axiosApiInstance.get(`api/safety/responsibility/`).then(result => {
|
||||
responsibility.value = result.data.users
|
||||
@@ -137,5 +79,10 @@ function getResponsibility() {
|
||||
|
||||
getResponsibility()
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
<style>
|
||||
.meheight {
|
||||
max-height: 44vh;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user