Заменены иконки в общей информации,, добавлена шапка с основанием и координатором
This commit is contained in:
1 parent
c6d43b0cc3
commit
7b0cb7ed8c
5 files changed
+80
-28
No files matched your search
@@ -3,4 +3,5 @@ from .models import *
|
|||||||
|
|
||||||
|
|
||||||
admin.site.register(StateSize)
|
admin.site.register(StateSize)
|
||||||
|
admin.site.register(FactSize)
|
||||||
admin.site.register(InspectionDirections)
|
admin.site.register(InspectionDirections)
|
||||||
@@ -5,13 +5,22 @@ from django.db import models
|
|||||||
|
|
||||||
class StateSize(models.Model):
|
class StateSize(models.Model):
|
||||||
statesize = models.IntegerField( verbose_name="Штатная численность")
|
statesize = models.IntegerField( verbose_name="Штатная численность")
|
||||||
date_created = models.DateField(auto_now_add=True)
|
date_created = models.DateField(verbose_name="Дата создания")
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = "Штатная численность"
|
verbose_name = "Штатная численность"
|
||||||
verbose_name_plural = "Штатная численность"
|
verbose_name_plural = "Штатная численность"
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.statesize)
|
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):
|
class InspectionDirections(models.Model):
|
||||||
|
|||||||
@@ -8,6 +8,12 @@ class StateSizeSerializer(serializers.ModelSerializer):
|
|||||||
model = StateSize
|
model = StateSize
|
||||||
fields ='__all__'
|
fields ='__all__'
|
||||||
|
|
||||||
|
class FactSizeSerializer(serializers.ModelSerializer):
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
model = FactSize
|
||||||
|
fields ='__all__'
|
||||||
|
|
||||||
|
|
||||||
class InspectionDirectionsSerializer(serializers.ModelSerializer):
|
class InspectionDirectionsSerializer(serializers.ModelSerializer):
|
||||||
|
|
||||||
|
|||||||
@@ -5,13 +5,6 @@ from datetime import date
|
|||||||
from .models import *
|
from .models import *
|
||||||
from .serializers import *
|
from .serializers import *
|
||||||
from rest_framework.response import Response
|
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):
|
class GetStateSize(ListAPIView):
|
||||||
@@ -20,6 +13,12 @@ class GetStateSize(ListAPIView):
|
|||||||
return Response(StateSizeSerializer(state_size).data)
|
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):
|
class GetInspectionDirections(ListAPIView):
|
||||||
queryset = InspectionDirections.objects.all()
|
queryset = InspectionDirections.objects.all()
|
||||||
serializer_class = InspectionDirectionsSerializer
|
serializer_class = InspectionDirectionsSerializer
|
||||||
|
|||||||
@@ -10,28 +10,49 @@
|
|||||||
<v-col>
|
<v-col>
|
||||||
<v-window v-model="tab" class="h-100">
|
<v-window v-model="tab" class="h-100">
|
||||||
<v-window-item value="mainInfo">
|
<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 lg="3">
|
||||||
<v-col>
|
<v-col class="ml-1 pa-1">
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title class="text-h6 text-uppercase text-center"> Начальник
|
<v-card-title class="text-h6 text-uppercase text-center"> Начальник
|
||||||
инспекции</v-card-title>
|
инспекции</v-card-title>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
<div class="w-100 d-flex justify-center">
|
<div class="w-100 d-flex justify-center">
|
||||||
<v-avatar class="ma-3" rounded="0" size="200">
|
<v-avatar rounded="0" size="200">
|
||||||
<v-img :src="checkremote(`${spravURL}${userlinks.login}.jpg`)"></v-img>
|
<v-img :src="checkremote(`${spravURL}${userlinks.login}.jpg`)"></v-img>
|
||||||
</v-avatar>
|
</v-avatar>
|
||||||
</div>
|
</div>
|
||||||
<v-card-title class="text-h6 text-center">{{ userlinks.fio }}</v-card-title>
|
<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>
|
<p>{{ bossRank }}</p>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col>
|
<v-col class="ma-1 pa-1">
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title class="text-h6 text-center text-uppercase">
|
<v-card-title class="text-h6 text-center text-uppercase">
|
||||||
Штатная численность
|
Штатная численность
|
||||||
@@ -39,16 +60,22 @@
|
|||||||
<v-card-subtitle class="text-center">по состоянию на
|
<v-card-subtitle class="text-center">по состоянию на
|
||||||
{{ new Date(getstatesize.date_created).toLocaleDateString("ru-RU") }}
|
{{ new Date(getstatesize.date_created).toLocaleDateString("ru-RU") }}
|
||||||
</v-card-subtitle>
|
</v-card-subtitle>
|
||||||
<v-card-text class="text-h2 text-center mt-5 mb-5">
|
<v-card-text class="text-h2 text-center ma-4">
|
||||||
{{ getstatesize.statesize }}
|
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='getstatesize.statesize'
|
||||||
|
:duration='2' />
|
||||||
|
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
<v-card-title class="text-h6 text-center text-uppercase">
|
<v-card-title class="text-h6 text-center text-uppercase">
|
||||||
Фактическая численность
|
Фактическая численность
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-subtitle class="text-center">по состоянию на {{ date_now }}</v-card-subtitle>
|
<v-card-subtitle class="text-center">по состоянию на
|
||||||
<v-card-text class="text-h2 text-center mt-5 mb-5">
|
{{ new Date(getfactsize.date_created).toLocaleDateString("ru-RU") }}
|
||||||
{{ getfactsize.fact_size }}
|
</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-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -56,24 +83,28 @@
|
|||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col lg="9">
|
<v-col lg="9">
|
||||||
<v-col>
|
<v-card class="ml-3 mr-1 mt-1">
|
||||||
<v-card>
|
|
||||||
<v-card-title class=" text-h6 text-uppercase text-center">
|
<v-card-title class=" text-h6 text-uppercase text-center">
|
||||||
Основные направления деятельности инспекции
|
Основные направления деятельности инспекции
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
<v-row no-gutters class="d-flex justify-center">
|
<v-row no-gutters class="d-flex justify-center">
|
||||||
<v-col v-for="direction in directionworks" :key="direction.id" class=" mt-8 mb-8"
|
<v-col v-for="direction in directionworks" :key="direction.id" lg="12">
|
||||||
lg="10">
|
<v-card class="ma-3 d-flex" :elevation="3" :height="100">
|
||||||
|
<v-col class="d-flex align-center justify-center">
|
||||||
<v-banner class="text-h6" :icon="direction.icon_name">
|
<v-avatar class="mt-1 ml-1 pa-0 elevation-10" color="blue-darken-2">
|
||||||
|
<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 }}
|
{{ direction.direction_title }}
|
||||||
</v-banner>
|
</v-col>
|
||||||
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-col>
|
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
</v-window-item>
|
</v-window-item>
|
||||||
@@ -98,6 +129,8 @@ import { checkremote } from '@/utils/universal_functions'
|
|||||||
import { spravURL, baseURL } from '@/utils/axios-api'
|
import { spravURL, baseURL } from '@/utils/axios-api'
|
||||||
import StructureInspection from '@/components/StructureInspection.vue';
|
import StructureInspection from '@/components/StructureInspection.vue';
|
||||||
import ContactInfo from '@/components/ContactInfo.vue';
|
import ContactInfo from '@/components/ContactInfo.vue';
|
||||||
|
import { pagecounter } from '@/utils/universal_functions'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -108,8 +141,8 @@ export default {
|
|||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
const userlinks = ref([])
|
const userlinks = ref([])
|
||||||
const getfactsize = ref('')
|
const getfactsize = ref({ 'factsize': 0, 'date_created': new Date() })
|
||||||
const getstatesize = ref([])
|
const getstatesize = ref({ 'statesize': 0, 'date_created': new Date() })
|
||||||
const directionworks = ref([])
|
const directionworks = ref([])
|
||||||
|
|
||||||
const infouser = () => {
|
const infouser = () => {
|
||||||
@@ -131,6 +164,9 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const getInspectionDirections = () => {
|
const getInspectionDirections = () => {
|
||||||
axiosApiInstance.get('api/about_inspection/getinspectiondirections/').then(res => {
|
axiosApiInstance.get('api/about_inspection/getinspectiondirections/').then(res => {
|
||||||
directionworks.value = res.data
|
directionworks.value = res.data
|
||||||
@@ -146,6 +182,7 @@ export default {
|
|||||||
getStateSize()
|
getStateSize()
|
||||||
getFactSize()
|
getFactSize()
|
||||||
infouser()
|
infouser()
|
||||||
|
pagecounter()
|
||||||
return {
|
return {
|
||||||
directionworks,
|
directionworks,
|
||||||
getstatesize,
|
getstatesize,
|
||||||
|
|||||||
Reference in new issue
Block a user