Подтаблица

This commit is contained in:
iriska-gri committed 2024-02-06 14:51:52 +03:00
1 parent bf6907e746
commit 3089ecc289
1 file changed
+28 -11
@@ -1,5 +1,5 @@
<template>
<v-card class="text-center h-100 d-flex flex-column pa-1" >
<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">
@@ -18,11 +18,7 @@
<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>
@@ -42,6 +38,7 @@
items-per-page=-1
class="subtable"
density="compact"
:sort-by="[{ key: 'tooltip.count', order: 'desc' }]"
>
<template v-slot:item.count="{ value }">
<v-chip :color="getColor(value)" density="compact">
@@ -110,9 +107,9 @@ export default {
key: 'user.fio',
},
{ title: 'Просмотры', key: 'info.count' },
{ title: 'Сессии', key: 'info.session' },
{ title: 'Страницы', key: 'info.pages' },
{ title: 'Просмотры', align: 'end', key: 'info.count' },
{ title: 'Сессии', align: 'end', key: 'info.session' },
{ title: 'Страницы', align: 'end', key: 'info.pages' },
]
@@ -124,8 +121,8 @@ export default {
sortable: false,
key: 'namepages',
},
{ title: 'Всего', key: 'count' },
{ title: 'Уникальных', key: 'unic' },
{ title: 'Всего', align: 'end', key: 'count' },
{ title: 'Уникальных', align: 'center', key: 'unic' },
]
@@ -177,7 +174,27 @@ export default {
],
},
// { id:2,
// user: {
// login: "9966-00-107",
// post: "Старший специалист 1 разряда",
// fio: "Гришина И.С."
// },
// info: {
// count: 6010,
// session: 21,
// pages: 56
// },
// tooltip: [{
// namepages: "О портале",
// count: 241,
// unic: 3
// },
// { namepages: "Портал МИ ФНС России по ЦОД №2",
// count: 120,
// unic: 27
// }]
]