Очистка от старой таблицы
This commit is contained in:
1 parent
40b686182b
commit
db38c3767f
7 files changed
+178
-29
No files matched your search
Generated
+3
-3
@@ -22919,9 +22919,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vuetify": {
|
"node_modules/vuetify": {
|
||||||
"version": "3.4.10",
|
"version": "3.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-3.4.10.tgz",
|
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-3.5.2.tgz",
|
||||||
"integrity": "sha512-tObGoumCJxuK26OpS/CLZZIJAgDtN2cnd31vJscVhpuf6jeMD7wh8IsgfZownAOXU1FcKWVQwn1RSDsoXk5cJA==",
|
"integrity": "sha512-H/g9+8Loykt50qe9mruHkwWsAIgfQ8gO+SPTAV2uaCFmfYPSFRfu0aGcZ42iWu4bZ9ZkgswIIDaVsfnKINd8yg==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.20 || >=14.13"
|
"node": "^12.20 || >=14.13"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -45,9 +45,7 @@ import {useAccountStore} from '@/store/AccountStore'
|
|||||||
background: rgb(var(--v-theme-scrollbar))
|
background: rgb(var(--v-theme-scrollbar))
|
||||||
}
|
}
|
||||||
|
|
||||||
.pointer {
|
|
||||||
cursor:pointer
|
|
||||||
}
|
|
||||||
|
|
||||||
.bggrad {
|
.bggrad {
|
||||||
background: linear-gradient(to top right, rgba(19,84,122,.8), rgba(128,208,199,.8));
|
background: linear-gradient(to top right, rgba(19,84,122,.8), rgba(128,208,199,.8));
|
||||||
|
|||||||
@@ -12,19 +12,18 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="ml-n7 pt-2">
|
<v-col class="ml-n7 pt-2">
|
||||||
Рейтинг посещаемости страниц портала
|
Рейтинг посещаемости страниц портала
|
||||||
|
<!-- <v-icon size="small" icon="mdi-menu-down" class="pa-0"/> -->
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-divider/>
|
<v-divider/>
|
||||||
<v-row class="overflow-auto h-0">
|
<v-row class="overflow-auto h-0">
|
||||||
|
|
||||||
<v-col class="d-flex flex-column">
|
<v-col class="d-flex flex-column">
|
||||||
<v-table
|
<v-table
|
||||||
fixed-header
|
fixed-header
|
||||||
height="0"
|
height="0"
|
||||||
hover
|
hover
|
||||||
class="pointer"
|
class="cursor-default"
|
||||||
|
|
||||||
>
|
>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -41,16 +40,16 @@
|
|||||||
<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"
|
||||||
>
|
>
|
||||||
<template v-slot:tooltip >
|
<template v-slot:tooltip>
|
||||||
|
|
||||||
<v-row
|
<v-row
|
||||||
no-gutters v-for="n in val.now.unique"
|
no-gutters v-for="n in val.now.unique"
|
||||||
:key="n"
|
:key="n"
|
||||||
>
|
>
|
||||||
<v-col >
|
<v-col>
|
||||||
{{n}}
|
{{n}}
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -60,18 +59,15 @@
|
|||||||
0
|
0
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td >
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<tooltip-text
|
<tooltip-text
|
||||||
v-if="val.year.unique.length>0"
|
v-if="val.year.unique.length>0"
|
||||||
:text="modelrating?val.year.unique.length:val.year.countall"
|
:text="modelrating?val.year.unique.length:val.year.countall"
|
||||||
>
|
>
|
||||||
<template v-slot:tooltip>
|
<template v-slot:tooltip>
|
||||||
|
|
||||||
<v-row
|
<v-row
|
||||||
no-gutters v-for="n in val.year.unique"
|
no-gutters
|
||||||
|
v-for="n in val.year.unique"
|
||||||
:key="n"
|
:key="n"
|
||||||
>
|
>
|
||||||
<v-col>
|
<v-col>
|
||||||
|
|||||||
@@ -1,19 +1,83 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-card class="text-center h-100 d-flex flex-column" >
|
<v-card class="text-center h-100 d-flex flex-column pa-1" >
|
||||||
|
<my-helper :pretext="activusers"/>
|
||||||
<v-row no-gutters class="overflow-auto h-0">
|
<v-row no-gutters class="overflow-auto h-0">
|
||||||
<v-col>
|
<v-col class="d-flex flex-column">
|
||||||
<v-table hover>
|
<v-data-table
|
||||||
|
v-model:expanded="expanded"
|
||||||
|
:headers="dessertHeaders"
|
||||||
|
:items="desserts"
|
||||||
|
item-value="user.fio"
|
||||||
|
show-expand
|
||||||
|
>
|
||||||
|
<template v-slot:top>
|
||||||
|
<v-toolbar flat>
|
||||||
|
<v-toolbar-title>Самые активные пользователи</v-toolbar-title>
|
||||||
|
</v-toolbar>
|
||||||
|
</template>
|
||||||
|
<!-- <template v-slot:item.user.fio="{ item }">
|
||||||
|
{{item.user.fio}}
|
||||||
|
|
||||||
|
|
||||||
|
</template> -->
|
||||||
|
|
||||||
|
<template v-slot:expanded-row="{ columns, item }">
|
||||||
|
<tr>
|
||||||
|
<td :colspan="columns.length">
|
||||||
|
<v-chip
|
||||||
|
prepend-icon="mdi-script"
|
||||||
|
size="small"
|
||||||
|
class="font-italic my-2"
|
||||||
|
text="Количество посещенных страниц за выбранный период (всего/уникальные)"
|
||||||
|
variant="text"
|
||||||
|
color="grey"
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
|
<v-table
|
||||||
|
density="compact"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
<tr
|
||||||
|
v-for="(n, key) in item.tooltip.namepages"
|
||||||
|
:key="key"
|
||||||
|
class="text-center"
|
||||||
|
>
|
||||||
|
<td class="text-left">{{key}}</td>
|
||||||
|
<td>
|
||||||
|
{{n.count}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{n.unic}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</v-table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</v-data-table>
|
||||||
|
<!-- <v-table hover fixed-header height="0"
|
||||||
|
|
||||||
|
class="cursor-default">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th v-for="(n, key) in th_text" :key="key">
|
<th v-for="(n, key) in th_text" :key="key">
|
||||||
|
|
||||||
<tooltip-text
|
<tooltip-text
|
||||||
:text="key"
|
:text="key"
|
||||||
>
|
>
|
||||||
|
|
||||||
<template v-slot:tooltip>
|
<template v-slot:tooltip>
|
||||||
{{n}}
|
{{n}}
|
||||||
</template>
|
</template>
|
||||||
</tooltip-text>
|
</tooltip-text>
|
||||||
|
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -53,8 +117,9 @@
|
|||||||
<tr
|
<tr
|
||||||
v-for="(n, key) in user.tooltip.namepages"
|
v-for="(n, key) in user.tooltip.namepages"
|
||||||
:key="key"
|
:key="key"
|
||||||
|
class="text-center"
|
||||||
>
|
>
|
||||||
<td>{{key}}</td>
|
<td class="text-left">{{key}}</td>
|
||||||
<td>
|
<td>
|
||||||
{{n.count}}
|
{{n.count}}
|
||||||
</td>
|
</td>
|
||||||
@@ -69,14 +134,14 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</v-table>
|
</v-table> -->
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { ref } from 'vue'
|
||||||
import { spravURL } from '@/utils/axios-api'
|
import { spravURL } from '@/utils/axios-api'
|
||||||
import {checkremote} from '@/utils/universal_functions'
|
import {checkremote} from '@/utils/universal_functions'
|
||||||
import listUser from '@/components/UI//fiousercard/listUser.vue'
|
import listUser from '@/components/UI//fiousercard/listUser.vue'
|
||||||
@@ -97,6 +162,91 @@ export default {
|
|||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
|
|
||||||
|
const expanded = ref([])
|
||||||
|
|
||||||
|
const dessertHeaders = [
|
||||||
|
{
|
||||||
|
title: '',
|
||||||
|
align: 'start',
|
||||||
|
sortable: false,
|
||||||
|
key: 'user.fio',
|
||||||
|
},
|
||||||
|
|
||||||
|
{ title: 'Просмотры', key: 'info.count' },
|
||||||
|
{ title: 'Сессии', key: 'info.session' },
|
||||||
|
{ title: 'Страницы', key: 'info.pages' },
|
||||||
|
]
|
||||||
|
|
||||||
|
const desserts = [
|
||||||
|
// {
|
||||||
|
// name: 'Frozen Yogurt',
|
||||||
|
// count: 5999,
|
||||||
|
// session: 21,
|
||||||
|
// pages: 56
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// name: 'Ice cream sandwich',
|
||||||
|
// count: 2,
|
||||||
|
// session: 45,
|
||||||
|
// pages: 22
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// name: 'Ice cream sandwich',
|
||||||
|
// count: 2,
|
||||||
|
// session: 45,
|
||||||
|
// pages: 22
|
||||||
|
// },
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
id:1,
|
||||||
|
user: {
|
||||||
|
login: "9966-00-001",
|
||||||
|
post: "Начальник инспекции",
|
||||||
|
fio: "Толоко Б.Б."
|
||||||
|
},
|
||||||
|
info: {
|
||||||
|
count: 253,
|
||||||
|
session: 4,
|
||||||
|
pages: 5
|
||||||
|
},
|
||||||
|
tooltip: {
|
||||||
|
namepages: {
|
||||||
|
"О портале": {
|
||||||
|
count: 241,
|
||||||
|
unic: 3
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{ id:2,
|
||||||
|
user: {
|
||||||
|
login: "9966-00-107",
|
||||||
|
post: "Старший специалист 1 разряда",
|
||||||
|
fio: "Гришина И.С."
|
||||||
|
},
|
||||||
|
info: {
|
||||||
|
count: 6010,
|
||||||
|
session: 21,
|
||||||
|
pages: 56
|
||||||
|
},
|
||||||
|
tooltip: {
|
||||||
|
namepages: {
|
||||||
|
"О портале": {
|
||||||
|
count: 71,
|
||||||
|
unic: 90
|
||||||
|
},
|
||||||
|
"Портал МИ ФНС России по ЦОД №2": {
|
||||||
|
count: 120,
|
||||||
|
unic: 27
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
const th_text = {
|
const th_text = {
|
||||||
"Просмотры": "Сколько было открыто страниц за период",
|
"Просмотры": "Сколько было открыто страниц за период",
|
||||||
"Сессии": "Сколько дней за период был посещен Портал",
|
"Сессии": "Сколько дней за период был посещен Портал",
|
||||||
@@ -106,7 +256,10 @@ export default {
|
|||||||
return {
|
return {
|
||||||
checkremote,
|
checkremote,
|
||||||
spravURL,
|
spravURL,
|
||||||
th_text
|
th_text,
|
||||||
|
expanded,
|
||||||
|
dessertHeaders,
|
||||||
|
desserts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
location="bottom"
|
location="bottom"
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<span v-bind="props">
|
<span v-bind="props" class="cursor-help">
|
||||||
{{text}}
|
{{text}}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -166,7 +166,7 @@
|
|||||||
<v-img
|
<v-img
|
||||||
cover
|
cover
|
||||||
|
|
||||||
class=" pointer"
|
class=" cursor-pointer"
|
||||||
:src="`${burl}${e.img}`"
|
:src="`${burl}${e.img}`"
|
||||||
@click="openImg(e.id)"
|
@click="openImg(e.id)"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-row no-gutters class="flex-column gap ma-1">
|
<v-row no-gutters class="flex-column gap ma-1">
|
||||||
<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=2 class="bg-blue">
|
||||||
{{format1(previous.start)}} - {{format1(previous.end)}}
|
{{format1(previous.start)}} - {{format1(previous.end)}}
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<v-col lg=2 class="bg-green">
|
<v-col lg=2 class="bg-green">
|
||||||
visiting- (все данные)
|
visiting- (все данные)
|
||||||
|
|
||||||
<my-helper :pretext="visiting"/>
|
<!-- <my-helper :pretext="visiting"/> -->
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col lg=4 class="d-flex flex-column">
|
<v-col lg=4 class="d-flex flex-column">
|
||||||
<rating-page :pages_count=pages_count />
|
<rating-page :pages_count=pages_count />
|
||||||
@@ -235,6 +235,7 @@ setup(){
|
|||||||
const dataLineChart = ref({})
|
const dataLineChart = ref({})
|
||||||
const dataActivusers = ref({})
|
const dataActivusers = ref({})
|
||||||
const dataTopUser = ref({})
|
const dataTopUser = ref({})
|
||||||
|
const dataTopUsers = ref([])
|
||||||
|
|
||||||
const previous = ref({start: new Date(), end: new Date()})
|
const previous = ref({start: new Date(), end: new Date()})
|
||||||
const selected_days = ref({today: 'сегодня', year: {start: new Date(), end: new Date()}})
|
const selected_days = ref({today: 'сегодня', year: {start: new Date(), end: new Date()}})
|
||||||
@@ -277,6 +278,7 @@ setup(){
|
|||||||
let lineCharts = {}
|
let lineCharts = {}
|
||||||
let activusers = {}
|
let activusers = {}
|
||||||
let top_user = {}
|
let top_user = {}
|
||||||
|
let top_users = []
|
||||||
// let portal_traffic = {
|
// let portal_traffic = {
|
||||||
// now: {
|
// now: {
|
||||||
// title: '',
|
// title: '',
|
||||||
|
|||||||
Reference in new issue
Block a user