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 @@ - +