Посещаемость портала
This commit is contained in:
1 parent
d70ab75ef1
commit
7fddc88f4d
3 files changed
+56
-58
No files matched your search
@@ -1,62 +1,61 @@
|
||||
<template>
|
||||
<v-card
|
||||
class="text-center h-100"
|
||||
|
||||
<v-card class="text-center h-100">
|
||||
<v-card-title class="font-weight-medium text-h5">
|
||||
Посещаемость портала
|
||||
</v-card-title>
|
||||
<v-card-text class="px-4">
|
||||
<v-divider/>
|
||||
<v-table class="text-caption table_traffic pt-2">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="pr-0"></th>
|
||||
<th class="text-center px-1">Уникальные пользователи</th>
|
||||
<th class="text-center ">% от штата</th>
|
||||
<th class="text-center pb-2">По сравнению предыдущим периодом</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="text-button">
|
||||
<tr
|
||||
v-for="(val, key) in traffic"
|
||||
:key = key
|
||||
>
|
||||
<v-card-title class="text-uppercase text-body-1">
|
||||
Посещаемость портала
|
||||
<!-- <my-helper :pretext="traffic"/> -->
|
||||
</v-card-title>
|
||||
|
||||
<v-card-text class="px-2">
|
||||
<v-table
|
||||
fixed-header
|
||||
|
||||
class="text-caption table_traffic"
|
||||
<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 }">
|
||||
<span v-bind="props" >
|
||||
{{ val.user.length }}
|
||||
</span>
|
||||
</template>
|
||||
<v-row
|
||||
no-gutters v-for="n in val.user"
|
||||
:key="n"
|
||||
>
|
||||
<thead>
|
||||
<tr >
|
||||
<th class="pr-0" ></th>
|
||||
<th class="text-center px-1">Уникальные пользователи</th>
|
||||
<th class="text-center ">% от штата</th>
|
||||
<th class="text-center">По сравнению предыдущим периодом</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody class="text-button">
|
||||
<tr v-for="(val, key) in traffic" :key = key>
|
||||
|
||||
<!-- <td></td> -->
|
||||
<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} чел.`"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props" >
|
||||
|
||||
{{val.percentage_period}}
|
||||
</span>
|
||||
</template>
|
||||
|
||||
</v-tooltip> -->
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</v-table>
|
||||
<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'"
|
||||
/>
|
||||
|
||||
{{ val.previos }}
|
||||
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</v-table>
|
||||
<v-divider/>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
<td>{{key}}</td>
|
||||
<td>
|
||||
<tooltip-text
|
||||
|
||||
v-if="val.now.unique.length>0"
|
||||
:text="modelrating?val.now.unique.length:val.now.countall"
|
||||
>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<toolbar-filter/>
|
||||
<v-col lg=3 class="w100">
|
||||
<v-row no-gutters class="h-100 gap">
|
||||
<v-col lg=3 class="bg-blue">
|
||||
<v-col lg=3 >
|
||||
<portal-traffic :traffic=dataAttendance />
|
||||
|
||||
</v-col>
|
||||
@@ -284,7 +284,7 @@ setup(){
|
||||
attendance.period.proc = `${Number.isInteger(procperiod)?procperiod:(procperiod).toFixed(2)}%`
|
||||
|
||||
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
|
||||
console.log(attendance, 'attendance[splitname(item.author)]')
|
||||
return groupedData
|
||||
|
||||
Reference in new issue
Block a user