This commit is contained in:
iriska-gri committed 2024-02-02 08:52:03 +03:00
1 parent a1b30448ad
commit 2177f65cc9
70 files changed
+38 -14

No files matched your search

BIN
View File
Binary file not shown.
+38 -14
View File
@@ -1,12 +1,8 @@
<template>
<v-row no-gutters class="flex-column">
<toolbar-filter/>
<v-col lg=3 class="bg-yellow w100 pa-1">
<v-row no-gutters class=" h-100">
<toolbar-filter/>
<v-col lg=3 class="w100 pa-1">
<v-row no-gutters class="h-100">
<v-col lg=2 class="bg-blue">
{{format1(previous.start)}} - {{format1(previous.end)}}
</v-col>
@@ -14,19 +10,18 @@
<line-chart :dataLineChart="dataLineChart"/>
</v-col>
</v-row>
</v-col>
<v-col class=" w100">
<v-col class="w100">
<v-row no-gutters class="h-100">
<v-col lg=2 class="bg-green">
visiting- (все данные)
<my-helper :pretext="pages_count"/>
<my-helper :pretext="visiting"/>
</v-col>
<v-col lg=5 class="bg-red d-flex flex-column">
<v-col lg=5 class="bg-red d-flex flex-column">
<rating-page :pages_count=pages_count />
</v-col>
<v-col class="bg-yellow">3 </v-col>
<v-col class="bg-red">4 </v-col>
<v-col class="bg-yellow">3 </v-col>
<v-col class="bg-red">4 </v-col>
</v-row>
</v-col>
@@ -247,6 +242,7 @@ setup(){
const visitionreduce = () => {
previous_period()
let lineCharts = {}
let activusers = {}
// let portal_traffic = {
// now: {
// title: '',
@@ -285,6 +281,32 @@ setup(){
lineCharts[item.visitdate]['count'] +=item.count
checking_for_entry(lineCharts[item.visitdate]['unic'], splitname(item.author))
if (!activusers[splitname(item.author)])
{
activusers[splitname(item.author)] = {login: '', post: '', count: 0, pages: [], session: {} }
}
activusers[splitname(item.author)].login = item.author.login
activusers[splitname(item.author)].post = item.author.post
activusers[splitname(item.author)].count += item.count
if (!activusers[splitname(item.author)].session[item.visitdate]) {
activusers[splitname(item.author)].session[item.visitdate] = {pages: {}}
}
if (!activusers[splitname(item.author)].session[item.visitdate].pages[item.pages]) {
activusers[splitname(item.author)].session[item.visitdate].pages[item.pages] = {count: 0}
}
// activusers[splitname(item.author)].session[item.visitdate].count = item.count
// activusers[splitname(item.author)].session[item.visitdate].pages.push(item.pages)
// if (!activusers[splitname(item.author)].session[item.visitdate]) {
// activusers[splitname(item.author)].session[item.visitdate] = {pages: {}}
// }
// activusers[splitname(item.author)].session.add(item.visitdate)
// checking_for_entry(activusers[splitname(item.author)].session, item.visitdate)
checking_for_entry(activusers[splitname(item.author)].pages, item.pages)
console.log(activusers, item, 'activusers');
//
// Данные для таблицы по страницам
if (!acc[item.pages]) {
@@ -297,9 +319,11 @@ setup(){
}
checking_for_entry(acc[item.pages].year.unique, splitname(item.author))
acc[item.pages].year.countall += item.count
}
// ------------------------------------------------------------------------------------------------------
if (item.visitdate == format2(new Date())) {
checking_for_entry(acc[item.pages].now.unique, splitname(item.author))
acc[item.pages].now.countall += item.count
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.