Добавлен rankBoss для хранения чина ББ, Добавлена интерактивная оффлайн карта (минимальный вариант)
This commit is contained in:
1 parent
0018ee9d28
commit
c1466b44ff
5 files changed
+61
-7
No files matched your search
+1
-1
@@ -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/
|
||||||
@@ -3,6 +3,7 @@ front/node_modules/
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
.env.local
|
.env.local
|
||||||
.env.*.local
|
.env.*.local
|
||||||
|
|||||||
Generated
+26
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -22,11 +22,9 @@
|
|||||||
<v-img :src="checkremote(`${spravURL}${userlinks.login}.jpg`)"></v-img>
|
<v-img :src="checkremote(`${spravURL}${userlinks.login}.jpg`)"></v-img>
|
||||||
</v-avatar>
|
</v-avatar>
|
||||||
<v-card-title class="text-h6">{{ userlinks.fio }}</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>
|
||||||
@@ -80,7 +78,15 @@
|
|||||||
<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 justify-center mt-10 pt-10">
|
||||||
|
<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-window-item>
|
</v-window-item>
|
||||||
</v-window>
|
</v-window>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -92,22 +98,37 @@ import { ref } from 'vue'
|
|||||||
import { axiosApiInstance } from '@/utils/axios-api'
|
import { axiosApiInstance } from '@/utils/axios-api'
|
||||||
import { checkremote } from '@/utils/universal_functions'
|
import { checkremote } from '@/utils/universal_functions'
|
||||||
import { spravURL } from '@/utils/axios-api'
|
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 {
|
||||||
|
components: {
|
||||||
|
LMap,
|
||||||
|
LTileLayer,
|
||||||
|
LMarker,
|
||||||
|
L
|
||||||
|
},
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
const userlinks = ref([])
|
const userlinks = ref([])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const infouser = () => {
|
const infouser = () => {
|
||||||
axiosApiInstance.get('api/accounts/getuser/?userlogin=9966-00-001').then(res => {
|
axiosApiInstance.get('api/accounts/getuser/?userlogin=9966-00-001').then(res => {
|
||||||
userlinks.value = res.data
|
userlinks.value = res.data
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
infouser()
|
infouser()
|
||||||
return {
|
return {
|
||||||
checkremote,
|
checkremote,
|
||||||
userlinks,
|
userlinks,
|
||||||
tab: ref(null),
|
tab: ref(null),
|
||||||
|
bossRank: "Государственный советник Российской Федерации 2 класса",
|
||||||
tabs_items: [{ "title": "Общая информация", "value": "mainInfo" },
|
tabs_items: [{ "title": "Общая информация", "value": "mainInfo" },
|
||||||
{ "title": "Структура инспекции", "value": "structureInspection" },
|
{ "title": "Структура инспекции", "value": "structureInspection" },
|
||||||
{ "title": "Открытые вакансии", "value": "openVacancies" },
|
{ "title": "Открытые вакансии", "value": "openVacancies" },
|
||||||
@@ -129,4 +150,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style></style>
|
<style>
|
||||||
|
.leaflet-control-attribution {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in new issue
Block a user