Теперь нормально отрисовать

This commit is contained in:
iriska-gri committed 2024-01-16 16:43:16 +03:00
1 parent 21fc9d67c6
commit 98715ab87f
3 files changed
+30 -24

No files matched your search

@@ -21,17 +21,13 @@
<top-user
name= "Самый активный критик"
:users=crit
ico="mdi-comment-account-outline"
/>
</v-col>
{{total}}
{{crit}}
</v-row>
@@ -26,10 +26,10 @@
</v-list-item>
</v-card-actions></v-col>
<v-col class="align-self-center text-right">
<v-col class="align-self-center text-left">
<v-icon
color="teal-darken-3"
icon="mdi-comment-account-outline"
color="blue-grey-lighten-1"
:icon="ico"
size="45"
></v-icon>
<span class="subheading text-h6 me-5 pl-3">{{users.count}}</span>
@@ -44,26 +44,31 @@ import { spravURL } from '@/utils/axios-api'
import {checkremote} from '@/utils/universal_functions'
export default {
props: {
name: {
type: String,
default: ''
},
users: {
type: Object,
default: {}
},
},
users: {
type: Object,
default: {}
},
ico: {
type: String,
default: 'mdi-emoticon-poop'
}
},
setup() {
return {
return {
checkremote,
spravURL,
}
}
}
}
</script>
+12 -7
View File
@@ -48,7 +48,7 @@
<v-col class="d-flex flex-column ">
<v-row>
<v-col
lg=8
lg=7
>
@@ -75,13 +75,16 @@
</v-col>
<v-col class="bg-black">
<v-col lg=5>
<div v-for="(val, key) in activuser()" :key = key>
<top-user :users=val/>
<top-user
:users="val"
:ico="icons[Object.keys(activuser()).indexOf(key)]"
/>
</div>
@@ -136,6 +139,7 @@ setup(){
const crit = ref([])
const startdate =ref(moment(new Date(new Date().getFullYear(), 0, 1)).format('YYYY-MM-DD'))
const endate =ref(moment(new Date(new Date().getFullYear(), 11, 31)).format('YYYY-MM-DD'))
const icons = ['mdi-numeric-1-box-outline', 'mdi-numeric-2-box-outline', 'mdi-numeric-3-box-outline']
const arrlines = {}
@@ -308,7 +312,7 @@ setup(){
const groupedData =
visiting.value.reduce((acc, item) => {
if (Object.keys(acc).length <4) {
if (Object.keys(acc).length <3) {
@@ -363,7 +367,8 @@ setup(){
returnstart,
returnend,
endate,
startdate
startdate,
icons
}
}