Активные пользователи
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"
|
density="compact"
|
||||||
>
|
>
|
||||||
<template v-slot:item.user="{ value }">
|
<template v-slot:item.user="{ value }">
|
||||||
|
|
||||||
<list-user
|
<list-user
|
||||||
:author=value
|
:author=value
|
||||||
:from_which = "'top-user'"
|
:from_which = "'top-user'"
|
||||||
@@ -114,7 +115,7 @@ import { spravURL } from '@/utils/axios-api'
|
|||||||
import {checkremote} from '@/utils/universal_functions'
|
import {checkremote} from '@/utils/universal_functions'
|
||||||
import listUser from '@/components/UI//fiousercard/listUser.vue'
|
import listUser from '@/components/UI//fiousercard/listUser.vue'
|
||||||
import PatternCard from '@/components/UI/aboutportal/pattern-card.vue'
|
import PatternCard from '@/components/UI/aboutportal/pattern-card.vue'
|
||||||
import {splitname} from '@/utils/universal_functions'
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
listUser,
|
listUser,
|
||||||
@@ -148,7 +149,7 @@ export default {
|
|||||||
pages: 1
|
pages: 1
|
||||||
},
|
},
|
||||||
tooltip: [{
|
tooltip: [{
|
||||||
namegapes: e.pages,
|
namepages: e.pages,
|
||||||
count: e.count,
|
count: e.count,
|
||||||
unic: 1
|
unic: 1
|
||||||
}]
|
}]
|
||||||
@@ -156,11 +157,30 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
else {
|
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
|
return res
|
||||||
}
|
}
|
||||||
@@ -177,7 +197,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{ title: 'просмотры', align: 'start', key: 'info.count', tooltip: 'Количество посещенных страниц за период' },
|
{ 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: 'Сколько суммарно посещено уникальных страниц за период' },
|
{ title: 'страницы', align: 'start', key: 'info.pages', tooltip: 'Сколько суммарно посещено уникальных страниц за период' },
|
||||||
|
|
||||||
|
|
||||||
@@ -193,11 +213,11 @@ export default {
|
|||||||
maxWidth: '60%',
|
maxWidth: '60%',
|
||||||
minWidth: '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: 'unic', width: '20%', maxWidth: '20%'
|
||||||
},
|
},
|
||||||
{ title: 'всего', align: 'center', key: 'count', width: '20%', maxWidth: '20%'
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
@@ -229,6 +249,7 @@ export default {
|
|||||||
getColor,
|
getColor,
|
||||||
getColor2,
|
getColor2,
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
:image="checkremote( `${spravURL}${author.login}.jpg`)"
|
:image="checkremote( `${spravURL}${author.login}.jpg`)"
|
||||||
class="mr-2"
|
class="mr-2"
|
||||||
/>
|
/>
|
||||||
{{author.fio}}
|
{{splitname(author)}}
|
||||||
</v-chip>
|
</v-chip>
|
||||||
|
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
@@ -54,6 +54,7 @@
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
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 {splitname} from '@/utils/universal_functions'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
@@ -94,7 +95,8 @@ export default {
|
|||||||
checkremote,
|
checkremote,
|
||||||
spravURL,
|
spravURL,
|
||||||
style_item_title,
|
style_item_title,
|
||||||
style_item_subtitle
|
style_item_subtitle,
|
||||||
|
splitname
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user