Аватарки

This commit is contained in:
iriska-gri committed 2023-11-03 13:05:12 +03:00
1 parent 9a19381538
commit 70ae93557b
6 files changed
+16 -14

No files matched your search

BIN
View File
Binary file not shown.
+4 -3
View File
@@ -13,7 +13,7 @@
<v-img
class="h-100"
cover
:src="accountStore.user.photo"
:src="checkremote( `${spravURL}${userlinks.login}.jpg`)"
/>
</v-col>
<v-col class="pa-0">
@@ -81,7 +81,7 @@
import { clearAxios } from '@/utils/axios-api'
import { ref, onMounted } from 'vue'
import {useAccountStore} from '@/store/AccountStore'
import {checkremote} from '@/utils/universal_functions'
export default {
props: {
@@ -135,7 +135,8 @@ export default {
userlinks,
accountStore,
basicInformation,
subInformation
subInformation,
checkremote
}
}
}
+1
View File
@@ -7,6 +7,7 @@
title="x"
nav
@click="whatuser(x)">
<v-dialog
v-model="menuGetUserDialog"
+9 -9
View File
@@ -22,7 +22,7 @@ const routes = [
component: () => import('@/views/nested_view/o_OKiB.vue'),
meta:{
title:"Отдел кадров и безопасности",
ico: "mdi-arrow-top-right"
ico: "mdi-comment-account-outline"
}
},
{
@@ -31,7 +31,7 @@ const routes = [
component: () => import('@/views/ProvidingActivitiesPage.vue'),
meta:{
title:"Обеспечивающая деятельность",
ico: "mdi-arrow-top-right"
ico: "mdi-bulletin-board"
}
},
{
@@ -40,7 +40,7 @@ const routes = [
component: () => import('@/views/FAQPage.vue'),
meta:{
title:"Часто задаваемые вопросы",
ico: "mdi-arrow-top-right"
ico: "mdi-comment-question-outline"
}
},
{
@@ -49,7 +49,7 @@ const routes = [
component: () => import('@/views/FeedbackPage.vue'),
meta:{
title:"Обратная связь",
ico: "mdi-arrow-top-right"
ico: "mdi-thumb-up-outline"
}
},
{
@@ -58,7 +58,7 @@ const routes = [
component: () => import('@/views/LaborProtection.vue'),
meta:{
title:"Безопасность",
ico: "mdi-arrow-top-right"
ico: "mdi-pharmacy"
}
},
{
@@ -67,7 +67,7 @@ const routes = [
component: () => import('@/views/SecurityPage.vue'),
meta:{
title:"Охрана труда",
ico: "mdi-arrow-top-right"
ico: "mdi-ticket"
}
},
{
@@ -76,7 +76,7 @@ const routes = [
component: () => import('@/views/AboutInspectionPage.vue'),
meta:{
title:"Об инспекции",
ico: "mdi-arrow-top-right"
ico: "mdi-city"
}
},
{
@@ -85,7 +85,7 @@ const routes = [
component: () => import('@/views/AboutPortalPage.vue'),
meta:{
title:"О портале",
ico: "mdi-arrow-top-right"
ico: "mdi-information-variant"
}
},
{
@@ -94,7 +94,7 @@ const routes = [
component: () => import('@/views/NewsPage.vue'),
meta:{
title:"Лента новостей",
ico: "mdi-arrow-top-right"
ico: "mdi-newspaper"
}
},
],
+1 -1
View File
@@ -39,7 +39,7 @@
<v-col
class="pa-1 "
class="pa-1 text-center"
>
<v-btn-toggle
v-model="toggle"
+1 -1
View File
@@ -54,7 +54,7 @@ class SelectedLinksAPIView(ListAPIView):
def get(self, request):
user = User.objects.get(username=self.request.user)
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)