топ пользователей

This commit is contained in:
iriska-gri committed 2024-02-02 11:12:40 +03:00
1 parent da23c0b58b
commit 3449115b82
3 files changed
+44 -22

No files matched your search

@@ -1,6 +1,7 @@
<template> <template>
<v-card class="text-center h-100 d-flex flex-column" > <v-card class="text-center h-100 d-flex flex-column" >
<v-card-title> <v-card-title>
<v-row no-gutters> <v-row no-gutters>
<v-col lg=2> <v-col lg=2>
<v-switch <v-switch
@@ -43,8 +44,23 @@
:tooltip = val.year.unique :tooltip = val.year.unique
/> />
</tr> </tr>
<tr
v-for="(val, key) in pages_count.data"
:key="key"
>
<td>{{key}}</td>
<td-tooltip
:number = modelrating?val.now.unique.length:val.now.countall
:tooltip = val.now.unique
/>
<td-tooltip
:number = modelrating?val.year.unique.length:val.year.countall
:tooltip = val.year.unique
/>
</tr>
</tbody> </tbody>
</v-table> </v-table>
</v-col> </v-col>
</v-row> </v-row>
</v-card> </v-card>
@@ -76,7 +92,7 @@ export default {
</script> </script>
<style> <style>
.v-table { .v-table {
flex: 1!important; flex: 1!important;
} }
@@ -2,8 +2,9 @@
<v-card <v-card
class="mx-auto" height="150px" class="mx-auto" height="150px"
> >
<my-helper :pretext="name"/>
<!-- <v-card-text class="text-h5 pa-2 pl-5 flex-wrap align-center d-flex justify-space-between"> <my-helper :pretext="users"/>
<v-card-text class="text-h5 pa-2 pl-5 flex-wrap align-center d-flex justify-space-between">
{{name}} {{name}}
<v-icon <v-icon
@@ -35,7 +36,7 @@
</v-col> </v-col>
</v-row> </v-row>
</v-card-text> --> </v-card-text>
</v-card> </v-card>
</template> </template>
+23 -18
View File
@@ -19,29 +19,35 @@
</v-col> </v-col>
<v-col lg=5 class="bg-red d-flex flex-column"> <v-col lg=5 class="bg-red d-flex flex-column">
<rating-page :pages_count=pages_count /> <rating-page :pages_count=pages_count />
</v-col> </v-col>
<v-col class="overflow-auto bg-yellow"> <v-col class="d-flex flex-column bg-yellow">
<v-card height=550> <v-row class=" overflow-auto h-0">
2 <v-col>
<div v-for="x in dataActivusers" :key="x" > <v-card class="text-center h-100 ">
{{x}} <div v-for="(x, key) in dataActivusers" :key="key" >
<top-user
<!-- <top-user :users = x
:users = x :name= key
/> --> />
</div> </div>
</v-card> </v-card>
<!-- :users="val" </v-col>
:ico="icons[Object.keys(activuser()).indexOf(key)]" </v-row>
name="Активность" --> <!-- -->
<!-- <div v-for="x in dataActivusers" :key="x" > <!--
> -->
<!-- <div v-for="(x, key) in dataActivusers" :key="key" >
{{x}}
<top-user <top-user
:users = x :users = x
:name= key
/> />
</div> --> </div> -->
<!-- {{dataActivusers}} --> <!-- </v-card> -->
</v-col> </v-col>
<v-col class="bg-red">4 </v-col> <v-col class="bg-red">4 </v-col>
</v-row> </v-row>
@@ -318,8 +324,7 @@ setup(){
} }
activusers[splitname(item.author)].session[item.visitdate].pages[item.pages].count = item.count activusers[splitname(item.author)].session[item.visitdate].pages[item.pages].count = item.count
console.log(activusers, item, 'activusers');
//
// Данные для таблицы по страницам // Данные для таблицы по страницам
if (!acc[item.pages]) { if (!acc[item.pages]) {