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/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", diff --git a/src/front/src/components/ContactInfo.vue b/src/front/src/components/ContactInfo.vue deleted file mode 100644 index cbe6b7c27..000000000 --- a/src/front/src/components/ContactInfo.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - \ No newline at end of file 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/about_inspection/contacts/ContactInfo.vue b/src/front/src/components/about_inspection/contacts/ContactInfo.vue new file mode 100644 index 000000000..2d1b0c59b --- /dev/null +++ b/src/front/src/components/about_inspection/contacts/ContactInfo.vue @@ -0,0 +1,105 @@ + + + \ No newline at end of file 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..536dfc856 --- /dev/null +++ b/src/front/src/components/about_inspection/structure/BossNode.vue @@ -0,0 +1,26 @@ + + + + \ No newline at end of file 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..0860b7e4a --- /dev/null +++ b/src/front/src/components/about_inspection/structure/StructureInspection.vue @@ -0,0 +1,206 @@ + + + + + + + diff --git a/src/front/src/components/structure_com/Icon.vue b/src/front/src/components/structure_com/Icon.vue deleted file mode 100644 index 0c6285646..000000000 --- a/src/front/src/components/structure_com/Icon.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - 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 75b59427e..e3e024460 100644 --- a/src/front/src/views/AboutInspectionPage.vue +++ b/src/front/src/views/AboutInspectionPage.vue @@ -2,7 +2,8 @@ - + {{ tabitem.title }} @@ -10,28 +11,49 @@ - + + + + +

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

+

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

+

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

+
+ +
+
+ + + +

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

+

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

+

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

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

{{ bossRank }}

- + Штатная численность @@ -39,16 +61,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 +84,29 @@ - - - - Основные направления деятельности инспекции - - - - - - + + + Основные направления деятельности инспекции + + + + + + + + + + + {{ direction.direction_title }} - - - - - + + + + + + @@ -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 { - \ No newline at end of file + \ No newline at end of file