До бновления vuetyfy
This commit is contained in:
1 parent
8fd7e98e7e
commit
40b686182b
8 files changed
+182
-201
No files matched your search
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<v-card class="text-center h-100 d-flex flex-column" >
|
||||
<v-card-title>
|
||||
|
||||
<v-row no-gutters>
|
||||
<v-col lg=2>
|
||||
<v-switch
|
||||
@@ -18,13 +17,18 @@
|
||||
</v-card-title>
|
||||
<v-divider/>
|
||||
<v-row class="overflow-auto h-0">
|
||||
|
||||
<v-col class="d-flex flex-column">
|
||||
<v-table fixed-header
|
||||
<v-table
|
||||
fixed-header
|
||||
height="0"
|
||||
hover
|
||||
class="pointer"
|
||||
|
||||
>
|
||||
<thead>
|
||||
<tr class="text-uppercase">
|
||||
<th>Имя страницы</th>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th class="text-center"> на {{pages_count.title.today}} </th>
|
||||
<th class="text-center">с {{pages_count.title.year.start}} по {{pages_count.title.year.end}}</th>
|
||||
</tr>
|
||||
@@ -36,16 +40,53 @@
|
||||
>
|
||||
<td>{{key}}</td>
|
||||
<td>
|
||||
<tooltip-number
|
||||
:number = modelrating?val.now.unique.length:val.now.countall
|
||||
:tooltip = val.now.unique
|
||||
/>
|
||||
<tooltip-text
|
||||
v-if="val.now.unique.length>0"
|
||||
:text="modelrating?val.now.unique.length:val.now.countall"
|
||||
>
|
||||
<template v-slot:tooltip >
|
||||
|
||||
<v-row
|
||||
no-gutters v-for="n in val.now.unique"
|
||||
:key="n"
|
||||
>
|
||||
<v-col >
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</tooltip-text>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<tooltip-number
|
||||
|
||||
|
||||
|
||||
<tooltip-text
|
||||
v-if="val.year.unique.length>0"
|
||||
:text="modelrating?val.year.unique.length:val.year.countall"
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
|
||||
<v-row
|
||||
no-gutters v-for="n in val.year.unique"
|
||||
:key="n"
|
||||
>
|
||||
<v-col>
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</tooltip-text>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
<!-- <tooltip-number
|
||||
:number = modelrating?val.year.unique.length:val.year.countall
|
||||
:tooltip = val.year.unique
|
||||
/>
|
||||
/> -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -59,11 +100,11 @@
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import tooltipNumber from '@/components/UI/tooltip-number.vue'
|
||||
|
||||
import TooltipText from '@/components/UI/tooltip-text.vue'
|
||||
export default {
|
||||
|
||||
components: { tooltipNumber },
|
||||
components: { TooltipText },
|
||||
|
||||
props: {
|
||||
pages_count: {
|
||||
|
||||
@@ -1,136 +1,93 @@
|
||||
<template>
|
||||
<v-table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th v-for="(n, key) in th_text" :key="key">
|
||||
<tooltip-text
|
||||
:text="key"
|
||||
:tooltip="n"
|
||||
/>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="(user, key) in activusers"
|
||||
:key="key"
|
||||
style="height:100px"
|
||||
>
|
||||
<td>
|
||||
<list-user
|
||||
:author=user.user
|
||||
:from_which = "'top-user'"
|
||||
/>
|
||||
</td>
|
||||
|
||||
<td
|
||||
v-for="(val, key) in user.info"
|
||||
:key="key"
|
||||
class="text-center subheading pa-0 text-subtitle-2 font-weight-medium"
|
||||
>
|
||||
|
||||
<span v-if="(key!='session')">
|
||||
{{val}}
|
||||
</span>
|
||||
|
||||
<tooltip-text
|
||||
v-if="(key=='session')"
|
||||
:text = val
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
<v-table
|
||||
density="compact"
|
||||
style="background:transparent; color:white"
|
||||
<v-card class="text-center h-100 d-flex flex-column" >
|
||||
<v-row no-gutters class="overflow-auto h-0">
|
||||
<v-col>
|
||||
<v-table hover>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th v-for="(n, key) in th_text" :key="key">
|
||||
<tooltip-text
|
||||
:text="key"
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
{{n}}
|
||||
</template>
|
||||
</tooltip-text>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="(user, key) in activusers"
|
||||
:key="key"
|
||||
style="height:75px"
|
||||
>
|
||||
<thead>
|
||||
|
||||
Сколько было посещено раз страниц за выбранный период (всего/уникальные)
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<td class="pa-0 pl-1">
|
||||
<list-user
|
||||
:author=user.user
|
||||
:from_which = "'top-user'"
|
||||
/>
|
||||
</td>
|
||||
<td
|
||||
v-for="(val, key) in user.info"
|
||||
:key="key"
|
||||
class="text-center subheading pa-0 text-subtitle-2 font-weight-medium"
|
||||
>
|
||||
<span v-if="(key!='session')">
|
||||
{{val}}
|
||||
</span>
|
||||
<tooltip-text
|
||||
v-if="(key=='session')"
|
||||
:text = val
|
||||
>
|
||||
<template v-slot:tooltip>
|
||||
<v-table
|
||||
density="compact"
|
||||
style="background:transparent; color:white"
|
||||
>
|
||||
<thead class="font-italic">
|
||||
Количество посещенных страниц за выбранный период (всего/уникальные)
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="(n, key) in user.tooltip.namepages"
|
||||
:key="key"
|
||||
v-for="(n, key) in user.tooltip.namepages"
|
||||
:key="key"
|
||||
>
|
||||
<td>{{key}}</td>
|
||||
<td>
|
||||
{{n.count}}
|
||||
</td>
|
||||
<td>
|
||||
{{n.unic}}
|
||||
</td>
|
||||
<td>{{key}}</td>
|
||||
<td>
|
||||
{{n.count}}
|
||||
</td>
|
||||
<td>
|
||||
{{n.unic}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</v-table>
|
||||
<!-- <v-row
|
||||
no-gutters v-for="(n, key) in user.tooltip.namepages"
|
||||
:key="key"
|
||||
>
|
||||
<v-col>
|
||||
{{key}}
|
||||
{{n.count}}/{{n.unic}}
|
||||
</v-col>
|
||||
</v-row> -->
|
||||
</template>
|
||||
</tooltip-text>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</v-table>
|
||||
<!-- <v-card class="text-center h-100">
|
||||
<my-helper :pretext="activusers"/>
|
||||
<v-btn density="comfortable" icon="$vuetify" @click="$emit('sortcount')"></v-btn>
|
||||
<v-btn density="comfortable" icon="$vuetify"></v-btn>
|
||||
<div v-for="(user, key) in activusers" :key="key" >
|
||||
|
||||
<v-card
|
||||
class="mx-auto"
|
||||
height="100px"
|
||||
>
|
||||
|
||||
|
||||
|
||||
<v-divider/>
|
||||
<v-card-text class="pa-0 d-flex flex-column h-100">
|
||||
<v-row no-gutters>
|
||||
<v-col lg=8 class="align-self-center">
|
||||
<list-user :author=user.user />
|
||||
</v-col>
|
||||
<v-col class="pt-8 text-center">
|
||||
<span class="subheading text-h6" v-for="(x, key) in user.info" :key="key">
|
||||
{{x}}
|
||||
|
||||
</span>
|
||||
|
||||
</tbody>
|
||||
</v-table>
|
||||
</template>
|
||||
</tooltip-text>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</v-table>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
|
||||
</v-card>
|
||||
</div>
|
||||
</v-card> -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import { spravURL } from '@/utils/axios-api'
|
||||
import {checkremote} from '@/utils/universal_functions'
|
||||
import listUser from '@/components/UI//fiousercard/listUser.vue'
|
||||
import TooltipNumber from '@/components/UI/tooltip-number.vue'
|
||||
import TooltipText from '@/components/UI/tooltip-text.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
listUser,
|
||||
TooltipNumber,
|
||||
TooltipText
|
||||
listUser
|
||||
},
|
||||
|
||||
props: {
|
||||
|
||||
|
||||
activusers: {
|
||||
type: Object,
|
||||
default: {}
|
||||
@@ -138,24 +95,20 @@ export default {
|
||||
|
||||
},
|
||||
|
||||
setup(props) {
|
||||
setup() {
|
||||
|
||||
const th_text = {
|
||||
"Просмотры": "Сколько было открыто страниц за период",
|
||||
"Сессии": "Сколько дней за период был посещен Портал",
|
||||
"Страницы": "Общее количество посещенных уникальных страниц за период",
|
||||
}
|
||||
|
||||
|
||||
|
||||
return {
|
||||
checkremote,
|
||||
spravURL,
|
||||
th_text
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,29 +1,25 @@
|
||||
<template>
|
||||
<div style="height:68%">
|
||||
|
||||
<v-list-item class="pl-4 h-100 pointer text-left" @click="open=true">
|
||||
<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"
|
||||
@update:opendialog="open = $event"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<v-list-item class="pl-4 h-100 text-left pa-2" @click="open=true">
|
||||
<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"
|
||||
@update:opendialog="open = $event"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -51,7 +47,7 @@ export default {
|
||||
|
||||
const style_item_title = () => {
|
||||
if (props.from_which=="top-user") {
|
||||
return "text-caption font-weight-medium"
|
||||
return "text-body-1 font-weight-medium"
|
||||
}
|
||||
else
|
||||
return "text-body-1 font-weight-medium pt-2"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import myHelper from '@/components/UI/my-helper';
|
||||
import InfoUserCard from '@/components/UI/infoUserCard.vue';
|
||||
import TooltipText from '@/components/UI/tooltip-text.vue'
|
||||
|
||||
export default [myHelper, InfoUserCard,]
|
||||
export default [myHelper, InfoUserCard, TooltipText, ]
|
||||
@@ -39,8 +39,7 @@ export default {
|
||||
|
||||
props: {
|
||||
pretext: {
|
||||
type:Object,
|
||||
default:()=>{}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
@@ -1,27 +1,25 @@
|
||||
<template>
|
||||
|
||||
<v-tooltip
|
||||
location="bottom"
|
||||
v-if="number>0"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props">
|
||||
{{number}}
|
||||
</span>
|
||||
</template>
|
||||
<v-row
|
||||
no-gutters v-for="n in tooltip"
|
||||
:key="n"
|
||||
>
|
||||
<v-col>
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-tooltip>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
|
||||
<v-tooltip
|
||||
location="bottom"
|
||||
v-if="number>0"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props">
|
||||
{{number}}
|
||||
</span>
|
||||
</template>
|
||||
<v-row
|
||||
no-gutters v-for="n in tooltip"
|
||||
:key="n"
|
||||
>
|
||||
<v-col>
|
||||
{{n}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-tooltip>
|
||||
<span v-else>
|
||||
0
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -20,17 +20,11 @@
|
||||
<script>
|
||||
|
||||
export default {
|
||||
|
||||
name: "TooltipText",
|
||||
props: {
|
||||
|
||||
tooltip: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
|
||||
text: {
|
||||
type: String,
|
||||
default:''
|
||||
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
@@ -1,35 +1,34 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column">
|
||||
<v-row no-gutters class="flex-column gap ma-1">
|
||||
<toolbar-filter/>
|
||||
<v-col lg=3 class="w100 pa-1">
|
||||
<v-row no-gutters class="h-100">
|
||||
<v-col lg=3 class="w100 ">
|
||||
<v-row no-gutters class="h-100 gap">
|
||||
<v-col lg=2 class="bg-blue">
|
||||
{{format1(previous.start)}} - {{format1(previous.end)}}
|
||||
</v-col>
|
||||
<v-col class="bg-yellow ">
|
||||
<v-col>
|
||||
<line-chart :dataLineChart="dataLineChart"/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-col class="w100">
|
||||
<v-row no-gutters class="h-100">
|
||||
<v-col class="w100 ">
|
||||
<v-row no-gutters class="h-100 gap">
|
||||
<v-col lg=2 class="bg-green">
|
||||
visiting- (все данные)
|
||||
|
||||
<my-helper :pretext="visiting"/>
|
||||
</v-col>
|
||||
<v-col lg=4 class="bg-red d-flex flex-column">
|
||||
<v-col lg=4 class="d-flex flex-column">
|
||||
<rating-page :pages_count=pages_count />
|
||||
|
||||
</v-col>
|
||||
<v-col lg=4 class="d-flex flex-column bg-yellow">
|
||||
<v-row no-gutters class=" overflow-auto h-0">
|
||||
<v-col>
|
||||
<v-col lg=4 class="d-flex flex-column ">
|
||||
|
||||
<top-user
|
||||
:activusers = dataTopUser
|
||||
@sortcount=sortcount
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<!-- -->
|
||||
<!--
|
||||
> -->
|
||||
|
||||
Reference in new issue
Block a user