Статистика
This commit is contained in:
1 parent
f7ac489bf6
commit
2dc8214846
5 files changed
+41
-75
No files matched your search
@@ -4,8 +4,21 @@
|
||||
class="text-center d-flex h-100 flex-column"
|
||||
|
||||
>
|
||||
|
||||
<v-row no-gutters class="flex-grow-0 mt-3">
|
||||
<v-tooltip width="250">
|
||||
<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 ">
|
||||
{{indicator.title}}
|
||||
</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>
|
||||
<v-card
|
||||
class="text-center"
|
||||
height="200px"
|
||||
class="text-center h-100"
|
||||
|
||||
>
|
||||
<v-card-title class="text-uppercase text-body-1">
|
||||
Посещаемость портала
|
||||
<!-- <my-helper :pretext="traffic"/> -->
|
||||
</v-card-title>
|
||||
|
||||
<v-card-text class="pl-0">
|
||||
<v-card-text class="px-2">
|
||||
<v-table
|
||||
fixed-header
|
||||
density="comfortable"
|
||||
@@ -15,25 +16,28 @@
|
||||
>
|
||||
<thead>
|
||||
<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>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody class="text-caption">
|
||||
<tr v-for="(val, key) in traffic" :key = key>
|
||||
|
||||
<tbody class="text-h6">
|
||||
<tr v-for="(val, key) in traffic" :key = key>
|
||||
|
||||
|
||||
<td class="text-body-2 text-left font-weight-medium">{{val.title}}</td>
|
||||
<td class="text-center ">{{ val.user.length }} </td>
|
||||
<td class="text-center">
|
||||
|
||||
{{ val.proc }}</td>
|
||||
|
||||
<td class="text-left">{{val.title}}</td>
|
||||
<td class="text-center ">{{ val.unique.size }} </td>
|
||||
<td class="text-center">
|
||||
<td class="text-center" v-if="val.previos">
|
||||
|
||||
{{ val.percentage_staff }}</td>
|
||||
{{ val.previos }}</td>
|
||||
<td>
|
||||
|
||||
<v-tooltip location="top"
|
||||
<!-- <v-tooltip location="top"
|
||||
:text="`${val.info} - ${val.comparison_period.size} чел.`"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
@@ -43,41 +47,14 @@
|
||||
</span>
|
||||
</template>
|
||||
|
||||
</v-tooltip>
|
||||
</v-tooltip> -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</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>
|
||||
</template>
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
<toolbar-filter/>
|
||||
<v-col lg=3 class="w100">
|
||||
<v-row no-gutters class="h-100 gap">
|
||||
<v-col lg=2 class="bg-blue">
|
||||
{{dataAttendance}}
|
||||
|
||||
<v-col lg=3 class="bg-blue">
|
||||
<portal-traffic :traffic=dataAttendance />
|
||||
|
||||
</v-col>
|
||||
<v-col>
|
||||
<line-chart :dataLineChart="dataLineChart"/>
|
||||
@@ -18,7 +18,6 @@
|
||||
<v-row no-gutters class="flex-column gap" >
|
||||
<v-col v-for="x in dataIndicators" :key=x>
|
||||
<card-total :indicator=x />
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
<!-- <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 ToolbarFilter from '@/components/UI/aboutportal/toolbar-filter.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'
|
||||
|
||||
export default {
|
||||
@@ -77,7 +76,7 @@ export default {
|
||||
PortalTraffic,
|
||||
ToolbarFilter,
|
||||
RatingPage,
|
||||
IndicatorsInfo,
|
||||
|
||||
CardTotal
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user