Аватарки
This commit is contained in:
1 parent
9a19381538
commit
70ae93557b
6 files changed
+16
-14
No files matched your search
Binary file not shown.
@@ -13,7 +13,7 @@
|
|||||||
<v-img
|
<v-img
|
||||||
class="h-100"
|
class="h-100"
|
||||||
cover
|
cover
|
||||||
:src="accountStore.user.photo"
|
:src="checkremote( `${spravURL}${userlinks.login}.jpg`)"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="pa-0">
|
<v-col class="pa-0">
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
import { clearAxios } from '@/utils/axios-api'
|
import { clearAxios } from '@/utils/axios-api'
|
||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import {useAccountStore} from '@/store/AccountStore'
|
import {useAccountStore} from '@/store/AccountStore'
|
||||||
|
import {checkremote} from '@/utils/universal_functions'
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
@@ -135,7 +135,8 @@ export default {
|
|||||||
userlinks,
|
userlinks,
|
||||||
accountStore,
|
accountStore,
|
||||||
basicInformation,
|
basicInformation,
|
||||||
subInformation
|
subInformation,
|
||||||
|
checkremote
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
nav
|
nav
|
||||||
@click="whatuser(x)">
|
@click="whatuser(x)">
|
||||||
|
|
||||||
|
|
||||||
<v-dialog
|
<v-dialog
|
||||||
v-model="menuGetUserDialog"
|
v-model="menuGetUserDialog"
|
||||||
persistent
|
persistent
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ const routes = [
|
|||||||
component: () => import('@/views/nested_view/o_OKiB.vue'),
|
component: () => import('@/views/nested_view/o_OKiB.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"Отдел кадров и безопасности",
|
title:"Отдел кадров и безопасности",
|
||||||
ico: "mdi-arrow-top-right"
|
ico: "mdi-comment-account-outline"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -31,7 +31,7 @@ const routes = [
|
|||||||
component: () => import('@/views/ProvidingActivitiesPage.vue'),
|
component: () => import('@/views/ProvidingActivitiesPage.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"Обеспечивающая деятельность",
|
title:"Обеспечивающая деятельность",
|
||||||
ico: "mdi-arrow-top-right"
|
ico: "mdi-bulletin-board"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -40,7 +40,7 @@ const routes = [
|
|||||||
component: () => import('@/views/FAQPage.vue'),
|
component: () => import('@/views/FAQPage.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"Часто задаваемые вопросы",
|
title:"Часто задаваемые вопросы",
|
||||||
ico: "mdi-arrow-top-right"
|
ico: "mdi-comment-question-outline"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -49,7 +49,7 @@ const routes = [
|
|||||||
component: () => import('@/views/FeedbackPage.vue'),
|
component: () => import('@/views/FeedbackPage.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"Обратная связь",
|
title:"Обратная связь",
|
||||||
ico: "mdi-arrow-top-right"
|
ico: "mdi-thumb-up-outline"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -58,7 +58,7 @@ const routes = [
|
|||||||
component: () => import('@/views/LaborProtection.vue'),
|
component: () => import('@/views/LaborProtection.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"Безопасность",
|
title:"Безопасность",
|
||||||
ico: "mdi-arrow-top-right"
|
ico: "mdi-pharmacy"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -67,7 +67,7 @@ const routes = [
|
|||||||
component: () => import('@/views/SecurityPage.vue'),
|
component: () => import('@/views/SecurityPage.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"Охрана труда",
|
title:"Охрана труда",
|
||||||
ico: "mdi-arrow-top-right"
|
ico: "mdi-ticket"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -76,7 +76,7 @@ const routes = [
|
|||||||
component: () => import('@/views/AboutInspectionPage.vue'),
|
component: () => import('@/views/AboutInspectionPage.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"Об инспекции",
|
title:"Об инспекции",
|
||||||
ico: "mdi-arrow-top-right"
|
ico: "mdi-city"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -85,7 +85,7 @@ const routes = [
|
|||||||
component: () => import('@/views/AboutPortalPage.vue'),
|
component: () => import('@/views/AboutPortalPage.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"О портале",
|
title:"О портале",
|
||||||
ico: "mdi-arrow-top-right"
|
ico: "mdi-information-variant"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -94,7 +94,7 @@ const routes = [
|
|||||||
component: () => import('@/views/NewsPage.vue'),
|
component: () => import('@/views/NewsPage.vue'),
|
||||||
meta:{
|
meta:{
|
||||||
title:"Лента новостей",
|
title:"Лента новостей",
|
||||||
ico: "mdi-arrow-top-right"
|
ico: "mdi-newspaper"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
<v-col
|
<v-col
|
||||||
|
|
||||||
|
|
||||||
class="pa-1 "
|
class="pa-1 text-center"
|
||||||
>
|
>
|
||||||
<v-btn-toggle
|
<v-btn-toggle
|
||||||
v-model="toggle"
|
v-model="toggle"
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class SelectedLinksAPIView(ListAPIView):
|
|||||||
def get(self, request):
|
def get(self, request):
|
||||||
user = User.objects.get(username=self.request.user)
|
user = User.objects.get(username=self.request.user)
|
||||||
res = CountVisitor.objects.values('page','fullPath','ico').filter(user_id=user).annotate(Sum('count')).exclude(fullPath='/')
|
res = CountVisitor.objects.values('page','fullPath','ico').filter(user_id=user).annotate(Sum('count')).exclude(fullPath='/')
|
||||||
sort = res.order_by('-count__sum')[:6]
|
sort = res.order_by('-count__sum')[:4]
|
||||||
|
|
||||||
|
|
||||||
return Response(sort)
|
return Response(sort)
|
||||||
|
|||||||
Reference in new issue
Block a user