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

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

No files matched your search

@@ -1,6 +1,6 @@
<template>
<v-row>
<v-col>
<v-col class="flex-column d-flex">
<v-card :title="name" class="text-center" >
<v-card-text >
<v-row >
@@ -1,29 +1,38 @@
<template>
<v-row >
<v-col>
<v-col class="d-flex flex-column">
<card-total
name="Всего поставлено оценок"
:total="total"
/>
<v-divider/>
<v-row>
<v-col>
<v-card class="pa-3">
<star-like
:criteria=average()
:rating=average()
/>
</v-card>
<v-divider/>
</v-col>
</v-row>
<card-total
name="Всего оставлено комментариев"
:total="crit.total"
/>
<v-divider/>
<v-row>
<v-col>
<top-user
name= "Самый активный критик"
:users=crit
ico="mdi-comment-account-outline"
/>
</v-col>
</v-row>
</v-col>
@@ -57,7 +66,12 @@ export default {
type: Array,
default: () => []
},
},
name: {
type: String,
default: ''
}
},
@@ -1,14 +1,15 @@
<template>
<v-card
class="mx-auto"
class="mx-auto h-100"
>
<v-card-text class="text-h5 pb-2 pt-6">
<v-card-text class="text-h5 pa-1 pl-5 flex-wrap align-center d-flex justify-space-between">
{{name}}
<v-icon
color="blue-grey-lighten-1"
:icon="ico"
size="45"
></v-icon>
</v-card-text>
<v-row>
<v-col lg=8> <v-card-actions>
@@ -27,11 +28,7 @@
</v-list-item>
</v-card-actions></v-col>
<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>
</v-col>
</v-row>
+2 -2
View File
@@ -88,7 +88,7 @@ export default {
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 {
align-items: center;
.v-field__prepend-inner {
align-items: center!important;
}
</style>
@@ -1,7 +1,8 @@
<template>
<div>
<v-row
<v-row>
<v-col class="d-flex flex-column">
<v-row
v-for="(x, key) in criteria"
:key = key
>
@@ -12,11 +13,11 @@
:icon="x.ico"
/>
</v-col>
<v-col class="pb-0" lg=3>
<v-col class="pb-0" lg=4>
{{x.name}}
</v-col>
<v-col class="py-0">
<v-col class="py-0" lg=3>
<v-rating
v-model="message[key].rating"
:hover="typeof(key) == 'number'"
@@ -26,7 +27,10 @@
</v-col>
<v-divider/>
</v-row >
</div>
</v-col>
</v-row>
</template>
+42 -19
View File
@@ -13,14 +13,14 @@
color="cyan-darken-3"
/>
</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>
<v-col class="flex-grow-0 px-2 pt-4">
<date-select
@returndate="returnstart"
:datedefault = "startdate"
@returndate="returnstart"
:datedefault = "startdate"
/>
</v-col>
<v-col class="flex-grow-0 px-1">
@@ -28,8 +28,8 @@
</v-col>
<v-col class="flex-grow-0 px-2 pt-4">
<date-select
@returndate="returnend"
:datedefault = "endate"
@returndate="returnend"
:datedefault = "endate"
/>
</v-col>
</v-row>
@@ -37,11 +37,11 @@
</v-col>
</v-row>
<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-col
lg=3
class="px-1 pt-1"
class=""
>
<v-card
class="d-flex flex-column text-center"
@@ -49,7 +49,7 @@
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>
Посетителей сегодня: {{ countvising['now'] }}
</v-list-item>
@@ -62,7 +62,7 @@
</v-list>
</v-card>
</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"
height="200px"
>
@@ -72,24 +72,47 @@
</v-row>
</v-col>
</v-row>
<v-row>
<v-col class="bg-blue d-flex flex-column">
<v-row >
<v-col class="pa-1 d-flex flex-column">
<v-row>
<v-col
class="bg-green"
lg=4
lg=3
>
1
<feedmodul
:feedback="feedback"/>
</v-col>
<v-col class="d-flex flex-column">
<v-col class=" d-flex flex-column">
<v-row>
<v-col>
1
<v-col class="d-flex flex-column">
<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-row>
<v-row class="flex-grow-0">
<v-col class="bg-yellow">
2
<v-col class="" v-for="(val, key) in activuser()" :key = key>
<top-user
:users="val"
:ico="icons[Object.keys(activuser()).indexOf(key)]"
name="Активность"
/>
</v-col>
</v-row>
</v-col>