This commit is contained in:
Nukeap committed 2024-04-10 08:18:06 +03:00
commit e0e0c046ba
12 files changed
+437 -371

No files matched your search

+1
View File
@@ -3,4 +3,5 @@ from .models import *
admin.site.register(StateSize)
admin.site.register(FactSize)
admin.site.register(InspectionDirections)
+10 -1
View File
@@ -5,13 +5,22 @@ from django.db import models
class StateSize(models.Model):
statesize = models.IntegerField( verbose_name="Штатная численность")
date_created = models.DateField(auto_now_add=True)
date_created = models.DateField(verbose_name="Дата создания")
class Meta:
verbose_name = "Штатная численность"
verbose_name_plural = "Штатная численность"
def __str__(self):
return str(self.statesize)
class FactSize(models.Model):
factsize = models.IntegerField( verbose_name="Фактическая численность")
date_created = models.DateField(verbose_name="Дата создания")
class Meta:
verbose_name = "Фактическая численность"
verbose_name_plural = "Фактическая численность"
def __str__(self):
return str(self.factsize)
class InspectionDirections(models.Model):
+6
View File
@@ -8,6 +8,12 @@ class StateSizeSerializer(serializers.ModelSerializer):
model = StateSize
fields ='__all__'
class FactSizeSerializer(serializers.ModelSerializer):
class Meta:
model = FactSize
fields ='__all__'
class InspectionDirectionsSerializer(serializers.ModelSerializer):
+6 -7
View File
@@ -5,13 +5,6 @@ from datetime import date
from .models import *
from .serializers import *
from rest_framework.response import Response
# Create your views here.
class GetFactSize(ListAPIView):
def get(self, request):
fact_size = DictEmployee.objects.filter(Q(deleteddate__isnull= True)).count()
print(fact_size)
return Response({'fact_size':fact_size})
class GetStateSize(ListAPIView):
@@ -20,6 +13,12 @@ class GetStateSize(ListAPIView):
return Response(StateSizeSerializer(state_size).data)
class GetFactSize(ListAPIView):
def get(self, request):
fact_size = FactSize.objects.latest('date_created')
return Response(FactSizeSerializer(fact_size).data)
class GetInspectionDirections(ListAPIView):
queryset = InspectionDirections.objects.all()
serializer_class = InspectionDirectionsSerializer
-79
View File
@@ -1,79 +0,0 @@
<template>
<v-col lg="12" class=" d-flex flex-column mt-10 pt-10">
<v-col no-gutters class=" d-flex justify-center">
<div style="height:500px; width:600px">
<l-map :zoom="13" :min-zoom="13" :center="[55.83451, 37.40848]">
<l-tile-layer :url="`${baseURL}media/Tiles/{z}/{x}/{y}.png`"></l-tile-layer>
<l-marker :lat-lng="[55.83451, 37.40848]" :icon="icon_cod"> </l-marker>
<l-marker :lat-lng="[55.83309, 37.39933]" :icon="icon_mcd"> </l-marker>
<l-marker :lat-lng="[55.83463, 37.38335]" :icon="icon_metro"> </l-marker>
<l-marker :lat-lng="[55.83213, 37.38247]" :icon="icon_mcd"> </l-marker>
<l-marker :lat-lng="[55.82741, 37.43715]" :icon="icon_metro"> </l-marker>
<l-marker :lat-lng="[55.82705, 37.4411]" :icon="icon_mcd"> </l-marker>
<l-marker :lat-lng="[55.8496, 37.43925]" :icon="icon_metro"> </l-marker>
<l-marker :lat-lng="[55.8252, 37.3853]" :icon="icon_metro"> </l-marker>
</l-map>
</div>
</v-col>
<v-col lg="12" class=" d-flex justify-center">
<v-col lg="5">
<v-card>
<v-card-text class="text-h7 text-uppercase text-center">
<p>{{ address.title }}</p>
<p><a class="text-decoration-none" :href="address.link_address">{{ address.link
}}</a></p>
</v-card-text>
</v-card>
</v-col>
</v-col>
</v-col>
</template>
<script>
import { baseURL } from '@/utils/axios-api'
import "leaflet/dist/leaflet.css";
import { LMap, LTileLayer, LMarker } from "@vue-leaflet/vue-leaflet";
import { L, icon } from "leaflet"
export default {
components: {
LMap,
LTileLayer,
LMarker,
L,
icon
},
setup() {
return {
icon_cod: icon({
iconUrl: `${baseURL}media/map_icons/fns.png`,
iconSize: [30, 30],
iconAnchor: [16, 40]
}),
icon_mcd: icon({
iconUrl: `${baseURL}media/map_icons/mcd_d2.png`,
iconSize: [32, 18],
iconAnchor: [10, 20]
}),
icon_metro: icon({
iconUrl: `${baseURL}media/map_icons/mos_metro.png`,
iconSize: [30, 25],
iconAnchor: [10, 20]
}),
address: {
"title": "125373, Москва, Походный проезд, двл.3, стр 1, Телефон: 8(495) 198-53 - 12",
"link": "www.nalog.ru",
"link_address": "https://www.nalog.gov.ru/rn77/about_fts/fts/structure_fts/mri_fns/cod2/"
},
baseURL,
}
}
}
</script>
<style>
.leaflet-control-attribution {
display: none;
}
</style>
@@ -1,108 +0,0 @@
<script setup>
import { ref } from 'vue'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { ControlButton, Controls } from '@vue-flow/controls'
import { Background } from '@vue-flow/background'
import "@vue-flow/core/dist/style.css"
import { initialEdges, initialNodes } from './structure_com/initial-elements'
import Icon from './structure_com/Icon.vue'
/**
* useVueFlow provides all event handlers and store properties
* You can pass the composable an object that has the same properties as the VueFlow component props
*/
const { onPaneReady, onNodeDragStop, onConnect, addEdges, setViewport, toObject } = useVueFlow()
defineProps(['label'])
const nodes = ref(initialNodes)
const edges = ref(initialEdges)
// our dark mode toggle flag
const dark = ref(false)
/**
* This is a Vue Flow event-hook which can be listened to from anywhere you call the composable, instead of only on the main component
* Any event that is available as `@event-name` on the VueFlow component is also available as `onEventName` on the composable and vice versa
*
* onPaneReady is called when viewpane & nodes have visible dimensions
*/
onPaneReady(({ fitView }) => {
fitView()
})
/**
* onNodeDragStop is called when a node is done being dragged
*
* Node drag events provide you with:
* 1. the event object
* 2. the nodes array (if multiple nodes are dragged)
* 3. the node that initiated the drag
* 4. any intersections with other nodes
*/
onNodeDragStop(({ event, nodes, node, intersections }) => {
console.log('Node Drag Stop', { event, nodes, node, intersections })
})
/**
* onConnect is called when a new connection is created.
*
* You can add additional properties to your new edge (like a type or label) or block the creation altogether by not calling `addEdges`
*/
onConnect((connection) => {
addEdges(connection)
})
/**
* To update a node or multiple nodes, you can
* 1. Mutate the node objects *if* you're using `v-model`
* 2. Use the `updateNode` method (from `useVueFlow`) to update the node(s)
* 3. Create a new array of nodes and pass it to the `nodes` ref
*/
/**
* Resets the current viewport transformation (zoom & pan)
*/
function resetTransform() {
setViewport({ x: 0, y: 0, zoom: 1 })
}
</script>
<template>
<VueFlow :nodes="nodes" :edges="edges" :class="{ dark }" class="basicflow" :default-viewport="{ zoom: 1 }" :min-zoom="1"
:max-zoom="1" fit-view-on-init>
<Background bgColor="#ffff" />
<Controls position="top-right">
<ControlButton title="Reset Transform" @click="resetTransform">
<Icon name="reset" />
</ControlButton>
</Controls>
</VueFlow>
</template>
<style>
.up-bosses {
width: 300px;
border-radius: 5px;
background-color: #ffff;
text-transform: uppercase;
text-align: center;
font-size: .95em;
padding: 10px;
}
.bosses {
width: 12%;
padding: .5%;
border-radius: 5px;
background-color: #ffff;
text-transform: uppercase;
text-align: center;
font-size: .95em;
}
</style>
@@ -0,0 +1,105 @@
<template>
<v-row lg="12" class="mt-10 ml-13">
<v-col lg="5" no-gutters class="d-flex justify-end align-start">
<v-card :width="640" :height="600" :elevation="5">
<div style="width:640px;height:600px; ">
<l-map :zoom="13" :min-zoom="13" :center="[55.83451, 37.40848]">
<l-tile-layer :url="`${baseURL}media/Tiles/{z}/{x}/{y}.png`"></l-tile-layer>
<l-marker :lat-lng="[55.83451, 37.40848]" :icon="icon_cod"> </l-marker>
<l-marker :lat-lng="[55.83309, 37.39933]" :icon="icon_mcd"> </l-marker>
<l-marker :lat-lng="[55.83463, 37.38335]" :icon="icon_metro"> </l-marker>
<l-marker :lat-lng="[55.83213, 37.38247]" :icon="icon_mcd"> </l-marker>
<l-marker :lat-lng="[55.82741, 37.43715]" :icon="icon_metro"> </l-marker>
<l-marker :lat-lng="[55.82705, 37.4411]" :icon="icon_mcd"> </l-marker>
<l-marker :lat-lng="[55.8496, 37.43925]" :icon="icon_metro"> </l-marker>
<l-marker :lat-lng="[55.8252, 37.3853]" :icon="icon_metro"> </l-marker>
</l-map>
</div>
</v-card>
</v-col>
<v-col lg="6" no-gutters class="d-flex flex-column ml-16">
<v-row lg="12" class="pt-3">
<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-card-text class="pt-15">
<v-list>
<v-list-item class="text-subtitle-2" v-for="(address_path, i) in address_pathes" :key="i">
{{ address_path.path }}
</v-list-item>
</v-list>
</v-card-text>
</v-card>
</v-row>
<v-row lg="12">
<v-card :elevation="5" class="w-100 mb-2 mt-2">
<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-h6 d-flex justify-center pt-10">
{{ address.building }}
</v-card-text>
<v-card-text class="text-h6 d-flex justify-center">
<p>{{ address.phone }}</p>
</v-card-text>
</v-card>
</v-row>
</v-col>
</v-row>
</template>
<script>
import { baseURL } from '@/utils/axios-api'
import "leaflet/dist/leaflet.css";
import { LMap, LTileLayer, LMarker } from "@vue-leaflet/vue-leaflet";
import { L, icon } from "leaflet"
export default {
components: {
LMap,
LTileLayer,
LMarker,
L,
icon
},
setup() {
return {
icon_cod: icon({
iconUrl: `${baseURL}media/map_icons/fns.png`,
iconSize: [30, 30],
iconAnchor: [16, 40]
}),
icon_mcd: icon({
iconUrl: `${baseURL}media/map_icons/mcd_d2.png`,
iconSize: [32, 18],
iconAnchor: [10, 20]
}),
icon_metro: icon({
iconUrl: `${baseURL}media/map_icons/mos_metro.png`,
iconSize: [30, 25],
iconAnchor: [10, 20]
}),
address: {
"building": "125373, Москва, Походный проезд, двл.3, стр 1",
"phone": "Телефон: 8(495) 198-53 - 12"
},
address_pathes: [
{ "path": "От станции метро «Волоколамская», 837 автобусом до остановки «Таксомоторный парк», или маршрутным такси № 441" },
{ "path": "От станции метро «Сходненская», 1-й вагон из центра, маршрутное такси № 368, последний вагон из центра, автобусы № 678, № 199" },
{ "path": "От станции метро «Тушинская», последний вагон из центра, автобусы № 2, № 266 до остановки «пл. Трикотажная», автобусы № 88, №177 до остановки «17 Таксомоторный парк»" }
],
baseURL,
}
}
}
</script>
<style>
.leaflet-control-attribution {
display: none;
}
</style>
@@ -0,0 +1,26 @@
<template>
<v-card :elevation="3" :width="width" :height="height">
<!-- <Handle type="source" :position="Position.Right" />
<Handle type="target" :position="Position.Left" />
<Handle type="source" :position="Position.Top" />
<Handle type="target" :position="Position.Bottom" /> -->
<v-card-text class="nodrag nopan d-flex justify-center align-center
text-h6
bg-teal-lighten-5 text-center text-teal-darken-4 h-50 pa-3">
<p class="pa-5">{{ label }}</p>
</v-card-text>
<v-card-text class=" text-center text-h6 d-flex justify-center align-center pa-3">
<p>{{ data }}</p>
</v-card-text>
</v-card>
</template>
<script setup>
import { Position, Handle } from '@vue-flow/core'
import "@vue-flow/core/dist/style.css"
// props were passed from the slot using `v-bind="customNodeProps"`
const props = defineProps(['label', 'data', 'width', 'height'])
</script>
@@ -0,0 +1,206 @@
<template>
<VueFlow :nodes="nodes" :edges="edges" :class="{ dark }" class="basicflow" :default-viewport="{ zoom: 1 }" :min-zoom="1"
:max-zoom="1" fit-view-on-init>
<template #node-boss="bossNodeProps">
<BossNode :width="500" :height="100" v-bind="bossNodeProps" />
</template>
<template #node-middleboss="bossNodeProps">
<BossNode :width="230" :height="170" v-bind="bossNodeProps" />
</template>
<template #node-deps="bossNodeProps">
<BossNode :width="250" :height="180" v-bind="bossNodeProps" />
</template>
<Background bgColor="#ffff" />
<Controls position="top-right">
<ControlButton title="Reset Transform" @click="resetTransform">
</ControlButton>
</Controls>
</VueFlow>
</template>
<script>
import { ref } from 'vue'
import { VueFlow, useVueFlow, Position } from '@vue-flow/core'
import { ControlButton, Controls } from '@vue-flow/controls'
import { Background } from '@vue-flow/background'
import "@vue-flow/core/dist/style.css"
import "@vue-flow/core/dist/theme-default.css"
import BossNode from './BossNode.vue'
export default {
components: {
VueFlow,
useVueFlow,
Position,
ControlButton,
Controls,
Background,
BossNode
},
setup() {
const dark = ref(false)
const { onPaneReady, onConnect, addEdges, setViewport } = useVueFlow()
function resetTransform() {
setViewport({ x: 0, y: 0, zoom: 1 })
}
onConnect((connection) => {
addEdges(connection)
})
onPaneReady(({ fitView }) => {
fitView()
})
resetTransform()
return {
dark,
nodes: ref([
{
id: '1',
type: 'boss',
label: 'Руководитель МИ ФНС России по ЦОД №2',
data: 'Борис Борисович Толоко ',
position: { x: 180, y: 50 },
sourcePosition: Position.Right,
targetPosition: Position.Bottom,
},
{
id: '2',
type: 'middleboss',
label: 'Заместитель начальника',
data: 'Андреева Наталья Владимировна',
position: { x: 140, y: 280 },
targetPosition: Position.Top,
},
{
id: '3',
type: 'middleboss',
label: 'Заместитель начальника',
data: 'Ахкубеков Мухамат Алиевич',
position: { x: 680, y: 280 },
sourcePosition: Position.Top,
},
{
id: '4',
type: 'middleboss',
label: 'Заместитель начальника',
data: 'Послухаев Артем Николаевич',
position: { x: 1220, y: 280 },
targetPosition: Position.Top,
},
{
id: '5',
type: 'middleboss',
label: 'Общий отдел',
data: ' Начальник Золина Татьяна Евгеньевна ',
position: { x: 792, y: 15 },
targetPosition: Position.Left,
sourcePosition: Position.Right,
},
{
id: '6',
type: 'middleboss',
label: 'Отдел кадров и безопасности',
data: 'Начальник Фролова Ирина Николаевна',
position: { x: 1030, y: 15 },
targetPosition: Position.Left,
sourcePosition: Position.Right,
},
{
id: '7',
type: 'middleboss',
label: 'Отдел управления качеством данных',
data: ' Начальник Гончаров Церен Викторович',
position: { x: 1268, y: 15 },
targetPosition: Position.Left,
sourcePosition: Position.Right,
},
{
id: '8',
type: 'deps',
label: 'Отдел по сопровождению интернет-сервисов',
data: ' Начальник Лосева Екатерина Владимировна',
position: { x: 1080, y: 500 },
targetPosition: Position.Top,
},
{
id: '9',
type: 'deps',
label: 'Отдел внедрения технологических процессов',
data: ' Начальник Туркова Мария Николаевна',
position: { x: 1340, y: 500 },
targetPosition: Position.Top,
},
{
id: '10',
type: 'deps',
label: 'Отдел контроля технологических процессов',
data: ' Начальник Михайлов Виктор Валентинович',
position: { x: 800, y: 500 },
targetPosition: Position.Top,
},
{
id: '11',
type: 'deps',
label: 'Отдел ведения ведомственной модели данных',
data: ' Начальник Щедрин Владимир Дмитриевич',
position: { x: 540, y: 500 },
targetPosition: Position.Top,
},
{
id: '12',
type: 'deps',
label: 'Отдел развития личного кабинеита налогоплательщика физического лица',
data: 'И.О.начальника Романова Марина Александровна',
position: { x: 0, y: 500 },
targetPosition: Position.Top,
},
{
id: '13',
type: 'deps',
label: 'Отдел обработки обращений граждан',
data: 'Начальник Ванюшкина Наталья Николаевна',
position: { x: 260, y: 500 },
targetPosition: Position.Top,
},
]),
edges: ref([
// { id: 'e1-5', type: 'step', source: '1', target: '5' },
// { id: 'e5-6', type: 'step', source: '5', target: '6' },
// { id: 'e6-7', type: 'step', source: '6', target: '7' },
// { id: 'e1-2', type: 'step', source: '1', target: '2' },
// { id: 'e1-3', type: 'step', source: '1', target: '3' },
//{ id: 'e1-4', type: 'step', source: '1', target: '4' },
// { id: 'e1-4', type: 'step', source: '1', target: '4' },
// { id: 'e1-5', type: 'step', source: '1', target: '5' },
// { id: 'e1-7', type: 'step', source: '1', target: '7' },
// { id: 'e4-9', source: '4', target: '8' },
// { id: 'e4-10', source: '4', target: '9' },
// { id: 'e3-11', source: '3', target: '10' },
// { id: 'e3-12', source: '3', target: '11' },
// { id: 'e2-13', source: '2', target: '12' },
// { id: 'e2-14', source: '2', target: '13' },
])
}
}
}
</script>
<style></style>
@@ -1,34 +0,0 @@
<script setup>
defineProps({
name: {
type: String,
required: true,
},
})
</script>
<template>
<svg v-if="name === 'reset'" width="16" height="16" viewBox="0 0 32 32">
<path d="M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10Z" />
</svg>
<svg v-if="name === 'update'" width="16" height="16" viewBox="0 0 24 24">
<path
d="M14 20v-2h2.6l-3.2-3.2l1.425-1.425L18 16.55V14h2v6Zm-8.6 0L4 18.6L16.6 6H14V4h6v6h-2V7.4Zm3.775-9.425L4 5.4L5.4 4l5.175 5.175Z" />
</svg>
<svg v-if="name === 'sun'" width="16" height="16" viewBox="0 0 24 24">
<path
d="M12 17q-2.075 0-3.537-1.463Q7 14.075 7 12t1.463-3.538Q9.925 7 12 7t3.538 1.462Q17 9.925 17 12q0 2.075-1.462 3.537Q14.075 17 12 17ZM2 13q-.425 0-.712-.288Q1 12.425 1 12t.288-.713Q1.575 11 2 11h2q.425 0 .713.287Q5 11.575 5 12t-.287.712Q4.425 13 4 13Zm18 0q-.425 0-.712-.288Q19 12.425 19 12t.288-.713Q19.575 11 20 11h2q.425 0 .712.287q.288.288.288.713t-.288.712Q22.425 13 22 13Zm-8-8q-.425 0-.712-.288Q11 4.425 11 4V2q0-.425.288-.713Q11.575 1 12 1t.713.287Q13 1.575 13 2v2q0 .425-.287.712Q12.425 5 12 5Zm0 18q-.425 0-.712-.288Q11 22.425 11 22v-2q0-.425.288-.712Q11.575 19 12 19t.713.288Q13 19.575 13 20v2q0 .425-.287.712Q12.425 23 12 23ZM5.65 7.05L4.575 6q-.3-.275-.288-.7q.013-.425.288-.725q.3-.3.725-.3t.7.3L7.05 5.65q.275.3.275.7q0 .4-.275.7q-.275.3-.687.287q-.413-.012-.713-.287ZM18 19.425l-1.05-1.075q-.275-.3-.275-.712q0-.413.275-.688q.275-.3.688-.287q.412.012.712.287L19.425 18q.3.275.288.7q-.013.425-.288.725q-.3.3-.725.3t-.7-.3ZM16.95 7.05q-.3-.275-.287-.688q.012-.412.287-.712L18 4.575q.275-.3.7-.288q.425.013.725.288q.3.3.3.725t-.3.7L18.35 7.05q-.3.275-.7.275q-.4 0-.7-.275ZM4.575 19.425q-.3-.3-.3-.725t.3-.7l1.075-1.05q.3-.275.713-.275q.412 0 .687.275q.3.275.288.688q-.013.412-.288.712L6 19.425q-.275.3-.7.287q-.425-.012-.725-.287Z" />
</svg>
<svg v-if="name === 'moon'" width="16" height="16" viewBox="0 0 24 24">
<path
d="M12 21q-3.75 0-6.375-2.625T3 12q0-3.75 2.625-6.375T12 3q.35 0 .688.025q.337.025.662.075q-1.025.725-1.637 1.887Q11.1 6.15 11.1 7.5q0 2.25 1.575 3.825Q14.25 12.9 16.5 12.9q1.375 0 2.525-.613q1.15-.612 1.875-1.637q.05.325.075.662Q21 11.65 21 12q0 3.75-2.625 6.375T12 21Z" />
</svg>
<svg v-if="name === 'log'" width="16" height="16" viewBox="0 0 24 24">
<path
d="M20 19V7H4v12h16m0-16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16m-7 14v-2h5v2h-5m-3.42-4L5.57 9H8.4l3.3 3.3c.39.39.39 1.03 0 1.42L8.42 17H5.59l3.99-4Z" />
</svg>
</template>
@@ -1,109 +0,0 @@
export const initialNodes = [
{
id: '1',
class: 'up-bosses',
label: '<p>Андрей Владимирович Бударин</p><p>Заместитель руководителя Федеральной Налоговой Службы</p>',
position: { x: 590, y: 0 }
},
{
id: '2',
class: 'up-bosses',
label: '<p>Борис Борисович Толоко</p><p>Руководитель МИ ФНС России по ЦОД №2</p>',
position: { x: 590, y: 100 }
},
{
id: '3',
class: 'bosses',
label: '<p>Андреева Наталья Владимировна</p><p>Заместитель начальника</p>',
position: { x: 0, y: 250 }
},
{
id: '4',
class: 'bosses',
label: '<p>Ахкубеков Мухамат Алиевич</p><p>Заместитель начальника</p>',
position: { x: 220, y: 250 }
},
{
id: '5',
class: 'bosses',
label: '<p>Послухаев Артем Николаевич</p><p>Заместитель начальника</p>',
position: { x: 440, y: 250 }
},
{
id: '6',
class: 'bosses',
label: '<p>Общий отдел</p><p>Золина Татьяна Евгеньевна</p><p>Начальник</p> ',
position: { x: 850, y: 250 }
},
{
id: '7',
class: 'bosses',
label: '<p>Отдел кадров и безопасности</p><p>Фролова Ирина Николаевна</p><p>Начальник</p> ',
position: { x: 1070, y: 250 }
},
{
id: '8',
class: 'bosses',
label: '<p>Отдел управления качеством данных</p><p>Гончаров Церен Викторович</p><p>Начальник</p>',
position: { x: 1290, y: 250 }
},
{
id: '9',
class: 'bosses',
label: '<p>Отдел по сопровождению интернет-сервисов</p><p>Лосева Екатерина Владимировна</p><p>Начальник</p>',
position: { x: 970, y: 600 }
},
{
id: '10',
class: 'bosses',
label: '<p>Отдел внедрения технологических процессов</p><p>Туркова Мария Николаевна</p><p>Начальник</p>',
position: { x: 1170, y: 600 }
},
{
id: '11',
class: 'bosses',
label: '<p>Отдел контроля технологических процессов</p><p>Михайлов Виктор Валентинович</p><p>Начальник</p>',
position: { x: 680, y: 600 }
},
{
id: '12',
class: 'bosses',
label: '<p>Отдел ведения ведомственной модели данных</p><p>Щедрин Владимир Дмитриевич</p><p>Начальник</p>',
position: { x: 480, y: 600 }
},
{
id: '13',
class: 'bosses',
label: '<p>Отдел развития личного кабинеита налогоплательщика физического лица</p><p>Романова Марина Александровна</p><p>И.О.начальника</p>',
position: { x: 0, y: 600 }
},
{
id: '14',
class: 'bosses',
label: '<p>Отдел обработки обращений граждан</p><p>Ванюшкина Наталья Николаевна</p><p>Начальник</p>',
position: { x: 200, y: 600 }
},
]
export const initialEdges = [
{ id: 'e1-2', type: 'step', source: '1', target: '2' },
{ id: 'e2-3', type: 'step', source: '2', target: '3' },
{ id: 'e2-4', type: 'step', source: '2', target: '4' },
{ id: 'e2-5', type: 'step', source: '2', target: '5' },
{ id: 'e2-6', type: 'step', source: '2', target: '6' },
{ id: 'e2-7', type: 'step', source: '2', target: '7' },
{ id: 'e2-8', type: 'step', source: '2', target: '8' },
{ id: 'e5-9', source: '5', target: '9' },
{ id: 'e5-10', source: '5', target: '10' },
{ id: 'e4-11', source: '4', target: '11' },
{ id: 'e4-12', source: '4', target: '12' },
{ id: 'e3-13', source: '3', target: '13' },
{ id: 'e3-14', source: '3', target: '14' },
]
+77 -33
View File
@@ -2,7 +2,8 @@
<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="teal-darken-1" slider-color="teal-lighten-3" :grow="true">
<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>
@@ -10,28 +11,49 @@
<v-col>
<v-window v-model="tab" class="h-100">
<v-window-item value="mainInfo">
<v-row no-gutters class="mt-8">
<v-row no-gutters>
<v-col lg="3">
<v-card class="ml-2 mb-2 mt-1">
<v-card-text class="text-h6 text-center">
<p>Работа МИ ФНС России по ЦОД №2 </p>
<p> координируется заместителем руководителя ФНС России</p>
<p>Будариным Андреем Владимировичем</p>
</v-card-text>
</v-card>
</v-col>
<v-col lg="9">
<v-card class="ml-3 mt-1 mr-1 pa-5">
<v-card-text class="text-h6 text-center">
<p>Межрегиональная инспекция Федеральной налоговой службы</p>
<p>по централизованной обработке данных №2</p>
<p> создана 01.02.2018 года.</p>
</v-card-text>
</v-card>
</v-col>
</v-row>
<v-row no-gutters>
<v-col lg="3">
<v-col>
<v-col class="ml-1 pa-1">
<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 class="ma-3" rounded="0" size="200">
<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="mb-6 text-center">
<v-card-text class="text-center">
<p>{{ bossRank }}</p>
</v-card-text>
</v-card>
</v-col>
<v-col>
<v-col class="ma-1 pa-1">
<v-card>
<v-card-title class="text-h6 text-center text-uppercase">
Штатная численность
@@ -39,16 +61,22 @@
<v-card-subtitle class="text-center">по состоянию на
{{ new Date(getstatesize.date_created).toLocaleDateString("ru-RU") }}
</v-card-subtitle>
<v-card-text class="text-h2 text-center mt-5 mb-5">
{{ getstatesize.statesize }}
<v-card-text class="text-h2 text-center ma-4">
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='getstatesize.statesize'
:duration='2' />
</v-card-text>
<v-divider></v-divider>
<v-card-title class="text-h6 text-center text-uppercase">
Фактическая численность
</v-card-title>
<v-card-subtitle class="text-center">по состоянию на {{ date_now }}</v-card-subtitle>
<v-card-text class="text-h2 text-center mt-5 mb-5">
{{ getfactsize.fact_size }}
<v-card-subtitle class="text-center">по состоянию на
{{ new Date(getfactsize.date_created).toLocaleDateString("ru-RU") }}
</v-card-subtitle>
<v-card-text class="text-h2 text-center ma-4">
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='getfactsize.factsize'
:duration='2' />
</v-card-text>
</v-card>
</v-col>
@@ -56,24 +84,29 @@
</v-col>
<v-col lg="9">
<v-col>
<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" class=" mt-8 mb-8"
lg="10">
<v-banner class="text-h6" :icon="direction.icon_name">
<v-card class="ml-3 mr-1 mt-1">
<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="100">
<v-col class="d-flex align-center justify-center">
<v-avatar class="mt-1 ml-1 pa-0 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-banner>
</v-col>
</v-row>
</v-card>
</v-col>
</v-col>
</v-card>
</v-col>
</v-row>
</v-card>
</v-col>
</v-row>
</v-window-item>
@@ -96,8 +129,10 @@ 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/StructureInspection.vue';
import ContactInfo from '@/components/ContactInfo.vue';
import StructureInspection from '@/components/about_inspection/structure/StructureInspection.vue';
import ContactInfo from '@/components/about_inspection/contacts/ContactInfo.vue';
import { pagecounter } from '@/utils/universal_functions'
export default {
@@ -108,8 +143,8 @@ export default {
setup() {
const userlinks = ref([])
const getfactsize = ref('')
const getstatesize = ref([])
const getfactsize = ref({ 'factsize': 0, 'date_created': new Date() })
const getstatesize = ref({ 'statesize': 0, 'date_created': new Date() })
const directionworks = ref([])
const infouser = () => {
@@ -131,6 +166,9 @@ export default {
})
}
const getInspectionDirections = () => {
axiosApiInstance.get('api/about_inspection/getinspectiondirections/').then(res => {
directionworks.value = res.data
@@ -146,6 +184,7 @@ export default {
getStateSize()
getFactSize()
infouser()
pagecounter()
return {
directionworks,
getstatesize,
@@ -172,4 +211,9 @@ export default {
</script>
<style></style>
<style>
.active-tab {
background-color: #E0F2F1;
color: #004D40;
}
</style>