Дизайн статистики

This commit is contained in:
iriska-gri committed 2024-01-17 14:20:28 +03:00
1 parent d0c8074479
commit 253530ef2e
6 files changed
+75 -37

No files matched your search

@@ -1,6 +1,6 @@
<template> <template>
<v-row> <v-row>
<v-col> <v-col class="flex-column d-flex">
<v-card :title="name" class="text-center" > <v-card :title="name" class="text-center" >
<v-card-text > <v-card-text >
<v-row > <v-row >
@@ -1,29 +1,38 @@
<template> <template>
<v-row > <v-row >
<v-col> <v-col class="d-flex flex-column">
<card-total <card-total
name="Всего поставлено оценок" name="Всего поставлено оценок"
:total="total" :total="total"
/> />
<v-divider/>
<v-row>
<v-col>
<v-card class="pa-3"> <v-card class="pa-3">
<star-like <star-like
:criteria=average() :criteria=average()
:rating=average() :rating=average()
/> />
</v-card> </v-card>
<v-divider/> </v-col>
</v-row>
<card-total <card-total
name="Всего оставлено комментариев" name="Всего оставлено комментариев"
:total="crit.total" :total="crit.total"
/> />
<v-divider/>
<v-row>
<v-col>
<top-user <top-user
name= "Самый активный критик" name= "Самый активный критик"
:users=crit :users=crit
ico="mdi-comment-account-outline" ico="mdi-comment-account-outline"
/> />
</v-col>
</v-row>
</v-col> </v-col>
@@ -57,6 +66,11 @@ export default {
type: Array, type: Array,
default: () => [] default: () => []
}, },
name: {
type: String,
default: ''
}
}, },
@@ -1,14 +1,15 @@
<template> <template>
<v-card <v-card
class="mx-auto" class="mx-auto h-100"
> >
<v-card-text class="text-h5 pa-1 pl-5 flex-wrap align-center d-flex justify-space-between">
<v-card-text class="text-h5 pb-2 pt-6">
{{name}} {{name}}
<v-icon
color="blue-grey-lighten-1"
:icon="ico"
size="45"
></v-icon>
</v-card-text> </v-card-text>
<v-row> <v-row>
<v-col lg=8> <v-card-actions> <v-col lg=8> <v-card-actions>
@@ -27,11 +28,7 @@
</v-list-item> </v-list-item>
</v-card-actions></v-col> </v-card-actions></v-col>
<v-col class="align-self-center text-left"> <v-col class="align-self-center text-left">
<v-icon
color="blue-grey-lighten-1"
:icon="ico"
size="45"
></v-icon>
<span class="subheading text-h6 me-5 pl-3">{{users.count}}</span> <span class="subheading text-h6 me-5 pl-3">{{users.count}}</span>
</v-col> </v-col>
</v-row> </v-row>
+2 -2
View File
@@ -88,7 +88,7 @@ export default {
opacity: 1; opacity: 1;
} }
.v-field.v-field--variant-underlined .v-field__append-inner, .v-field.v-field--variant-underlined .v-field__clearable, .v-field.v-field--variant-underlined .v-field__prepend-inner, .v-field.v-field--variant-plain .v-field__append-inner, .v-field.v-field--variant-plain .v-field__clearable, .v-field.v-field--variant-plain .v-field__prepend-inner { .v-field__prepend-inner {
align-items: center; align-items: center!important;
} }
</style> </style>
@@ -1,6 +1,7 @@
<template> <template>
<div>
<v-row>
<v-col class="d-flex flex-column">
<v-row <v-row
v-for="(x, key) in criteria" v-for="(x, key) in criteria"
:key = key :key = key
@@ -12,11 +13,11 @@
:icon="x.ico" :icon="x.ico"
/> />
</v-col> </v-col>
<v-col class="pb-0" lg=3> <v-col class="pb-0" lg=4>
{{x.name}} {{x.name}}
</v-col> </v-col>
<v-col class="py-0"> <v-col class="py-0" lg=3>
<v-rating <v-rating
v-model="message[key].rating" v-model="message[key].rating"
:hover="typeof(key) == 'number'" :hover="typeof(key) == 'number'"
@@ -26,7 +27,10 @@
</v-col> </v-col>
<v-divider/> <v-divider/>
</v-row > </v-row >
</div> </v-col>
</v-row>
</template> </template>
+38 -15
View File
@@ -13,7 +13,7 @@
color="cyan-darken-3" color="cyan-darken-3"
/> />
</v-col> </v-col>
<v-col class=" pr-0" >Статистика портала за период</v-col> <v-col class="pr-0" >Статистика портала за период</v-col>
<v-col class="flex-grow-0 pl-2 pr-1"> <v-col class="flex-grow-0 pl-2 pr-1">
с с
</v-col> </v-col>
@@ -37,11 +37,11 @@
</v-col> </v-col>
</v-row> </v-row>
<v-row class="flex-grow-0"> <v-row class="flex-grow-0">
<v-col class="d-flex flex-column"> <v-col class="pa-1 d-flex flex-column">
<v-row> <v-row>
<v-col <v-col
lg=3 lg=3
class="px-1 pt-1" class=""
> >
<v-card <v-card
class="d-flex flex-column text-center" class="d-flex flex-column text-center"
@@ -49,7 +49,7 @@
height="200px" height="200px"
> >
<v-list class="d-flex flex-column align-start text-subtitle-1 py-0"> <v-list class="d-flex flex-column align-start text-subtitle-1">
<v-list-item> <v-list-item>
Посетителей сегодня: {{ countvising['now'] }} Посетителей сегодня: {{ countvising['now'] }}
</v-list-item> </v-list-item>
@@ -62,7 +62,7 @@
</v-list> </v-list>
</v-card> </v-card>
</v-col> </v-col>
<v-col class="pr-0 pl-1 pt-1 pr-1"> <v-col class="">
<v-card class="d-flex flex-column text-center" <v-card class="d-flex flex-column text-center"
height="200px" height="200px"
> >
@@ -72,24 +72,47 @@
</v-row> </v-row>
</v-col> </v-col>
</v-row> </v-row>
<v-row> <v-row >
<v-col class="bg-blue d-flex flex-column"> <v-col class="pa-1 d-flex flex-column">
<v-row> <v-row>
<v-col <v-col
class="bg-green" lg=3
lg=4
> >
1 <feedmodul
:feedback="feedback"/>
</v-col> </v-col>
<v-col class="d-flex flex-column"> <v-col class=" d-flex flex-column">
<v-row> <v-row>
<v-col> <v-col class="d-flex flex-column">
1 <v-card class="text-center h-100" title="Рейтинг посещаемости страниц портала">
<v-table class="">
<thead>
<tr>
<th>Имя страницы</th>
<th class="text-center">Сегодня</th>
<th class="text-center">На прошлой неделе</th>
<th class="text-center">С начала года</th>
</tr>
</thead>
<tbody>
<tr v-for="(val, key) in countgrupp()" :key = key>
<td class="text-left">{{key}}</td>
<td class="text-center">{{ val.now }} </td>
<td class="text-center">{{ val.week }}</td>
<td class="text-center">{{ val.year }}</td>
</tr>
</tbody>
</v-table>
</v-card>
</v-col> </v-col>
</v-row> </v-row>
<v-row class="flex-grow-0"> <v-row class="flex-grow-0">
<v-col class="bg-yellow"> <v-col class="" v-for="(val, key) in activuser()" :key = key>
2 <top-user
:users="val"
:ico="icons[Object.keys(activuser()).indexOf(key)]"
name="Активность"
/>
</v-col> </v-col>
</v-row> </v-row>
</v-col> </v-col>