Посещаемость портала
This commit is contained in:
1 parent
d70ab75ef1
commit
7fddc88f4d
3 files changed
+36
-38
No files matched your search
@@ -1,60 +1,59 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-card
|
<v-card class="text-center h-100">
|
||||||
class="text-center h-100"
|
<v-card-title class="font-weight-medium text-h5">
|
||||||
|
|
||||||
>
|
|
||||||
<v-card-title class="text-uppercase text-body-1">
|
|
||||||
Посещаемость портала
|
Посещаемость портала
|
||||||
<!-- <my-helper :pretext="traffic"/> -->
|
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
|
<v-card-text class="px-4">
|
||||||
<v-card-text class="px-2">
|
<v-divider/>
|
||||||
<v-table
|
<v-table class="text-caption table_traffic pt-2">
|
||||||
fixed-header
|
|
||||||
|
|
||||||
class="text-caption table_traffic"
|
|
||||||
>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="pr-0"></th>
|
<th class="pr-0"></th>
|
||||||
<th class="text-center px-1">Уникальные пользователи</th>
|
<th class="text-center px-1">Уникальные пользователи</th>
|
||||||
<th class="text-center ">% от штата</th>
|
<th class="text-center ">% от штата</th>
|
||||||
<th class="text-center">По сравнению предыдущим периодом</th>
|
<th class="text-center pb-2">По сравнению предыдущим периодом</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-button">
|
<tbody class="text-button">
|
||||||
<tr v-for="(val, key) in traffic" :key = key>
|
<tr
|
||||||
|
v-for="(val, key) in traffic"
|
||||||
<!-- <td></td> -->
|
:key = key
|
||||||
<td style="white-space: nowrap" class="text-left text-caption pr-0 font-weight-medium">{{val.title}}</td>
|
|
||||||
<td class="text-center px-0">{{ val.user.length }} </td>
|
|
||||||
<td class="text-center px-0">
|
|
||||||
|
|
||||||
{{ val.proc }}</td>
|
|
||||||
|
|
||||||
<td class="text-center" v-if="val.previos">
|
|
||||||
|
|
||||||
{{ val.previos }}</td>
|
|
||||||
<td>
|
|
||||||
<!-- <v-tooltip location="top"
|
|
||||||
:text="`${val.info} - ${val.comparison_period.size} чел.`"
|
|
||||||
>
|
>
|
||||||
|
<td style="white-space: nowrap" class="text-left text-subtitle-1 pr-0 pl-4 font-weight-medium">{{val.title}}</td>
|
||||||
|
<td class="text-center px-0 font-weight-bold text-h6 cursor-help text-cyan-darken-4">
|
||||||
|
<v-tooltip location="top">
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<span v-bind="props" >
|
<span v-bind="props" >
|
||||||
|
{{ val.user.length }}
|
||||||
{{val.percentage_period}}
|
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
<v-row
|
||||||
|
no-gutters v-for="n in val.user"
|
||||||
|
:key="n"
|
||||||
|
>
|
||||||
|
<v-col>
|
||||||
|
{{n}}
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-tooltip>
|
||||||
|
</td>
|
||||||
|
<td class="text-center px-0 font-weight-bold text-h6 text-cyan-darken-4">{{ val.proc }}</td>
|
||||||
|
<td class="text-center font-weight-bold text-h6 text-cyan-darken-4" v-if="val.previos">
|
||||||
|
<v-icon
|
||||||
|
size="x-small"
|
||||||
|
:class="val.previos>0?'pb-1':'pt-0'"
|
||||||
|
:color="val.previos>0?'green-darken-2':'deep-orange-darken-4'"
|
||||||
|
:icon="val.previos>0?'mdi-arrow-up-bold':'mdi-arrow-down-bold'"
|
||||||
|
/>
|
||||||
|
|
||||||
</v-tooltip> -->
|
{{ val.previos }}
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</v-table>
|
</v-table>
|
||||||
|
<v-divider/>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
<td>{{key}}</td>
|
<td>{{key}}</td>
|
||||||
<td>
|
<td>
|
||||||
<tooltip-text
|
<tooltip-text
|
||||||
|
|
||||||
v-if="val.now.unique.length>0"
|
v-if="val.now.unique.length>0"
|
||||||
:text="modelrating?val.now.unique.length:val.now.countall"
|
:text="modelrating?val.now.unique.length:val.now.countall"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<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=3 class="bg-blue">
|
<v-col lg=3 >
|
||||||
<portal-traffic :traffic=dataAttendance />
|
<portal-traffic :traffic=dataAttendance />
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -284,7 +284,7 @@ setup(){
|
|||||||
attendance.period.proc = `${Number.isInteger(procperiod)?procperiod:(procperiod).toFixed(2)}%`
|
attendance.period.proc = `${Number.isInteger(procperiod)?procperiod:(procperiod).toFixed(2)}%`
|
||||||
|
|
||||||
let previos = (for_formulas.value.previos*100)/attendance.period.user.length
|
let previos = (for_formulas.value.previos*100)/attendance.period.user.length
|
||||||
attendance.period.previos = `${100- (Number.isInteger(previos)?previos:(previos).toFixed(2))}%`
|
attendance.period.previos = 100- (Number.isInteger(previos)?previos:(previos).toFixed(2))
|
||||||
dataAttendance.value = attendance
|
dataAttendance.value = attendance
|
||||||
console.log(attendance, 'attendance[splitname(item.author)]')
|
console.log(attendance, 'attendance[splitname(item.author)]')
|
||||||
return groupedData
|
return groupedData
|
||||||
|
|||||||
Reference in new issue
Block a user