Вывод статистики в разделе "О портале"

This commit is contained in:
Alex committed 2023-12-26 16:17:04 +03:00
1 parent 72a5554905
commit 8e371c6fbe
1 file changed
+57 -7
+57 -7
View File
@@ -2,11 +2,37 @@
<v-row>
<v-col
class="d-flex flex-column"
lg=3
lg=4
>
<v-row class="flex-grow-0">
<v-col class="bg-orange">
{{ countvis() }}
<!-- {{ countvis() }} -->
<v-card
class="d-flex flex-column my-2 ml-3 text-center"
title="Количество посещений">
<!-- <div class="mb-3 pl-3 d-flex flex-column align-start text-subtitle-1">
<p class="pb-1">
Посетителей сегодня: {{ countvis()['now'] }}
</p>
<p class="pb-1">
Посетителей на прошлой неделе: {{ countvis()['week'] }}
</p>
<p>
Посетителей с начала года {{ countvis()['year'] }}
</p>
</div> -->
<v-list class="d-flex flex-column align-start text-subtitle-1">
<v-list-item>
Посетителей сегодня: {{ countvis()['now'] }}
</v-list-item>
<v-list-item>
Посетителей на прошлой неделе: {{ countvis()['week'] }}
</v-list-item>
<v-list-item>
Посетителей с начала года: {{ countvis()['year'] }}
</v-list-item>
</v-list>
</v-card>
</v-col>
</v-row>
<v-row>
@@ -27,13 +53,37 @@
<v-col
lg=9
>
<div v-for="(val, key) in countgrupp()" :key = key>
<!-- <v-card class="text-center" title="Рейтинг посещаемости страниц портала">
<div v-for="(val, key) in countgrupp()" :key = key>
{{key}} : {{ val.now }} {{ val.week }} {{ val.year }}
</div>
</v-card> -->
<v-card class="pt-3 text-center" title="Рейтинг посещаемости страниц портала">
<v-table class="pt-3 ma-0">
<thead>
<tr>
<th>Имя страницы</th>
<th class="text-center">Сегодня</th>
<th class="text-center">На прошлой неделе</th>
<th class="text-center">С начала года</th>
</tr>
</thead>
<tbody>
<tr v-for="(val, key) in countgrupp()" :key = key>
<td class="text-left">{{key}}</td>
<td class="text-center">{{ val.now }}</td>
<td class="text-center">{{ val.week }}</td>
<td class="text-center">{{ val.year }}</td>
</tr>
</tbody>
</v-table>
</v-card>
<!-- <div v-for="(val, key) in countgrupp()" :key = key>
{{key}} : {{ val.now }} {{ val.week }} {{ val.year }}
</div> -->
</v-col>
<v-col class="bg-black">
<div v-for="(val, key) in activuser()" :key = key>
@@ -230,7 +280,7 @@ setup(){
countvis,
countgrupp,
activuser,
chartConfig,
// chartConfig,
// data,
// options
}