diff --git a/src/front/src/components/UI/aboutportal/feedmodul.vue b/src/front/src/components/UI/aboutportal/feedmodul.vue index 586d9676f..46700626a 100644 --- a/src/front/src/components/UI/aboutportal/feedmodul.vue +++ b/src/front/src/components/UI/aboutportal/feedmodul.vue @@ -95,7 +95,7 @@ export default { const sorted = Object.entries(topUser) .sort(([,a],[,b]) => (b.comment.textarr.length - a.comment.textarr.length)) - console.log(sorted[0],'-------------'); + dataTopUser.value = sorted[0][1] diff --git a/src/front/src/components/UI/aboutportal/line-chart.vue b/src/front/src/components/UI/aboutportal/line-chart.vue index 712dd7a56..7c1c478e0 100644 --- a/src/front/src/components/UI/aboutportal/line-chart.vue +++ b/src/front/src/components/UI/aboutportal/line-chart.vue @@ -149,11 +149,10 @@ export default { let data2 = moment(filterStore.date_period.startdate) between.value = data1.diff(data2, 'days') + 1 let res = null - console.log("sdssdss"); + if (Object.keys(props.dataLineChart).length>0){ res = arrlines res.labels=[] - // console.log(props.dataLineChart, 'uuuuuuuuuuuuuuuuuuuuuu'); for(let [key,val] of Object.entries(props.dataLineChart)) { @@ -166,7 +165,6 @@ export default { res.labels.push(formatComa(key)) } - // console.log(fullper.value,"reeeeeeee"); // console.log(res, "kdjshskjhd"); } // res.datasets[1].data=[] @@ -175,7 +173,6 @@ export default { const fullper = ref([]) const fullpercreate = () => { - console.log(props.period, 'ddddddddddddd'); let arr = [] props.period.period.forEach((e) => { let ind = arr.findIndex(el => el.visitdate == e.visitdate) @@ -203,8 +200,6 @@ export default { let baseunic = unicperson(fullper.value.filter(e => new Date(e.visitdate) >=moment(new Date(date)).subtract(between.value*2, 'd') && new Date(e.visitdate) < moment(new Date(date)).subtract(between.value, 'd'))) let crrunic = unicperson(fullper.value.filter(e => new Date(e.visitdate) >=moment(new Date(date)).subtract(between.value, 'd') && new Date(e.visitdate) < new Date(date))) let bothuser = new Set([...baseunic].filter(element => crrunic.has(element))) - // console.log(h); - console.log(baseunic, crrunic, bothuser, "date"); return parseFloat((bothuser.size*100/baseunic.size).toFixed(2)) } diff --git a/src/front/src/components/UI/aboutportal/line-chart2.vue b/src/front/src/components/UI/aboutportal/line-chart2.vue index 50ce87b0c..705680d1e 100644 --- a/src/front/src/components/UI/aboutportal/line-chart2.vue +++ b/src/front/src/components/UI/aboutportal/line-chart2.vue @@ -148,7 +148,7 @@ export default { } const arrforline=() => { - console.log(props.dataLineChart, 'props.dataLineChart'); + Object.entries(props.dataLineChart).forEach(e => { const [key, value] = e arrlines.value.datasets[0].data.push(value.count) @@ -160,7 +160,7 @@ export default { arrlines.value.datasets[1].customlabel.push(props.dataLineChart[key].unic) }) - console.log(props.dataLineChart,'dataYear2 -------------'); + } return { diff --git a/src/front/src/components/UI/aboutportal/portal-traffic.vue b/src/front/src/components/UI/aboutportal/portal-traffic.vue index ccd5120a5..bf0733664 100644 --- a/src/front/src/components/UI/aboutportal/portal-traffic.vue +++ b/src/front/src/components/UI/aboutportal/portal-traffic.vue @@ -122,13 +122,7 @@ export default { return acc }, res.period.previos) - - - - - - console.log(between, 'props.alldata') - return res + return res } }) diff --git a/src/front/src/components/UI/aboutportal/rating-page.vue b/src/front/src/components/UI/aboutportal/rating-page.vue index 5c23f409f..7b9a8caf0 100644 --- a/src/front/src/components/UI/aboutportal/rating-page.vue +++ b/src/front/src/components/UI/aboutportal/rating-page.vue @@ -4,46 +4,62 @@ :ico="'mdi-chart-bar'" > - - - - - + + + + + + + + + + + {{value}} + + + + + + + {{n}} + + + + - :label="modelrating?'Уникальные':'Всего'" - color="teal-darken-4" - - /> - - сегодня - за период - - - - - - - {{key}} - - + + + + + + + - - {{modelrating?val.now.unique.length:val.now.countall}} + + {{value}} @@ -60,67 +76,99 @@ + - - 0 - - - - - - - {{modelrating?val.year.unique.length:val.year.countall}} - - - - - - - {{n}} - - - - - - - 0 - - - - - - + + + + + + + + + +