Теперь нормально отрисовать
This commit is contained in:
1 parent
21fc9d67c6
commit
98715ab87f
3 files changed
+28
-22
No files matched your search
@@ -21,17 +21,13 @@
|
|||||||
<top-user
|
<top-user
|
||||||
name= "Самый активный критик"
|
name= "Самый активный критик"
|
||||||
:users=crit
|
:users=crit
|
||||||
|
ico="mdi-comment-account-outline"
|
||||||
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{total}}
|
|
||||||
{{crit}}
|
|
||||||
|
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,10 +26,10 @@
|
|||||||
|
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-card-actions></v-col>
|
</v-card-actions></v-col>
|
||||||
<v-col class="align-self-center text-right">
|
<v-col class="align-self-center text-left">
|
||||||
<v-icon
|
<v-icon
|
||||||
color="teal-darken-3"
|
color="blue-grey-lighten-1"
|
||||||
icon="mdi-comment-account-outline"
|
:icon="ico"
|
||||||
size="45"
|
size="45"
|
||||||
></v-icon>
|
></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>
|
||||||
@@ -44,26 +44,31 @@ import { spravURL } from '@/utils/axios-api'
|
|||||||
import {checkremote} from '@/utils/universal_functions'
|
import {checkremote} from '@/utils/universal_functions'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
name: {
|
name: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
users: {
|
|
||||||
type: Object,
|
users: {
|
||||||
default: {}
|
type: Object,
|
||||||
},
|
default: {}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
ico: {
|
||||||
|
type: String,
|
||||||
|
default: 'mdi-emoticon-poop'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
checkremote,
|
checkremote,
|
||||||
spravURL,
|
spravURL,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
<v-col class="d-flex flex-column ">
|
<v-col class="d-flex flex-column ">
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col
|
<v-col
|
||||||
lg=8
|
lg=7
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
||||||
@@ -75,13 +75,16 @@
|
|||||||
|
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="bg-black">
|
<v-col lg=5>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div v-for="(val, key) in activuser()" :key = key>
|
<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>
|
</div>
|
||||||
|
|
||||||
@@ -136,6 +139,7 @@ setup(){
|
|||||||
const crit = ref([])
|
const crit = ref([])
|
||||||
const startdate =ref(moment(new Date(new Date().getFullYear(), 0, 1)).format('YYYY-MM-DD'))
|
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 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 = {}
|
const arrlines = {}
|
||||||
@@ -308,7 +312,7 @@ setup(){
|
|||||||
const groupedData =
|
const groupedData =
|
||||||
visiting.value.reduce((acc, item) => {
|
visiting.value.reduce((acc, item) => {
|
||||||
|
|
||||||
if (Object.keys(acc).length <4) {
|
if (Object.keys(acc).length <3) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -363,7 +367,8 @@ setup(){
|
|||||||
returnstart,
|
returnstart,
|
||||||
returnend,
|
returnend,
|
||||||
endate,
|
endate,
|
||||||
startdate
|
startdate,
|
||||||
|
icons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user