From c5aaad5dcaa3d87b4adf5cce9c87cefc7dfc8777 Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Thu, 22 Feb 2024 09:41:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D0=B5=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=B3=D1=80=D0=B0=D1=84=D0=B8=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/views/AboutPortalPage.vue | 27 +++++++++++++++---------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/front/src/views/AboutPortalPage.vue b/src/front/src/views/AboutPortalPage.vue index 7589c0add..69d22b365 100644 --- a/src/front/src/views/AboutPortalPage.vue +++ b/src/front/src/views/AboutPortalPage.vue @@ -18,7 +18,7 @@ - + @@ -172,15 +172,14 @@ setup(){ const groupUser = user.reduce((acc, item) => { if (item.visitdate <= formatDash(filterStore.date_period.enddate)) { - funyearpages(yearpages, item) - checking_for_entry(pages, item.pages) - - acc['id'] = item.author.id - acc['login'] = item.author.login - acc['post'] = item.author.post - acc['fio'] = splitname(item.author) - acc['count'] += item.count - acc['session'] = Object.keys(yearpages).length + funyearpages(yearpages, item) + checking_for_entry(pages, item.pages) + acc['id'] = item.author.id + acc['login'] = item.author.login + acc['post'] = item.author.post + acc['fio'] = splitname(item.author) + acc['count'] += item.count + acc['session'] = Object.keys(yearpages).length } return acc }, {count: 0}) @@ -253,7 +252,7 @@ setup(){ const groupedData = data.reduce((acc, item) => { - + if (!acc[item.pages]) { acc[item.pages] = { now: @@ -312,9 +311,15 @@ setup(){ pages_count.value.data= data_collection(visiting.value, lineCharts) + Object.entries(lineCharts).map(e=> { + lineCharts[e[0]].crr = dataChart.value[e[0]].crr + lineCharts[e[0]].br = dataChart.value[e[0]].br + lineCharts[e[0]].ppv = dataChart.value[e[0]].ppv + }) dataLineChart.value = lineCharts + } watch(()=>filterStore.date_period,(newValue,oldValue)=>{