From 651a7ff52e7518bfbccf3ccf21f4eea4f507d232 Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Fri, 19 Jan 2024 10:44:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=BE=D0=B2=D0=B0=D1=8F=20=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D1=82=D0=B8=D1=81=D1=82=D0=B8=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/utils/universal_functions.js | 11 ++ src/front/src/views/AboutPortalPage.vue | 164 +++++++++++++-------- 2 files changed, 113 insertions(+), 62 deletions(-) diff --git a/src/front/src/utils/universal_functions.js b/src/front/src/utils/universal_functions.js index 003863c69..62bd1b88d 100644 --- a/src/front/src/utils/universal_functions.js +++ b/src/front/src/utils/universal_functions.js @@ -4,6 +4,17 @@ import {useAppStore} from '@/store/app' import { baseURL } from '@/utils/axios-api' import { axiosApiInstance, clearAxios } from '@/utils/axios-api' import { useRouter } from 'vue-router' +import moment from 'moment' + + + +export function format1(date) { + return moment(date).format('DD.MM.YYYY') +} + +export function format2(date) { + return moment(date).format('YYYY-MM-DD') +} export function getfromserver(path, reactive){ try{ diff --git a/src/front/src/views/AboutPortalPage.vue b/src/front/src/views/AboutPortalPage.vue index 1de3336e3..8431d1880 100644 --- a/src/front/src/views/AboutPortalPage.vue +++ b/src/front/src/views/AboutPortalPage.vue @@ -31,26 +31,64 @@ - + + + - - - - {{val[0]}} : {{val[1]}} + + Количество Посетителей + + + (уникальные/всего) + + + + + на + + {{today}} + + : {{countvising['now'][0].size}} + / {{countvising['now'][1]}} + + + с + + {{weekday[0]}} + + по + + {{weekday[1]}} + + : {{countvising['week'][0].size}} + / {{countvising['week'][1]}} + + + с + + {{year[0]}} + + по + + {{year[1]}} + + : {{countvising['year'][0].size}} + / {{countvising['year'][1]}} + - + > @@ -61,7 +99,7 @@ - +