Активные пользователи
This commit is contained in:
1 parent
ca052a8dbf
commit
ded62ab55d
2 files changed
+32
-9
No files matched your search
@@ -16,6 +16,7 @@
|
||||
density="compact"
|
||||
>
|
||||
<template v-slot:item.user="{ value }">
|
||||
|
||||
<list-user
|
||||
:author=value
|
||||
:from_which = "'top-user'"
|
||||
@@ -114,7 +115,7 @@ import { spravURL } from '@/utils/axios-api'
|
||||
import {checkremote} from '@/utils/universal_functions'
|
||||
import listUser from '@/components/UI//fiousercard/listUser.vue'
|
||||
import PatternCard from '@/components/UI/aboutportal/pattern-card.vue'
|
||||
import {splitname} from '@/utils/universal_functions'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
listUser,
|
||||
@@ -148,7 +149,7 @@ export default {
|
||||
pages: 1
|
||||
},
|
||||
tooltip: [{
|
||||
namegapes: e.pages,
|
||||
namepages: e.pages,
|
||||
count: e.count,
|
||||
unic: 1
|
||||
}]
|
||||
@@ -156,11 +157,30 @@ export default {
|
||||
}
|
||||
|
||||
else {
|
||||
let ob =res[ind]
|
||||
ob.info.count += e.count,
|
||||
ob.info.session.add(e.visitdate)
|
||||
ob.info.pages += 1
|
||||
|
||||
let indt = ob.tooltip.findIndex(elem =>
|
||||
elem.namepages === e.pages)
|
||||
console.log(indt,'indtindt')
|
||||
if (indt == -1) {
|
||||
ob.tooltip.push({
|
||||
namepages: e.pages,
|
||||
count: e.count,
|
||||
unic: 1
|
||||
})
|
||||
}
|
||||
else {
|
||||
|
||||
ob.tooltip[indt].unic += e.count
|
||||
ob.tooltip[indt].unic += 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// console.log(ind, 'e');
|
||||
|
||||
})
|
||||
return res
|
||||
}
|
||||
@@ -177,7 +197,7 @@ export default {
|
||||
},
|
||||
|
||||
{ title: 'просмотры', align: 'start', key: 'info.count', tooltip: 'Количество посещенных страниц за период' },
|
||||
{ title: 'сессии', align: 'start', key: 'info.session', tooltip: 'Сколько дней посещали Портал за период'},
|
||||
{ title: 'сессии', align: 'start', key: 'info.session.size', tooltip: 'Сколько дней посещали Портал за период'},
|
||||
{ title: 'страницы', align: 'start', key: 'info.pages', tooltip: 'Сколько суммарно посещено уникальных страниц за период' },
|
||||
|
||||
|
||||
@@ -193,11 +213,11 @@ export default {
|
||||
maxWidth: '60%',
|
||||
minWidth: '60%',
|
||||
},
|
||||
|
||||
{ title: 'всего', align: 'center', key: 'count', width: '20%', maxWidth: '20%'
|
||||
},
|
||||
{ title: 'уникальных', align: 'center', key: 'unic', width: '20%', maxWidth: '20%'
|
||||
},
|
||||
{ title: 'всего', align: 'center', key: 'count', width: '20%', maxWidth: '20%'
|
||||
},
|
||||
|
||||
|
||||
|
||||
]
|
||||
@@ -228,6 +248,7 @@ export default {
|
||||
subtable,
|
||||
getColor,
|
||||
getColor2,
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
:image="checkremote( `${spravURL}${author.login}.jpg`)"
|
||||
class="mr-2"
|
||||
/>
|
||||
{{author.fio}}
|
||||
{{splitname(author)}}
|
||||
</v-chip>
|
||||
|
||||
</v-list-item>
|
||||
@@ -54,6 +54,7 @@
|
||||
import { ref } from 'vue'
|
||||
import {checkremote} from '@/utils/universal_functions'
|
||||
import { spravURL } from '@/utils/axios-api'
|
||||
import {splitname} from '@/utils/universal_functions'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
@@ -94,7 +95,8 @@ export default {
|
||||
checkremote,
|
||||
spravURL,
|
||||
style_item_title,
|
||||
style_item_subtitle
|
||||
style_item_subtitle,
|
||||
splitname
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user