Рейтинг посещаемости портала
This commit is contained in:
1 parent
b5e56f38c5
commit
50ad487a17
5 files changed
+163
-129
No files matched your search
@@ -1,30 +1,32 @@
|
||||
<template>
|
||||
<v-card class="text-center text-blue-grey-darken-4 d-flex h-100 flex-column">
|
||||
<v-tooltip width="250">
|
||||
<v-card class="text-center text-blue-grey-darken-4 d-flex h-100 flex-column cursor-default justify-center">
|
||||
|
||||
<v-row no-gutters class="flex-grow-0 ">
|
||||
<v-col class="text-h5 font-weight-bold pl-5">
|
||||
{{indicator.title}}
|
||||
<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"
|
||||
class="align-self-end pr-2 pb-5 cursor-help"
|
||||
/>
|
||||
</template>
|
||||
<span class="text-caption" >
|
||||
{{indicator.tooltip}}
|
||||
</span>
|
||||
</v-tooltip>
|
||||
<v-row no-gutters class="flex-grow-0 ">
|
||||
<v-col class="text-h5 font-weight-bold">
|
||||
{{indicator.title}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row no-gutters class="flex-grow-0">
|
||||
<v-col class="text-h6 font-weight-medium">
|
||||
{{indicator.abb}}
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row no-gutters>
|
||||
<v-row no-gutters class="flex-grow-0 pt-3">
|
||||
<v-col class="text-h3 text-grey-darken-3 text-center font-weight-regular align-self-center">
|
||||
|
||||
<vue3-autocounter
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-card class="text-center h-100">
|
||||
<v-row no-gutters >
|
||||
<v-card class="text-center h-100 d-flex flex-column">
|
||||
<v-row no-gutters class="flex-grow-0">
|
||||
<v-col class="d-flex flex-column pa-1">
|
||||
<v-chip
|
||||
color="light-blue-darken-4"
|
||||
@@ -9,13 +9,20 @@
|
||||
>
|
||||
<v-icon start color="cyan-darken-4" :icon="ico"/>
|
||||
{{title}}
|
||||
|
||||
</v-chip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-card-text class="px-3 py-0">
|
||||
</v-row>
|
||||
<v-row no-gutters >
|
||||
<v-col class="flex-column d-flex">
|
||||
|
||||
|
||||
<v-card-text class="px-3 py-1 flex-column d-flex h-0">
|
||||
<slot name="filling"></slot>
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
:ico="'mdi-walk'"
|
||||
>
|
||||
<template v-slot:filling>
|
||||
<v-table class="text-caption table_traffic pt-3">
|
||||
<v-table class="text-caption table_traffic ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="pr-0"></th>
|
||||
@@ -18,7 +18,7 @@
|
||||
v-for="(val, key) in traffic"
|
||||
:key = key
|
||||
>
|
||||
<td style="white-space: nowrap" class="text-left text-caption pr-0 pl-4 font-weight-medium">{{val.title}}</td>
|
||||
<td style="white-space: nowrap" class="text-left text-caption pr-0 pl-4 font-weight-medium cursor-default">{{val.title}}</td>
|
||||
<td class="text-center px-0 font-weight-bold text-h6 cursor-help text-grey-darken-3">
|
||||
<v-tooltip location="top">
|
||||
<template v-slot:activator="{ props }">
|
||||
@@ -36,8 +36,8 @@
|
||||
</v-row>
|
||||
</v-tooltip>
|
||||
</td>
|
||||
<td class="text-center px-0 font-weight-bold text-h6 text-grey-darken-3">{{ val.proc }}</td>
|
||||
<td class="text-center font-weight-bold text-h6 text-grey-darken-3" v-if="val.previos">
|
||||
<td class="text-center px-0 font-weight-bold text-h6 text-grey-darken-3 cursor-default">{{ val.proc }}</td>
|
||||
<td class="text-center font-weight-bold text-h6 text-grey-darken-3 cursor-default" v-if="val.previos">
|
||||
<v-icon
|
||||
size="x-small"
|
||||
:class="val.previos>0?'pb-1':'pt-0'"
|
||||
@@ -46,7 +46,7 @@
|
||||
/>
|
||||
{{ val.previos }}%
|
||||
</td>
|
||||
<td></td>
|
||||
<td v-if="!val.previos"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</v-table>
|
||||
|
||||
@@ -1,107 +1,141 @@
|
||||
<template>
|
||||
<v-card class="text-center h-100 d-flex flex-column" >
|
||||
<v-card-title>
|
||||
<v-row no-gutters>
|
||||
<v-col lg=2>
|
||||
<v-switch
|
||||
v-model="modelrating"
|
||||
hide-details
|
||||
density="comfortable"
|
||||
:label="modelrating?'уникальные':'всего'"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="ml-n7 pt-2">
|
||||
Рейтинг посещаемости страниц портала
|
||||
<!-- <v-icon size="small" icon="mdi-menu-down" class="pa-0"/> -->
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-title>
|
||||
<v-divider/>
|
||||
<v-row class="overflow-auto h-0">
|
||||
<v-col class="d-flex flex-column">
|
||||
<v-table
|
||||
fixed-header
|
||||
height="0"
|
||||
hover
|
||||
class="cursor-default"
|
||||
>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th class="text-center"> сегодня </th>
|
||||
<th class="text-center"> за период </th>
|
||||
<pattern-card
|
||||
:title="'Рейтинг посещаемости страниц портала'"
|
||||
:ico="'mdi-chart-bar'"
|
||||
>
|
||||
<template v-slot:filling>
|
||||
<v-table
|
||||
fixed-header
|
||||
density="compact"
|
||||
hover
|
||||
class="cursor-default h-0"
|
||||
>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="pl-1">
|
||||
<v-switch
|
||||
v-model="modelrating"
|
||||
hide-details
|
||||
|
||||
:label="modelrating?'Уникальные':'Всего'"
|
||||
color="teal-darken-4"
|
||||
|
||||
/>
|
||||
</th>
|
||||
<th class="text-center"> сегодня </th>
|
||||
<th class="text-center"> за период </th>
|
||||
<!-- <th class="text-center"> на {{pages_count.title.today}} </th>
|
||||
<th class="text-center">с {{pages_count.title.year.start}} по {{pages_count.title.year.end}}</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="(val, key) in pages_count.data"
|
||||
:key="key"
|
||||
>
|
||||
<td>{{key}}</td>
|
||||
<td>
|
||||
<tooltip-text
|
||||
v-if="val.now.unique.length>0"
|
||||
:text="modelrating?val.now.unique.length:val.now.countall"
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
<v-row
|
||||
no-gutters v-for="n in val.now.unique"
|
||||
:key="n"
|
||||
>
|
||||
<v-col>
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</tooltip-text>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
</td>
|
||||
<td >
|
||||
<tooltip-text
|
||||
v-if="val.year.unique.length>0"
|
||||
:text="modelrating?val.year.unique.length:val.year.countall"
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
<v-row
|
||||
no-gutters
|
||||
v-for="n in val.year.unique"
|
||||
:key="n"
|
||||
>
|
||||
<v-col>
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</tooltip-text>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
<!-- <tooltip-number
|
||||
:number = modelrating?val.year.unique.length:val.year.countall
|
||||
:tooltip = val.year.unique
|
||||
/> -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</v-table>
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="(val, key) in pages_count.data"
|
||||
:key="key"
|
||||
>
|
||||
<td class="text-left">{{key}}</td>
|
||||
<td>
|
||||
<tooltip-text
|
||||
v-if="val.now.unique.length>0"
|
||||
:text="modelrating?val.now.unique.length:val.now.countall"
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
<v-row
|
||||
no-gutters v-for="n in val.now.unique"
|
||||
:key="n"
|
||||
>
|
||||
<v-col>
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</tooltip-text>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<tooltip-text
|
||||
v-if="val.year.unique.length>0"
|
||||
:text="modelrating?val.year.unique.length:val.year.countall"
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
<v-row
|
||||
no-gutters
|
||||
v-for="n in val.year.unique"
|
||||
:key="n"
|
||||
>
|
||||
<v-col>
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</tooltip-text>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr
|
||||
v-for="(val, key) in pages_count.data"
|
||||
:key="key"
|
||||
>
|
||||
<td class="text-left">{{key}}</td>
|
||||
<td>
|
||||
<tooltip-text
|
||||
v-if="val.now.unique.length>0"
|
||||
:text="modelrating?val.now.unique.length:val.now.countall"
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
<v-row
|
||||
no-gutters v-for="n in val.now.unique"
|
||||
:key="n"
|
||||
>
|
||||
<v-col>
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</tooltip-text>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<tooltip-text
|
||||
v-if="val.year.unique.length>0"
|
||||
:text="modelrating?val.year.unique.length:val.year.countall"
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
<v-row
|
||||
no-gutters
|
||||
v-for="n in val.year.unique"
|
||||
:key="n"
|
||||
>
|
||||
<v-col>
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</tooltip-text>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</v-table>
|
||||
</template>
|
||||
</pattern-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
|
||||
import PatternCard from '@/components/UI/aboutportal/pattern-card.vue'
|
||||
import TooltipText from '@/components/UI/tooltip-text.vue'
|
||||
export default {
|
||||
|
||||
components: { TooltipText },
|
||||
components: { TooltipText, PatternCard },
|
||||
|
||||
props: {
|
||||
pages_count: {
|
||||
|
||||
@@ -1,18 +1,9 @@
|
||||
<template>
|
||||
<v-card class="h-100 d-flex flex-column pa-1">
|
||||
|
||||
<!-- <my-helper :pretext="activusers"/> -->
|
||||
<v-row no-gutters class="overflow-auto h-0">
|
||||
<v-col class="d-flex flex-column">
|
||||
<v-chip
|
||||
color="light-blue-darken-4"
|
||||
label
|
||||
class="text-center text-center text-cyan-darken-4 rounded-0 text-subtitle-1 font-weight-medium"
|
||||
>
|
||||
<v-icon start icon="mdi-account-circle-outline"/>
|
||||
Самые активные пользователи
|
||||
</v-chip>
|
||||
<v-divider/>
|
||||
<pattern-card
|
||||
:title="'Самые активные пользователи'"
|
||||
:ico="'mdi-star-circle'"
|
||||
>
|
||||
<!-- <template v-slot:filling>
|
||||
<v-data-table
|
||||
v-model:expanded="expanded"
|
||||
:headers="dessertHeaders"
|
||||
@@ -99,10 +90,8 @@
|
||||
</template>
|
||||
|
||||
</v-data-table>
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</template> -->
|
||||
</pattern-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -110,10 +99,12 @@ import { ref } from 'vue'
|
||||
import { spravURL } from '@/utils/axios-api'
|
||||
import {checkremote} from '@/utils/universal_functions'
|
||||
import listUser from '@/components/UI//fiousercard/listUser.vue'
|
||||
import PatternCard from '@/components/UI/aboutportal/pattern-card.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
listUser
|
||||
listUser,
|
||||
PatternCard
|
||||
},
|
||||
|
||||
props: {
|
||||
|
||||
Reference in new issue
Block a user