From 7b0cb7ed8cf0c1d702754c0ab92d4c275c7b3fc2 Mon Sep 17 00:00:00 2001 From: Andrei Filippov Date: Thu, 4 Apr 2024 17:21:05 +0300 Subject: [PATCH 1/4] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=8B=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D0=B8=20=D0=B2=20=D0=BE?= =?UTF-8?q?=D0=B1=D1=89=D0=B5=D0=B9=20=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8,,=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D1=88=D0=B0=D0=BF=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=81=20=D0=BE=D1=81=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=D0=BC=20=D0=B8=20=D0=BA=D0=BE=D0=BE=D1=80=D0=B4=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0=D1=82=D0=BE=D1=80=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/back/about_inspection/admin.py | 1 + src/back/about_inspection/models.py | 11 ++- src/back/about_inspection/serializers.py | 6 ++ src/back/about_inspection/views.py | 13 ++- src/front/src/views/AboutInspectionPage.vue | 95 ++++++++++++++------- 5 files changed, 89 insertions(+), 37 deletions(-) diff --git a/src/back/about_inspection/admin.py b/src/back/about_inspection/admin.py index 44eb3b1e4..3686415fb 100644 --- a/src/back/about_inspection/admin.py +++ b/src/back/about_inspection/admin.py @@ -3,4 +3,5 @@ from .models import * admin.site.register(StateSize) +admin.site.register(FactSize) admin.site.register(InspectionDirections) diff --git a/src/back/about_inspection/models.py b/src/back/about_inspection/models.py index e9c43cd69..35aad52cf 100644 --- a/src/back/about_inspection/models.py +++ b/src/back/about_inspection/models.py @@ -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): diff --git a/src/back/about_inspection/serializers.py b/src/back/about_inspection/serializers.py index 150cccfed..f97cd9d35 100644 --- a/src/back/about_inspection/serializers.py +++ b/src/back/about_inspection/serializers.py @@ -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): diff --git a/src/back/about_inspection/views.py b/src/back/about_inspection/views.py index 16221b97b..6c139da2f 100644 --- a/src/back/about_inspection/views.py +++ b/src/back/about_inspection/views.py @@ -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 diff --git a/src/front/src/views/AboutInspectionPage.vue b/src/front/src/views/AboutInspectionPage.vue index 75b59427e..5a452de4a 100644 --- a/src/front/src/views/AboutInspectionPage.vue +++ b/src/front/src/views/AboutInspectionPage.vue @@ -10,28 +10,49 @@ - + + + + +

Работа МИ ФНС России по ЦОД №2

+

координируется заместителем руководителя ФНС России

+

Будариным Андреем Владимировичем

+
+ +
+
+ + + +

Межрегиональная инспекция Федеральной налоговой службы

+

по централизованной обработке данных №2

+

создана 01.02.2018 года.

+
+
+
+
+ - + Начальник инспекции -
- +
+
{{ userlinks.fio }} - +

{{ bossRank }}

- + Штатная численность @@ -39,16 +60,22 @@ по состоянию на {{ new Date(getstatesize.date_created).toLocaleDateString("ru-RU") }} - - {{ getstatesize.statesize }} + + + Фактическая численность - по состоянию на {{ date_now }} - - {{ getfactsize.fact_size }} + по состоянию на + {{ new Date(getfactsize.date_created).toLocaleDateString("ru-RU") }} + + + + @@ -56,24 +83,28 @@ - - - - Основные направления деятельности инспекции - - - - - - + + + Основные направления деятельности инспекции + + + + + + + + + + + {{ direction.direction_title }} - - - - - + + + + + + @@ -98,6 +129,8 @@ 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 { pagecounter } from '@/utils/universal_functions' + export default { @@ -108,8 +141,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 +164,9 @@ export default { }) } + + + const getInspectionDirections = () => { axiosApiInstance.get('api/about_inspection/getinspectiondirections/').then(res => { directionworks.value = res.data @@ -146,6 +182,7 @@ export default { getStateSize() getFactSize() infouser() + pagecounter() return { directionworks, getstatesize, From 6c9b5a103e446f502fd9a64a4b0bf597a42a4bb3 Mon Sep 17 00:00:00 2001 From: Andrei Filippov Date: Mon, 8 Apr 2024 17:29:19 +0300 Subject: [PATCH 2/4] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82=D1=83?= =?UTF-8?q?=D1=80=D0=B0=20=D0=B8=D0=BD=D1=81=D0=BF=D0=B5=D0=BA=D1=86=D0=B8?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/StructureInspection.vue | 108 ---------- .../contacts}/ContactInfo.vue | 0 .../about_inspection/structure/BossNode.vue | 25 +++ .../structure}/Icon.vue | 0 .../structure/StructureInspection.vue | 190 ++++++++++++++++++ .../structure_com/initial-elements.js | 109 ---------- src/front/src/views/AboutInspectionPage.vue | 7 +- 7 files changed, 219 insertions(+), 220 deletions(-) delete mode 100644 src/front/src/components/StructureInspection.vue rename src/front/src/components/{ => about_inspection/contacts}/ContactInfo.vue (100%) create mode 100644 src/front/src/components/about_inspection/structure/BossNode.vue rename src/front/src/components/{structure_com => about_inspection/structure}/Icon.vue (100%) create mode 100644 src/front/src/components/about_inspection/structure/StructureInspection.vue delete mode 100644 src/front/src/components/structure_com/initial-elements.js diff --git a/src/front/src/components/StructureInspection.vue b/src/front/src/components/StructureInspection.vue deleted file mode 100644 index 33c5bfe3a..000000000 --- a/src/front/src/components/StructureInspection.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - - - diff --git a/src/front/src/components/ContactInfo.vue b/src/front/src/components/about_inspection/contacts/ContactInfo.vue similarity index 100% rename from src/front/src/components/ContactInfo.vue rename to src/front/src/components/about_inspection/contacts/ContactInfo.vue diff --git a/src/front/src/components/about_inspection/structure/BossNode.vue b/src/front/src/components/about_inspection/structure/BossNode.vue new file mode 100644 index 000000000..9773c47da --- /dev/null +++ b/src/front/src/components/about_inspection/structure/BossNode.vue @@ -0,0 +1,25 @@ + + + + \ No newline at end of file diff --git a/src/front/src/components/structure_com/Icon.vue b/src/front/src/components/about_inspection/structure/Icon.vue similarity index 100% rename from src/front/src/components/structure_com/Icon.vue rename to src/front/src/components/about_inspection/structure/Icon.vue diff --git a/src/front/src/components/about_inspection/structure/StructureInspection.vue b/src/front/src/components/about_inspection/structure/StructureInspection.vue new file mode 100644 index 000000000..ff39b786c --- /dev/null +++ b/src/front/src/components/about_inspection/structure/StructureInspection.vue @@ -0,0 +1,190 @@ + + + + + + + diff --git a/src/front/src/components/structure_com/initial-elements.js b/src/front/src/components/structure_com/initial-elements.js deleted file mode 100644 index a10bd8ba9..000000000 --- a/src/front/src/components/structure_com/initial-elements.js +++ /dev/null @@ -1,109 +0,0 @@ - - -export const initialNodes = [ - { - id: '1', - class: 'up-bosses', - label: '

Андрей Владимирович Бударин

Заместитель руководителя Федеральной Налоговой Службы

', - position: { x: 590, y: 0 } - }, - - { - id: '2', - class: 'up-bosses', - label: '

Борис Борисович Толоко

Руководитель МИ ФНС России по ЦОД №2

', - position: { x: 590, y: 100 } - }, - { - id: '3', - class: 'bosses', - label: '

Андреева Наталья Владимировна

Заместитель начальника

', - position: { x: 0, y: 250 } - }, - { - id: '4', - class: 'bosses', - label: '

Ахкубеков Мухамат Алиевич

Заместитель начальника

', - position: { x: 220, y: 250 } - }, - { - id: '5', - class: 'bosses', - label: '

Послухаев Артем Николаевич

Заместитель начальника

', - position: { x: 440, y: 250 } - }, - { - id: '6', - class: 'bosses', - label: '

Общий отдел

Золина Татьяна Евгеньевна

Начальник

', - position: { x: 850, y: 250 } - }, - { - id: '7', - class: 'bosses', - label: '

Отдел кадров и безопасности

Фролова Ирина Николаевна

Начальник

', - position: { x: 1070, y: 250 } - }, - { - id: '8', - class: 'bosses', - label: '

Отдел управления качеством данных

Гончаров Церен Викторович

Начальник

', - position: { x: 1290, y: 250 } - }, - { - id: '9', - class: 'bosses', - label: '

Отдел по сопровождению интернет-сервисов

Лосева Екатерина Владимировна

Начальник

', - position: { x: 970, y: 600 } - }, - - { - id: '10', - class: 'bosses', - label: '

Отдел внедрения технологических процессов

Туркова Мария Николаевна

Начальник

', - position: { x: 1170, y: 600 } - }, - { - id: '11', - class: 'bosses', - label: '

Отдел контроля технологических процессов

Михайлов Виктор Валентинович

Начальник

', - position: { x: 680, y: 600 } - }, - { - id: '12', - class: 'bosses', - label: '

Отдел ведения ведомственной модели данных

Щедрин Владимир Дмитриевич

Начальник

', - position: { x: 480, y: 600 } - }, - { - id: '13', - class: 'bosses', - label: '

Отдел развития личного кабинеита налогоплательщика физического лица

Романова Марина Александровна

И.О.начальника

', - position: { x: 0, y: 600 } - }, - { - id: '14', - class: 'bosses', - label: '

Отдел обработки обращений граждан

Ванюшкина Наталья Николаевна

Начальник

', - 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' }, - -] \ No newline at end of file diff --git a/src/front/src/views/AboutInspectionPage.vue b/src/front/src/views/AboutInspectionPage.vue index 5a452de4a..5187ccc9d 100644 --- a/src/front/src/views/AboutInspectionPage.vue +++ b/src/front/src/views/AboutInspectionPage.vue @@ -92,7 +92,8 @@ - + @@ -127,8 +128,8 @@ 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' From fd9acb448e4e54eeaac59b13756c59c1cc21af54 Mon Sep 17 00:00:00 2001 From: Andrei Filippov Date: Tue, 9 Apr 2024 15:44:59 +0300 Subject: [PATCH 3/4] =?UTF-8?q?=D0=92=D1=81=D0=B5=20=D0=BE=D0=B1=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=B8=D0=BB=20=D0=BF=D0=BE=20=D0=B7=D0=B0=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8E=20=D0=90=D1=80=D1=82=D0=B5=D0=BC=D0=B0?= =?UTF-8?q?=20=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B5=D0=B2=D0=B8=D1=87?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../about_inspection/contacts/ContactInfo.vue | 80 ++++++++++++------- .../about_inspection/structure/BossNode.vue | 7 +- .../about_inspection/structure/Icon.vue | 34 -------- .../structure/StructureInspection.vue | 54 ++++++++----- src/front/src/views/AboutInspectionPage.vue | 10 ++- 5 files changed, 100 insertions(+), 85 deletions(-) delete mode 100644 src/front/src/components/about_inspection/structure/Icon.vue diff --git a/src/front/src/components/about_inspection/contacts/ContactInfo.vue b/src/front/src/components/about_inspection/contacts/ContactInfo.vue index cbe6b7c27..2d1b0c59b 100644 --- a/src/front/src/components/about_inspection/contacts/ContactInfo.vue +++ b/src/front/src/components/about_inspection/contacts/ContactInfo.vue @@ -1,32 +1,54 @@ - - diff --git a/src/front/src/components/about_inspection/structure/StructureInspection.vue b/src/front/src/components/about_inspection/structure/StructureInspection.vue index ff39b786c..0860b7e4a 100644 --- a/src/front/src/components/about_inspection/structure/StructureInspection.vue +++ b/src/front/src/components/about_inspection/structure/StructureInspection.vue @@ -16,7 +16,6 @@ - @@ -29,7 +28,6 @@ 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 Icon from './Icon.vue' import BossNode from './BossNode.vue' @@ -41,7 +39,6 @@ export default { ControlButton, Controls, Background, - Icon, BossNode }, @@ -68,59 +65,72 @@ export default { nodes: ref([ { id: '1', + type: 'boss', label: 'Руководитель МИ ФНС России по ЦОД №2', data: 'Борис Борисович Толоко ', - type: 'boss', - position: { x: 280, y: 50 } + position: { x: 180, y: 50 }, + sourcePosition: Position.Right, + targetPosition: Position.Bottom, + }, { id: '2', type: 'middleboss', label: 'Заместитель начальника', data: 'Андреева Наталья Владимировна', - position: { x: 140, y: 280 } + position: { x: 140, y: 280 }, + targetPosition: Position.Top, }, { id: '3', type: 'middleboss', label: 'Заместитель начальника', data: 'Ахкубеков Мухамат Алиевич', - position: { x: 680, y: 280 } + position: { x: 680, y: 280 }, + sourcePosition: Position.Top, }, { id: '4', type: 'middleboss', label: 'Заместитель начальника', data: 'Послухаев Артем Николаевич', - position: { x: 1220, y: 280 } + position: { x: 1220, y: 280 }, + targetPosition: Position.Top, }, { id: '5', type: 'middleboss', label: 'Общий отдел', data: ' Начальник Золина Татьяна Евгеньевна ', - position: { x: 792, y: 20 } + position: { x: 792, y: 15 }, + targetPosition: Position.Left, + sourcePosition: Position.Right, }, { id: '6', type: 'middleboss', label: 'Отдел кадров и безопасности', data: 'Начальник Фролова Ирина Николаевна', - position: { x: 1030, y: 20 } + position: { x: 1030, y: 15 }, + targetPosition: Position.Left, + sourcePosition: Position.Right, }, { id: '7', type: 'middleboss', label: 'Отдел управления качеством данных', data: ' Начальник Гончаров Церен Викторович', - position: { x: 1268, y: 20 } + position: { x: 1268, y: 15 }, + targetPosition: Position.Left, + sourcePosition: Position.Right, }, { id: '8', type: 'deps', label: 'Отдел по сопровождению интернет-сервисов', data: ' Начальник Лосева Екатерина Владимировна', - position: { x: 1080, y: 500 } + position: { x: 1080, y: 500 }, + targetPosition: Position.Top, }, { @@ -128,46 +138,52 @@ export default { type: 'deps', label: 'Отдел внедрения технологических процессов', data: ' Начальник Туркова Мария Николаевна', - position: { x: 1340, y: 500 } + position: { x: 1340, y: 500 }, + targetPosition: Position.Top, }, { id: '10', type: 'deps', label: 'Отдел контроля технологических процессов', data: ' Начальник Михайлов Виктор Валентинович', - position: { x: 800, y: 500 } + position: { x: 800, y: 500 }, + targetPosition: Position.Top, }, { id: '11', type: 'deps', label: 'Отдел ведения ведомственной модели данных', data: ' Начальник Щедрин Владимир Дмитриевич', - position: { x: 540, y: 500 } + position: { x: 540, y: 500 }, + targetPosition: Position.Top, }, { id: '12', type: 'deps', label: 'Отдел развития личного кабинеита налогоплательщика физического лица', data: 'И.О.начальника Романова Марина Александровна', - position: { x: 0, y: 500 } + position: { x: 0, y: 500 }, + targetPosition: Position.Top, }, { id: '13', type: 'deps', label: 'Отдел обработки обращений граждан', data: 'Начальник Ванюшкина Наталья Николаевна', - position: { x: 260, y: 500 } + position: { x: 260, y: 500 }, + targetPosition: Position.Top, }, ]), edges: ref([ - // { id: 'e1-6', type: 'step', source: '1', target: '6' }, - // { id: 'e1-7', type: 'step', source: '1', target: '7' }, // { 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' }, diff --git a/src/front/src/views/AboutInspectionPage.vue b/src/front/src/views/AboutInspectionPage.vue index 5187ccc9d..e3e024460 100644 --- a/src/front/src/views/AboutInspectionPage.vue +++ b/src/front/src/views/AboutInspectionPage.vue @@ -2,7 +2,8 @@ - + {{ tabitem.title }} @@ -210,4 +211,9 @@ export default { - \ No newline at end of file + \ No newline at end of file From fd22d06c58acd22781ff9cb784ac5359ecffd20c Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Wed, 10 Apr 2024 08:18:00 +0300 Subject: [PATCH 4/4] "version": "0.0.60" --- src/front/package-lock.json | 4 ++-- src/front/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/front/package-lock.json b/src/front/package-lock.json index 906afa695..406da5137 100644 --- a/src/front/package-lock.json +++ b/src/front/package-lock.json @@ -1,12 +1,12 @@ { "name": "front", - "version": "0.0.59", + "version": "0.0.60", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "front", - "version": "0.0.59", + "version": "0.0.60", "dependencies": { "-": "^0.0.1", "@mdi/font": "7.0.96", diff --git a/src/front/package.json b/src/front/package.json index d0466ae73..c1500ab68 100644 --- a/src/front/package.json +++ b/src/front/package.json @@ -1,6 +1,6 @@ { "name": "front", - "version": "0.0.59", + "version": "0.0.60", "scripts": { "dev": "vite", "build": "vite build",