Отрисовка таблицы
This commit is contained in:
1 parent
c59147d41c
commit
00e905b5f0
3 files changed
+54
-8
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-card class="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">
|
||||||
<v-chip
|
<v-chip
|
||||||
@@ -26,7 +26,20 @@
|
|||||||
density="compact"
|
density="compact"
|
||||||
|
|
||||||
>
|
>
|
||||||
|
<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 }">
|
<template v-slot:expanded-row="{ columns, item }">
|
||||||
<tr>
|
<tr>
|
||||||
<td :colspan="columns.length">
|
<td :colspan="columns.length">
|
||||||
@@ -105,12 +118,13 @@ export default {
|
|||||||
title: '',
|
title: '',
|
||||||
align: 'start',
|
align: 'start',
|
||||||
sortable: false,
|
sortable: false,
|
||||||
key: 'user.fio',
|
key: 'user',
|
||||||
|
minWidth: '180'
|
||||||
},
|
},
|
||||||
|
|
||||||
{ title: 'Просмотры', align: 'start', key: 'info.count' },
|
{ title: 'Просмотры', align: 'start', key: 'info.count', maxWidth: '10' },
|
||||||
{ title: 'Сессии', align: 'start', key: 'info.session' },
|
{ title: 'Сессии', align: 'start', key: 'info.session', maxWidth: '10' },
|
||||||
{ title: 'Страницы', align: 'start', key: 'info.pages' },
|
{ title: 'Страницы', align: 'start', key: 'info.pages',maxWidth: '10' },
|
||||||
|
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<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>
|
<template v-slot:prepend>
|
||||||
<v-avatar
|
<v-avatar
|
||||||
color="grey-darken-3"
|
color="grey-darken-3"
|
||||||
@@ -14,6 +14,37 @@
|
|||||||
{{author.post}}
|
{{author.post}}
|
||||||
</v-list-item-subtitle>
|
</v-list-item-subtitle>
|
||||||
</v-list-item>
|
</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
|
<info-user-card
|
||||||
:opendialog = open
|
:opendialog = open
|
||||||
:loging="author.login"
|
:loging="author.login"
|
||||||
|
|||||||
@@ -28,7 +28,8 @@
|
|||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text
|
<v-card-text
|
||||||
@click="detailRound(x.position, x.position__name)"
|
@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
|
<vue3-autocounter
|
||||||
|
|||||||
Reference in new issue
Block a user