From 7b0413ef4d8229954a3fefd2179882c60059eb6f Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:17:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=20=D1=82=D0=B5=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/UI/aboutportal/line-chart.vue | 12 +++ .../components/UI/aboutportal/rating-page.vue | 97 +++++++++++++------ .../components/UI/aboutportal/top-user.vue | 27 +++--- src/front/src/views/AboutPortalPage.vue | 2 + 4 files changed, 94 insertions(+), 44 deletions(-) diff --git a/src/front/src/components/UI/aboutportal/line-chart.vue b/src/front/src/components/UI/aboutportal/line-chart.vue index 630e6910e..17f41b07e 100644 --- a/src/front/src/components/UI/aboutportal/line-chart.vue +++ b/src/front/src/components/UI/aboutportal/line-chart.vue @@ -51,6 +51,17 @@ export default { customlabel: [], tooltips: true } + , + // { + // label: 'CRR', + // backgroundColor: 'blue', + // borderColor: 'blue', + // borderWidth: 3, + // cubicInterpolationMode: 'monotone', + // data: [], + // customlabel: [], + // tooltips: true + // } ] } arrforline() @@ -124,6 +135,7 @@ export default { // }, {}) Object.entries(props.dataLineChart).forEach(e => { + console.log(e,' e'); const [key, value] = e arrlines.value.datasets[0].data.push(value.count) arrlines.value.datasets[1].data.push(value.unic.length) diff --git a/src/front/src/components/UI/aboutportal/rating-page.vue b/src/front/src/components/UI/aboutportal/rating-page.vue index 380d9eb83..5c23f409f 100644 --- a/src/front/src/components/UI/aboutportal/rating-page.vue +++ b/src/front/src/components/UI/aboutportal/rating-page.vue @@ -8,7 +8,7 @@ fixed-header density="comfortable" hover - class="cursor-default h-0 " + class="cursor-default h-0 text-caption" > @@ -34,47 +34,69 @@ :key="key" > + {{key}} - - - + + @@ -160,10 +160,11 @@ export default { maxWidth: '60%', minWidth: '60%', }, - { title: 'всего', align: 'center', key: 'count', width: '20%', maxWidth: '20%' - }, + { title: 'уникальных', align: 'center', key: 'unic', width: '20%', maxWidth: '20%' }, + { title: 'всего', align: 'center', key: 'count', width: '20%', maxWidth: '20%' + }, ] @@ -209,7 +210,5 @@ export default { text-align: start!important; } -.table_top_user .v-data-table__td { - padding: 0!important; -} + \ No newline at end of file diff --git a/src/front/src/views/AboutPortalPage.vue b/src/front/src/views/AboutPortalPage.vue index 27d8e3963..64bb08634 100644 --- a/src/front/src/views/AboutPortalPage.vue +++ b/src/front/src/views/AboutPortalPage.vue @@ -17,11 +17,13 @@ + +