Merge pull request '22_about_inspection' (#31) from 22_about_inspection into develop

Reviewed-on: http://sulaco.nodered.ru:5223/COD2/PORTAL_COD2/pulls/31
Reviewed-by: Nukeap <kuroedovo@narod.ru>
This commit is contained in:
Nukeap committed 2024-03-27 06:13:13 +00:00
commit 5791710af3
6 files changed
+145 -88

No files matched your search

+1 -1
View File
@@ -2,5 +2,5 @@ env/
/src/__pycache__/ /src/__pycache__/
/src/*/__pycache__/ /src/*/__pycache__/
/src/*/migrations/ /src/*/migrations/
/src/portal/ /src/front/public/Tiles/
/src/front/node_modules/ /src/front/node_modules/
+1 -1
View File
@@ -2,7 +2,7 @@ env/
/__pycache__/ /__pycache__/
/*/__pycache__/ /*/__pycache__/
/*/migrations/ /*/migrations/
/portal/settings.py portal/settings.py
/front/node_modules/ /front/node_modules/
*.sqlite3 *.sqlite3
/media/ /media/
+1
View File
@@ -3,6 +3,7 @@ front/node_modules/
# local env files # local env files
.env.local .env.local
.env.*.local .env.*.local
+26
View File
@@ -45,9 +45,11 @@
"@storybook/vue3": "^7.4.6", "@storybook/vue3": "^7.4.6",
"@storybook/vue3-vite": "^7.4.6", "@storybook/vue3-vite": "^7.4.6",
"@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue": "^4.0.0",
"@vue-leaflet/vue-leaflet": "^0.10.1",
"eslint": "^8.22.0", "eslint": "^8.22.0",
"eslint-plugin-storybook": "^0.6.14", "eslint-plugin-storybook": "^0.6.14",
"eslint-plugin-vue": "^9.3.0", "eslint-plugin-vue": "^9.3.0",
"leaflet": "^1.9.4",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"vite": "^4.2.0", "vite": "^4.2.0",
@@ -3781,6 +3783,24 @@
"vue": "^3.2.25" "vue": "^3.2.25"
} }
}, },
"node_modules/@vue-leaflet/vue-leaflet": {
"version": "0.10.1",
"resolved": "https://registry.npmjs.org/@vue-leaflet/vue-leaflet/-/vue-leaflet-0.10.1.tgz",
"integrity": "sha512-RNEDk8TbnwrJl8ujdbKgZRFygLCxd0aBcWLQ05q/pGv4+d0jamE3KXQgQBqGAteE1mbQsk3xoNcqqUgaIGfWVg==",
"dev": true,
"dependencies": {
"vue": "^3.2.25"
},
"peerDependencies": {
"@types/leaflet": "^1.5.7",
"leaflet": "^1.6.0"
},
"peerDependenciesMeta": {
"@types/leaflet": {
"optional": true
}
}
},
"node_modules/@vue/compiler-core": { "node_modules/@vue/compiler-core": {
"version": "3.3.4", "version": "3.3.4",
"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.4.tgz", "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.4.tgz",
@@ -10892,6 +10912,12 @@
"node": ">=14.0.0" "node": ">=14.0.0"
} }
}, },
"node_modules/leaflet": {
"version": "1.9.4",
"resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.4.tgz",
"integrity": "sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==",
"dev": true
},
"node_modules/levn": { "node_modules/levn": {
"version": "0.4.1", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+2
View File
@@ -47,9 +47,11 @@
"@storybook/vue3": "^7.4.6", "@storybook/vue3": "^7.4.6",
"@storybook/vue3-vite": "^7.4.6", "@storybook/vue3-vite": "^7.4.6",
"@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue": "^4.0.0",
"@vue-leaflet/vue-leaflet": "^0.10.1",
"eslint": "^8.22.0", "eslint": "^8.22.0",
"eslint-plugin-storybook": "^0.6.14", "eslint-plugin-storybook": "^0.6.14",
"eslint-plugin-vue": "^9.3.0", "eslint-plugin-vue": "^9.3.0",
"leaflet": "^1.9.4",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"vite": "^4.2.0", "vite": "^4.2.0",
+114 -86
View File
@@ -2,114 +2,71 @@
<v-row no-gutters class="flex-column h-100 gap pa-1"> <v-row no-gutters class="flex-column h-100 gap pa-1">
<v-col class="w100 h-100 flex-grow-0"> <v-col class="w100 h-100 flex-grow-0">
<v-card> <v-card>
<v-tabs v-model="tab" bg-color="teal-darken-1" slider-color="teal-darken-2" :grow="true"> <v-tabs v-model="tab" bg-color="teal-darken-1" slider-color="teal-lighten-3" :grow="true">
<v-tab selected-class="isActiveTab" value="mainInfo">Общая информация</v-tab> <v-tab v-for="tabitem in tabs_items" :value="tabitem.value">{{ tabitem.title }}</v-tab>
<v-tab selected-class="isActiveTab" value="structureInspection">Структура инспекции</v-tab>
<v-tab selected-class="isActiveTab" value="openVacancies">Открытые вакансии</v-tab>
<v-tab selected-class="isActiveTab" value="contactInfo">Котактная информация</v-tab>
</v-tabs> </v-tabs>
</v-card> </v-card>
</v-col> </v-col>
<v-col class="w100 h-100"> <v-col>
<v-window v-model="tab" class="h-100"> <v-window v-model="tab" class="h-100">
<v-window-item no-gutters class="gap h-100 bg-white" value="mainInfo"> <v-window-item value="mainInfo">
<v-row no-gutters class="h-50" justify="space-between"> <v-row no-gutters class="mt-8">
<v-col lg="3" class="ma-1">
<v-card class="h-100 bg-white"> <v-col lg="3">
<v-card-title class="text-h6 text-uppercase text-center"> Начальник инспекции</v-card-title> <v-col>
<v-card>
<v-card-title class="text-h6 text-uppercase text-center"> Начальник
инспекции</v-card-title>
<v-divider></v-divider> <v-divider></v-divider>
<v-avatar class="ma-3" rounded="0" size="200"> <v-avatar class="ma-3" rounded="0" size="200">
<v-img src="./about_media/bb_portal.jpg"></v-img> <v-img :src="checkremote(`${spravURL}${userlinks.login}.jpg`)"></v-img>
</v-avatar> </v-avatar>
<v-card-title class="text-h6">Борис Борисович Толоко</v-card-title> <v-card-title class="text-h6">{{ userlinks.fio }}</v-card-title>
<v-card-text>
<p>Государственный советник</p> <v-card-text class="mb-6">
<p>Российской Федерации</p> <p>{{ bossRank }}</p>
<p>2 класса</p>
</v-card-text> </v-card-text>
</v-card> </v-card>
</v-col> </v-col>
<v-col lg="3" class="ma-1">
<v-card class="h-100 w100 bg-white"> <v-col>
<v-card-title class="text-h6 text-uppercase text-center">История инспекции</v-card-title> <v-card>
<v-divider></v-divider>
<v-card-text class="text-h6 text-center h-50 d-flex align-end">
Межрегиональная инспекция ФНС России по централизованной обработке данных №2
начала свою деятельность с 01.02.2018
</v-card-text>
</v-card>
</v-col>
<v-col lg="3" class="ma-1 d-flex flex-column">
<v-card class="h-100 w100 bg-white">
<v-card-title class="text-h6 text-uppercase text-center">Численность</v-card-title>
<v-divider></v-divider>
<v-row class="d-flex justify-center mt-3">
<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>по состоянию на 01.02.2022</v-card-subtitle> <v-card-subtitle class="text-center">по состоянию на {{ date_now }}</v-card-subtitle>
</v-row> <v-card-text class="text-h2 text-center mt-5 mb-5">
<v-row class="d-flex justify-center h-25 align-center"> 80
<v-card-title class="text-h2">80</v-card-title> </v-card-text>
</v-row>
<v-divider></v-divider> <v-divider></v-divider>
<v-row class="d-flex justify-center mt-3">
<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>по состоянию на 01.02.2022</v-card-subtitle> <v-card-subtitle class="text-center">по состоянию на {{ date_now }}</v-card-subtitle>
</v-row> <v-card-text class="text-h2 text-center mt-5 mb-5">
<v-row class="d-flex justify-center h-25 align-center"> 79
<v-card-title class="text-h2">78</v-card-title> </v-card-text>
</v-row>
</v-card> </v-card>
</v-col>
</v-col> </v-col>
</v-row> <v-col lg="9">
<v-row no-gutters class="h-100 d-flex justify-center"> <v-col>
<v-col lg="12" class="ma-1"> <v-card>
<v-card class="h-100 bg-white w-100">
<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="w100 d-flex justify-center "> <v-row no-gutters class="d-flex justify-center">
<v-col lg="10"> <v-col v-for="direction in direction_works" class=" mt-8 mb-8" lg="10">
<v-banner class="text-h6" icon="mdi-laptop"> <v-banner class="text-h6" :icon="direction.icon">
Сопровождение и развитие внешнихи внутренних интерактивных сервисов ФНС России {{ direction.title }}
</v-banner>
</v-col>
<v-col lg="10">
<v-banner class="text-h6" icon="mdi-lan">
Поддержка пользователей информационной системы «Платформа поставки данных» ФНС
России
</v-banner>
</v-col>
<v-col lg="10">
<v-banner class="text-h6" icon="mdi-microscope">
Мониторинг качества данных, содержащихся в автоматизированной информационной
системе ФНС России
</v-banner>
</v-col>
<v-col lg="10">
<v-banner class="text-h6" icon="mdi-magnify">
Мониторинг качества и своевременности разработки/доработки паспортов функций
технологических процессов ФНС России
</v-banner>
</v-col>
<v-col lg="10">
<v-banner class="text-h6" icon="mdi-account-multiple">
Построение и сопровождение процессов обработки обращений граждан
</v-banner> </v-banner>
</v-col> </v-col>
</v-row> </v-row>
</v-card> </v-card>
</v-col>
</v-col> </v-col>
</v-row> </v-row>
@@ -121,7 +78,28 @@
<h1>Открытые вакансии</h1> <h1>Открытые вакансии</h1>
</v-window-item> </v-window-item>
<v-window-item no-gutters class="gap h-100" value="contactInfo"> <v-window-item no-gutters class="gap h-100" value="contactInfo">
<h1>Котактная информация</h1> <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="Tiles//{z}/{x}/{y}.png"></l-tile-layer>
<l-marker :lat-lng="[55.83451, 37.40848]"> </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>
</v-window-item> </v-window-item>
</v-window> </v-window>
</v-col> </v-col>
@@ -129,17 +107,67 @@
</template> </template>
<script> <script>
// скрипт для работы переключателя табов import { ref } from 'vue'
import { axiosApiInstance } from '@/utils/axios-api'
import { checkremote } from '@/utils/universal_functions'
import { spravURL } from '@/utils/axios-api'
import "leaflet/dist/leaflet.css";
import { LMap, LTileLayer, LMarker } from "@vue-leaflet/vue-leaflet";
import L from 'leaflet'
export default { export default {
data: () => ({ components: {
tab: null, LMap,
}), LTileLayer,
LMarker,
L
},
setup() {
const userlinks = ref([])
const infouser = () => {
axiosApiInstance.get('api/accounts/getuser/?userlogin=9966-00-001').then(res => {
userlinks.value = res.data
})
}
infouser()
return {
checkremote,
userlinks,
tab: ref(null),
date_now: new Date().toLocaleDateString("ru-RU"),
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/"
},
bossRank: "Государственный советник Российской Федерации 2 класса",
tabs_items: [{ "title": "Общая информация", "value": "mainInfo" },
{ "title": "Структура инспекции", "value": "structureInspection" },
{ "title": "Открытые вакансии", "value": "openVacancies" },
{ "title": "Контактная информация", "value": "contactInfo" }],
direction_works: [
{ "icon": "mdi-laptop", "title": "Сопровождение и развитие внешнихи внутренних интерактивных сервисов ФНС России" },
{ "icon": "mdi-lan", "title": "Поддержка пользователей информационной системы «Платформа поставки данных» ФНС России" },
{ "icon": "mdi-microscope", "title": "Мониторинг качества данных, содержащихся в автоматизированной информационной системе ФНС России" },
{ "icon": "mdi-magnify", "title": " Мониторинг качества и своевременности разработки/доработки паспортов функций технологических процессов ФНС России" },
{ "icon": "mdi-account-multiple", "title": "Построение и сопровождение процессов обработки обращений граждан" },
],
}
}
} }
</script> </script>
<style> <style>
.isActiveTab { .leaflet-control-attribution {
background-color: #68c3ff70; display: none;
} }
</style> </style>