From c1466b44ffaaa91e7a46168ce7c77d7fee5a4e0e Mon Sep 17 00:00:00 2001 From: Andrei Filippov Date: Tue, 26 Mar 2024 15:03:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20rankBoss=20=D0=B4=D0=BB=D1=8F=20=D1=85=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=87=D0=B8=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=91=D0=91,=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D0=B0=D0=BA=D1=82?= =?UTF-8?q?=D0=B8=D0=B2=D0=BD=D0=B0=D1=8F=20=D0=BE=D1=84=D1=84=D0=BB=D0=B0?= =?UTF-8?q?=D0=B9=D0=BD=20=D0=BA=D0=B0=D1=80=D1=82=D0=B0=20(=D0=BC=D0=B8?= =?UTF-8?q?=D0=BD=D0=B8=D0=BC=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=B2?= =?UTF-8?q?=D0=B0=D1=80=D0=B8=D0=B0=D0=BD=D1=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- src/front/.gitignore | 1 + src/front/package-lock.json | 26 +++++++++++++++ src/front/package.json | 2 ++ src/front/src/views/AboutInspectionPage.vue | 37 +++++++++++++++++---- 5 files changed, 61 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index a85f0cd1e..88cb8ad16 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,5 @@ env/ /src/__pycache__/ /src/*/__pycache__/ /src/*/migrations/ -/src/portal/ +/src/front/public/Tiles/ /src/front/node_modules/ \ No newline at end of file diff --git a/src/front/.gitignore b/src/front/.gitignore index e2cbf3225..769b72f3f 100644 --- a/src/front/.gitignore +++ b/src/front/.gitignore @@ -3,6 +3,7 @@ front/node_modules/ + # local env files .env.local .env.*.local diff --git a/src/front/package-lock.json b/src/front/package-lock.json index 64da56fc9..0d27d0467 100644 --- a/src/front/package-lock.json +++ b/src/front/package-lock.json @@ -45,9 +45,11 @@ "@storybook/vue3": "^7.4.6", "@storybook/vue3-vite": "^7.4.6", "@vitejs/plugin-vue": "^4.0.0", + "@vue-leaflet/vue-leaflet": "^0.10.1", "eslint": "^8.22.0", "eslint-plugin-storybook": "^0.6.14", "eslint-plugin-vue": "^9.3.0", + "leaflet": "^1.9.4", "react": "^18.2.0", "react-dom": "^18.2.0", "vite": "^4.2.0", @@ -3781,6 +3783,24 @@ "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": { "version": "3.3.4", "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.4.tgz", @@ -10892,6 +10912,12 @@ "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": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", diff --git a/src/front/package.json b/src/front/package.json index 13e9ea1dc..babd21641 100644 --- a/src/front/package.json +++ b/src/front/package.json @@ -47,9 +47,11 @@ "@storybook/vue3": "^7.4.6", "@storybook/vue3-vite": "^7.4.6", "@vitejs/plugin-vue": "^4.0.0", + "@vue-leaflet/vue-leaflet": "^0.10.1", "eslint": "^8.22.0", "eslint-plugin-storybook": "^0.6.14", "eslint-plugin-vue": "^9.3.0", + "leaflet": "^1.9.4", "react": "^18.2.0", "react-dom": "^18.2.0", "vite": "^4.2.0", diff --git a/src/front/src/views/AboutInspectionPage.vue b/src/front/src/views/AboutInspectionPage.vue index 79d8cc8f6..be3dcd007 100644 --- a/src/front/src/views/AboutInspectionPage.vue +++ b/src/front/src/views/AboutInspectionPage.vue @@ -22,11 +22,9 @@ {{ userlinks.fio }} - -

Государственный советник

-

Российской Федерации

-

2 класса

+ +

{{ bossRank }}

@@ -80,7 +78,15 @@

Открытые вакансии

-

Контактная информация

+ +
+ + + + + +
+
@@ -92,22 +98,37 @@ 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 { + components: { + 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), + bossRank: "Государственный советник Российской Федерации 2 класса", tabs_items: [{ "title": "Общая информация", "value": "mainInfo" }, { "title": "Структура инспекции", "value": "structureInspection" }, { "title": "Открытые вакансии", "value": "openVacancies" }, @@ -129,4 +150,8 @@ export default { - \ No newline at end of file + \ No newline at end of file