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)=>{