Добавлен rankBoss для хранения чина ББ, Добавлена интерактивная оффлайн карта (минимальный вариант)
This commit is contained in:
1 parent
0018ee9d28
commit
c1466b44ff
5 files changed
+61
-7
No files matched your search
@@ -3,6 +3,7 @@ front/node_modules/
|
||||
|
||||
|
||||
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
Generated
+26
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -22,11 +22,9 @@
|
||||
<v-img :src="checkremote(`${spravURL}${userlinks.login}.jpg`)"></v-img>
|
||||
</v-avatar>
|
||||
<v-card-title class="text-h6">{{ userlinks.fio }}</v-card-title>
|
||||
<v-card-text>
|
||||
|
||||
<p>Государственный советник</p>
|
||||
<p>Российской Федерации</p>
|
||||
<p>2 класса</p>
|
||||
<v-card-text class="mb-6">
|
||||
<p>{{ bossRank }}</p>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
@@ -80,7 +78,15 @@
|
||||
<h1>Открытые вакансии</h1>
|
||||
</v-window-item>
|
||||
<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>
|
||||
</v-col>
|
||||
@@ -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 {
|
||||
</script>
|
||||
|
||||
|
||||
<style></style>
|
||||
<style>
|
||||
.leaflet-control-attribution {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user