Отрисовка таблицы
This commit is contained in:
1 parent
c59147d41c
commit
00e905b5f0
3 files changed
+55
-9
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<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-col class="d-flex flex-column">
|
||||
<v-chip
|
||||
@@ -26,8 +26,21 @@
|
||||
density="compact"
|
||||
|
||||
>
|
||||
|
||||
<template v-slot:expanded-row="{ columns, item }">
|
||||
<template v-slot:item.user="{ value }">
|
||||
<!-- <v-chip
|
||||
color="grey-darken-2"
|
||||
density="compact"
|
||||
variant="text"
|
||||
> -->
|
||||
<!-- <v-icon start icon="mdi-label"></v-icon> -->
|
||||
<!-- {{ value }} -->
|
||||
<list-user
|
||||
:author=value
|
||||
:from_which = "'top-user'"
|
||||
/>
|
||||
<!-- </v-chip> -->
|
||||
</template>
|
||||
<template v-slot:expanded-row="{ columns, item }">
|
||||
<tr>
|
||||
<td :colspan="columns.length">
|
||||
<v-card class="my-2 elevation-5" >
|
||||
@@ -105,12 +118,13 @@ export default {
|
||||
title: '',
|
||||
align: 'start',
|
||||
sortable: false,
|
||||
key: 'user.fio',
|
||||
key: 'user',
|
||||
minWidth: '180'
|
||||
},
|
||||
|
||||
{ title: 'Просмотры', align: 'start', key: 'info.count' },
|
||||
{ title: 'Сессии', align: 'start', key: 'info.session' },
|
||||
{ title: 'Страницы', align: 'start', key: 'info.pages' },
|
||||
{ title: 'Просмотры', align: 'start', key: 'info.count', maxWidth: '10' },
|
||||
{ title: 'Сессии', align: 'start', key: 'info.session', maxWidth: '10' },
|
||||
{ title: 'Страницы', align: 'start', key: 'info.pages',maxWidth: '10' },
|
||||
|
||||
|
||||
]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-list-item class="pl-4 h-100 text-left pa-2" @click="open=true">
|
||||
<v-list-item v-if="from_which=='dialog-search'" class="pl-4 h-100 text-left pa-2" @click="open=true">
|
||||
<template v-slot:prepend>
|
||||
<v-avatar
|
||||
color="grey-darken-3"
|
||||
@@ -14,6 +14,37 @@
|
||||
{{author.post}}
|
||||
</v-list-item-subtitle>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item v-if="from_which=='top-user'" class="h-100 text-left pa-2 pl-0" @click="open=true">
|
||||
<v-chip
|
||||
class="cursor-pointer pa-0"
|
||||
variant='text'
|
||||
label
|
||||
color="grey-darken-3"
|
||||
size="small"
|
||||
>
|
||||
<v-avatar
|
||||
color="grey-darken-3"
|
||||
:image="checkremote( `${spravURL}${author.login}.jpg`)"
|
||||
class="mr-2"
|
||||
/>
|
||||
{{author.fio}}
|
||||
</v-chip>
|
||||
<!-- <template v-slot:prepend>
|
||||
<v-avatar
|
||||
color="grey-darken-3"
|
||||
:image="checkremote( `${spravURL}${author.login}.jpg`)"
|
||||
/>
|
||||
</template>
|
||||
<v-list-item-title :class="style_item_title()">
|
||||
{{author.fio}}
|
||||
</v-list-item-title>
|
||||
<v-list-item-subtitle :class="style_item_subtitle()">
|
||||
{{author.post}}
|
||||
</v-list-item-subtitle> -->
|
||||
</v-list-item>
|
||||
|
||||
|
||||
<info-user-card
|
||||
:opendialog = open
|
||||
:loging="author.login"
|
||||
|
||||
@@ -28,7 +28,8 @@
|
||||
</v-card-title>
|
||||
<v-card-text
|
||||
@click="detailRound(x.position, x.position__name)"
|
||||
class="numstyle mt-2 py-0 font-weight-bold pointer bg-black_and_white"
|
||||
class="numstyle mt-2 py-0 font-weight-bold cursor-
|
||||
pointer bg-black_and_white"
|
||||
>
|
||||
|
||||
<vue3-autocounter
|
||||
|
||||
Reference in new issue
Block a user