Подтаблица

This commit is contained in:
iriska-gri committed 2024-02-06 14:51:52 +03:00
1 parent bf6907e746
commit 3089ecc289
1 file changed
+27 -10
@@ -1,5 +1,5 @@
<template> <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"/> <my-helper :pretext="activusers"/>
<v-row no-gutters class="overflow-auto h-0"> <v-row no-gutters class="overflow-auto h-0">
<v-col class="d-flex flex-column"> <v-col class="d-flex flex-column">
@@ -18,12 +18,8 @@
<v-toolbar-title>Самые активные пользователи</v-toolbar-title> <v-toolbar-title>Самые активные пользователи</v-toolbar-title>
</v-toolbar> </v-toolbar>
</template> </template>
<!-- <template v-slot:item.user.fio="{ item }">
{{item.user.fio}}
</template> -->
<template v-slot:expanded-row="{ columns, item }"> <template v-slot:expanded-row="{ columns, item }">
<tr> <tr>
<td :colspan="columns.length"> <td :colspan="columns.length">
@@ -42,6 +38,7 @@
items-per-page=-1 items-per-page=-1
class="subtable" class="subtable"
density="compact" density="compact"
:sort-by="[{ key: 'tooltip.count', order: 'desc' }]"
> >
<template v-slot:item.count="{ value }"> <template v-slot:item.count="{ value }">
<v-chip :color="getColor(value)" density="compact"> <v-chip :color="getColor(value)" density="compact">
@@ -110,9 +107,9 @@ export default {
key: 'user.fio', key: 'user.fio',
}, },
{ title: 'Просмотры', key: 'info.count' }, { title: 'Просмотры', align: 'end', key: 'info.count' },
{ title: 'Сессии', key: 'info.session' }, { title: 'Сессии', align: 'end', key: 'info.session' },
{ title: 'Страницы', key: 'info.pages' }, { title: 'Страницы', align: 'end', key: 'info.pages' },
] ]
@@ -124,8 +121,8 @@ export default {
sortable: false, sortable: false,
key: 'namepages', key: 'namepages',
}, },
{ title: 'Всего', key: 'count' }, { title: 'Всего', align: 'end', key: 'count' },
{ title: 'Уникальных', key: 'unic' }, { title: 'Уникальных', align: 'center', key: 'unic' },
] ]
@@ -177,6 +174,26 @@ 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
// }]