Статистика

This commit is contained in:
iriska-gri committed 2024-02-14 10:44:06 +03:00
1 parent f7ac489bf6
commit 2dc8214846
5 files changed
+37 -71

No files matched your search

@@ -4,8 +4,21 @@
class="text-center d-flex h-100 flex-column" class="text-center d-flex h-100 flex-column"
> >
<v-tooltip width="250">
<v-row no-gutters class="flex-grow-0 mt-3"> <template v-slot:activator="{ props }">
<v-icon
icon="mdi-information"
color="cyan-darken-3"
size="12"
v-bind="props"
class="align-self-end pr-2 pt-2"
/>
</template>
<span class="text-caption" >
{{indicator.tooltip}}
</span>
</v-tooltip>
<v-row no-gutters class="flex-grow-0 ">
<v-col class="text-h5 "> <v-col class="text-h5 ">
{{indicator.title}} {{indicator.title}}
</v-col> </v-col>
@@ -1,23 +0,0 @@
<template>
<div>
<my-helper :pretext="indicator"/>
</div>
</template>
<script>
export default {
props: {
indicator: {
type: Object,
default: {}
},
},
}
</script>
<style>
</style>
@@ -1,13 +1,14 @@
<template> <template>
<v-card <v-card
class="text-center" class="text-center h-100"
height="200px"
> >
<v-card-title class="text-uppercase text-body-1"> <v-card-title class="text-uppercase text-body-1">
Посещаемость портала Посещаемость портала
<!-- <my-helper :pretext="traffic"/> -->
</v-card-title> </v-card-title>
<v-card-text class="pl-0"> <v-card-text class="px-2">
<v-table <v-table
fixed-header fixed-header
density="comfortable" density="comfortable"
@@ -15,25 +16,28 @@
> >
<thead> <thead>
<tr > <tr >
<th width="125"></th> <th></th>
<th class="text-center">Уникальные пользователи</th> <th class="text-center">Уникальные пользователи</th>
<th class="text-center">% от шага </th> <th class="text-center">% от шага</th>
<th class="text-center">% от периода</th> <th class="text-center">По сравнению предыдущим периодом</th>
</tr> </tr>
</thead> </thead>
<tbody class="text-caption"> <tbody class="text-h6">
<tr v-for="(val, key) in traffic" :key = key> <tr v-for="(val, key) in traffic" :key = key>
<td class="text-left">{{val.title}}</td> <td class="text-body-2 text-left font-weight-medium">{{val.title}}</td>
<td class="text-center ">{{ val.unique.size }} </td> <td class="text-center ">{{ val.user.length }} </td>
<td class="text-center"> <td class="text-center">
{{ val.percentage_staff }}</td> {{ val.proc }}</td>
<td>
<v-tooltip location="top" <td class="text-center" v-if="val.previos">
{{ val.previos }}</td>
<td>
<!-- <v-tooltip location="top"
:text="`${val.info} - ${val.comparison_period.size} чел.`" :text="`${val.info} - ${val.comparison_period.size} чел.`"
> >
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
@@ -43,41 +47,14 @@
</span> </span>
</template> </template>
</v-tooltip> </v-tooltip> -->
</td> </td>
</tr> </tr>
</tbody> </tbody>
</v-table> </v-table>
<!-- <v-list density="compact" class="text-start text-subtitle-1 pt-0">
<v-list-item >
на
<span class="font-weight-bold">
{{selected_days.today}}
</span>
: {{traffic.now.unique.size}}
/ {{traffic.now.percentage_staff}}
/{{traffic.now.comparison_period.size}}
/ {{traffic.now.percentage_period}}
</v-list-item>
<v-list-item>
с
<span class="font-weight-bold">
{{selected_days.year[0]}}
</span>
по
<span class="font-weight-bold">
{{selected_days.year[1]}}
</span>
{{traffic.year.unique.size}}
/ {{traffic.year.percentage_staff}}
/{{traffic.year.comparison_period.size}}
/ {{traffic.year.percentage_period }}
</v-list-item>
</v-list> -->
</v-card-text> </v-card-text>
</v-card> </v-card>
</template> </template>
+4 -5
View File
@@ -3,8 +3,8 @@
<toolbar-filter/> <toolbar-filter/>
<v-col lg=3 class="w100"> <v-col lg=3 class="w100">
<v-row no-gutters class="h-100 gap"> <v-row no-gutters class="h-100 gap">
<v-col lg=2 class="bg-blue"> <v-col lg=3 class="bg-blue">
{{dataAttendance}} <portal-traffic :traffic=dataAttendance />
</v-col> </v-col>
<v-col> <v-col>
@@ -18,7 +18,6 @@
<v-row no-gutters class="flex-column gap" > <v-row no-gutters class="flex-column gap" >
<v-col v-for="x in dataIndicators" :key=x> <v-col v-for="x in dataIndicators" :key=x>
<card-total :indicator=x /> <card-total :indicator=x />
</v-col> </v-col>
</v-row> </v-row>
<!-- <indicators-info <!-- <indicators-info
@@ -65,7 +64,7 @@ import LineChart from '@/components/UI/aboutportal/line-chart.vue'
import PortalTraffic from '@/components/UI/aboutportal/portal-traffic.vue' import PortalTraffic from '@/components/UI/aboutportal/portal-traffic.vue'
import ToolbarFilter from '@/components/UI/aboutportal/toolbar-filter.vue' import ToolbarFilter from '@/components/UI/aboutportal/toolbar-filter.vue'
import RatingPage from '@/components/UI/aboutportal/rating-page.vue' import RatingPage from '@/components/UI/aboutportal/rating-page.vue'
import IndicatorsInfo from '@/components/UI/aboutportal/indicators-info.vue'
import CardTotal from '@/components/UI/aboutportal/card-total.vue' import CardTotal from '@/components/UI/aboutportal/card-total.vue'
export default { export default {
@@ -77,7 +76,7 @@ export default {
PortalTraffic, PortalTraffic,
ToolbarFilter, ToolbarFilter,
RatingPage, RatingPage,
IndicatorsInfo,
CardTotal CardTotal
}, },
+1 -1
View File
@@ -86,7 +86,7 @@ class Counter(ListAPIView):
'br': { 'br': {
'title': "Отказы", 'title': "Отказы",
'abb': "(BR)", 'abb': "(BR)",
'tooltip': " термин в веб-аналитике, обозначающий процентное соотношение количества посетителей, покинувших сайт прямо со страницы входа или просмотревших не более одной страницы сайта", 'tooltip': "Термин в веб-аналитике, обозначающий процентное соотношение количества посетителей, покинувших сайт прямо со страницы входа или просмотревших не более одной страницы сайта",
'data': round((br/crr_per)*100, 2), 'data': round((br/crr_per)*100, 2),
}, },