Merge branch '22_about_fix' into 22_about_inspection
This commit is contained in:
commit
675e8e3b44
3 files changed
+254
-106
No files matched your search
@@ -1,9 +1,97 @@
|
||||
|
||||
|
||||
<template>
|
||||
<v-row no-gutters>
|
||||
<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" v-for="x in structures" :key="x">
|
||||
<v-card class="flex-column d-flex mr-1">
|
||||
<v-card-text class="pa-0">
|
||||
<v-row no-gutters>
|
||||
<v-col lg="4" class="pa-1 w100">
|
||||
<v-img
|
||||
class="h-100"
|
||||
:src="checkremote(`${spravURL}${x.login}.jpg`)"
|
||||
cover
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="text-center align-self-center text-h6">
|
||||
{{ x.fio }}
|
||||
</v-col>
|
||||
</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"
|
||||
v-for="bosses in structures"
|
||||
:key="bosses"
|
||||
>
|
||||
<div v-for="x in bosses.deps" :key="x">
|
||||
<!-- <v-col class="text-wrap text-center">
|
||||
{{x.name}}
|
||||
</v-col> -->
|
||||
<v-card class="flex-column d-flex mb-1 mr-1">
|
||||
<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"
|
||||
>
|
||||
{{ x.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-col lg="3" v-for="structure in structures" :key="structure">
|
||||
<v-row no-gutters>
|
||||
<v-col lg="4" class="pa-1 w100">
|
||||
<v-img
|
||||
class="h-100"
|
||||
:src="
|
||||
checkremote(`${spravURL}${x.chief_deps.login}.jpg`)
|
||||
"
|
||||
cover
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="text-center align-self-center text-h6 px-3">
|
||||
<!-- <v-card-subtitle>
|
||||
{{x.name}}
|
||||
<my-helper :pretext="x" />
|
||||
</v-card-subtitle> -->
|
||||
{{ x.chief_deps.fio }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</div>
|
||||
</v-col>
|
||||
</template>
|
||||
</structure-inspection-row>
|
||||
</v-col>
|
||||
|
||||
<!-- <v-col lg="3" v-for="structure in structures" :key="structure">
|
||||
|
||||
<v-card class="ma-2">
|
||||
<v-card-item class="bg-teal-lighten-5 text-teal-darken-4 text-h6">
|
||||
@@ -30,43 +118,60 @@
|
||||
</v-card-item>
|
||||
</v-card>
|
||||
|
||||
</v-col>
|
||||
</v-col> -->
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import { spravURL } from '@/utils/axios-api'
|
||||
import { checkremote } from '@/utils/universal_functions'
|
||||
import { axiosApiInstance } from '@/utils/axios-api'
|
||||
|
||||
import { ref } from "vue";
|
||||
import { spravURL } from "@/utils/axios-api";
|
||||
import { checkremote } from "@/utils/universal_functions";
|
||||
import { axiosApiInstance } from "@/utils/axios-api";
|
||||
import StructureInspectionRow from "./StructureInspectionRow.vue";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const structures = ref([])
|
||||
components: { StructureInspectionRow },
|
||||
setup() {
|
||||
const structures = ref([]);
|
||||
|
||||
const getStructure = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getstructure/').then(res => {
|
||||
structures.value = res.data
|
||||
console.log(structures.value[0].deps)
|
||||
})
|
||||
const getStructure = () => {
|
||||
axiosApiInstance.get("api/about_inspection/getstructure/").then((res) => {
|
||||
structures.value = res.data;
|
||||
console.log(structures.value, "-----------");
|
||||
});
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
getStructure()
|
||||
return {
|
||||
structures,
|
||||
checkremote,
|
||||
spravURL
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
getStructure();
|
||||
return {
|
||||
structures,
|
||||
checkremote,
|
||||
spravURL,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.deps-title {
|
||||
height: 90px;
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
.rotate-text {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.page_block {
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/* .container {
|
||||
text-align: center;
|
||||
background: #fdd835;
|
||||
} */
|
||||
|
||||
.minh {
|
||||
min-height: 43px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<v-row no-gutters class="h-100">
|
||||
<v-col class="align-self-center flex-grow-0">
|
||||
<span class="vertext text-button my-1 pb-13">{{ sText }}</span>
|
||||
</v-col>
|
||||
|
||||
<v-col class="w100">
|
||||
<v-row no-gutters class="text-center text-button py-2" v-if="sText=='Руковдство'">
|
||||
<v-col lg="3">Начальник инспекции</v-col>
|
||||
<v-col>Заместители начальника инспекции</v-col>
|
||||
</v-row>
|
||||
<v-row no-gutters class="text-center text-button py-2" v-else>
|
||||
<v-col> Координируемые структурные подразделения</v-col>
|
||||
</v-row>
|
||||
<v-row no-gutters class="h-100">
|
||||
<slot name="cardboss"></slot>
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { spravURL } from "@/utils/axios-api";
|
||||
import { checkremote } from "@/utils/universal_functions";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
sText: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
return {
|
||||
checkremote,
|
||||
spravURL,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.vertext {
|
||||
writing-mode: vertical-rl;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
</style>
|
||||
@@ -7,38 +7,35 @@
|
||||
<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-col>
|
||||
<v-window v-model="tab" class="h-100">
|
||||
<v-window-item value="mainInfo">
|
||||
<v-row>
|
||||
<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 class="ml-1 pa-1">
|
||||
<v-card>
|
||||
<v-card-title class="text-h6 text-uppercase text-center"> Начальник
|
||||
инспекции</v-card-title>
|
||||
@@ -52,67 +49,71 @@
|
||||
<v-card-text class="text-center">
|
||||
<p>{{ bossRank }}</p>
|
||||
</v-card-text>
|
||||
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col class="ma-1 pa-1">
|
||||
<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-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-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-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>
|
||||
|
||||
<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-col>
|
||||
<v-col lg="9">
|
||||
<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-col>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="structureInspection">
|
||||
<v-window-item no-gutters class="gap flex-column h-100" value="structureInspection">
|
||||
<structure-inspection />
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="openVacancies">
|
||||
<v-window-item no-gutters class="gap h-100" value="openVacancies">
|
||||
<h1>Открытые вакансии</h1>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="contactInfo">
|
||||
@@ -145,7 +146,6 @@ export default {
|
||||
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 => {
|
||||
@@ -186,14 +186,12 @@ export default {
|
||||
infouser()
|
||||
pagecounter()
|
||||
return {
|
||||
caCuratorLink,
|
||||
directionworks,
|
||||
getstatesize,
|
||||
getfactsize,
|
||||
spravURL,
|
||||
baseURL,
|
||||
checkremote,
|
||||
caCuratorLink,
|
||||
userlinks,
|
||||
tab: ref(null),
|
||||
date_now: new Date().toLocaleDateString("ru-RU"),
|
||||
@@ -202,6 +200,7 @@ export default {
|
||||
{ "title": "Структура инспекции", "value": "structureInspection" },
|
||||
{ "title": "Открытые вакансии", "value": "openVacancies" },
|
||||
{ "title": "Контактная информация", "value": "contactInfo" }],
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -217,8 +216,4 @@ export default {
|
||||
background-color: #E0F2F1;
|
||||
color: #004D40;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user