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> <template>
<v-row no-gutters class="flex-column"> <v-row no-gutters class="flex-column">
<toolbar-filter/>
<toolbar-filter/> <v-col lg=3 class="w100 pa-1">
<v-row no-gutters class="h-100">
<v-col lg=3 class="bg-yellow w100 pa-1">
<v-row no-gutters class=" h-100">
<v-col lg=2 class="bg-blue"> <v-col lg=2 class="bg-blue">
{{format1(previous.start)}} - {{format1(previous.end)}} {{format1(previous.start)}} - {{format1(previous.end)}}
</v-col> </v-col>
@@ -14,19 +10,18 @@
<line-chart :dataLineChart="dataLineChart"/> <line-chart :dataLineChart="dataLineChart"/>
</v-col> </v-col>
</v-row> </v-row>
</v-col> </v-col>
<v-col class=" w100"> <v-col class="w100">
<v-row no-gutters class="h-100"> <v-row no-gutters class="h-100">
<v-col lg=2 class="bg-green"> <v-col lg=2 class="bg-green">
visiting- (все данные) visiting- (все данные)
<my-helper :pretext="pages_count"/> <my-helper :pretext="visiting"/>
</v-col> </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 /> <rating-page :pages_count=pages_count />
</v-col> </v-col>
<v-col class="bg-yellow">3 </v-col> <v-col class="bg-yellow">3 </v-col>
<v-col class="bg-red">4 </v-col> <v-col class="bg-red">4 </v-col>
</v-row> </v-row>
</v-col> </v-col>
@@ -247,6 +242,7 @@ setup(){
const visitionreduce = () => { const visitionreduce = () => {
previous_period() previous_period()
let lineCharts = {} let lineCharts = {}
let activusers = {}
// let portal_traffic = { // let portal_traffic = {
// now: { // now: {
// title: '', // title: '',
@@ -285,6 +281,32 @@ setup(){
lineCharts[item.visitdate]['count'] +=item.count lineCharts[item.visitdate]['count'] +=item.count
checking_for_entry(lineCharts[item.visitdate]['unic'], splitname(item.author)) 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]) { if (!acc[item.pages]) {
@@ -297,9 +319,11 @@ setup(){
} }
checking_for_entry(acc[item.pages].year.unique, splitname(item.author)) checking_for_entry(acc[item.pages].year.unique, splitname(item.author))
acc[item.pages].year.countall += item.count acc[item.pages].year.countall += item.count
} }
// ------------------------------------------------------------------------------------------------------
if (item.visitdate == format2(new Date())) { if (item.visitdate == format2(new Date())) {
checking_for_entry(acc[item.pages].now.unique, splitname(item.author)) checking_for_entry(acc[item.pages].now.unique, splitname(item.author))
acc[item.pages].now.countall += item.count 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.