Сатитистика

This commit is contained in:
iriska-gri committed 2024-01-25 10:58:38 +03:00
1 parent e8a839854e
commit e0693c0d88
5 files changed
+9 -17

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "front",
"version": "0.0.44",
"version": "0.0.45",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "front",
"version": "0.0.44",
"version": "0.0.45",
"dependencies": {
"@mdi/font": "7.0.96",
"@vuelidate/core": "^2.0.3",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "front",
"version": "0.0.44",
"version": "0.0.45",
"scripts": {
"dev": "vite",
"build": "vite build",
@@ -59,7 +59,7 @@ export default {
}
},
setup(props, context) {
setup(props, {emit}) {
const total = ref(0)
const crit = ref({count:0, login: 0, fio: '', post: '', info: [], total: 0})
@@ -127,11 +127,9 @@ export default {
total,
crit
}
}
}
}
</script>
<style>
+2 -9
View File
@@ -115,7 +115,7 @@
:label="modelrating?'уникальные':'всего'"
/>
</v-col>
<v-col class="ml-n7">
<v-col class="ml-n7 pt-2">
Рейтинг посещаемости страниц портала
</v-col>
</v-row>
@@ -347,11 +347,7 @@ setup(){
const groupedData =
visiting.value.reduce((acc, item) => {
// if (Object.keys(acc).length <3) {
if (!acc[splitname(item.author)]) {
acc[splitname(item.author)] = {count: 0, login: '', fio: '', post: '', info: new Set()}
}
@@ -368,10 +364,7 @@ setup(){
return acc
}, {})
// .sort((a, b) => console.log(b.count- a.count) )
// const sorted = groupedData
const sorted = Object.entries(groupedData)
.sort(([,a],[,b]) => (b.count - a.count))