From cb8366e415b687222e4574fcc2b530e6aab11267 Mon Sep 17 00:00:00 2001 From: bai <1643359946@qq.com> Date: Mon, 3 Apr 2023 23:56:45 +0800 Subject: [PATCH] =?UTF-8?q?2023=E5=B9=B44=E6=9C=883=E6=97=A5=20=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dateUtil.ts | 4 +- src/views/site/common/header.vue | 21 +++++++- src/views/site/index.vue | 38 +++++++-------- src/views/site/tongJi/index.vue | 69 +++++++++++++++++++++++---- src/views/site/yuYueKeCheng/index.vue | 8 ++-- 5 files changed, 102 insertions(+), 38 deletions(-) diff --git a/src/utils/dateUtil.ts b/src/utils/dateUtil.ts index 687eb25..d20338a 100644 --- a/src/utils/dateUtil.ts +++ b/src/utils/dateUtil.ts @@ -6,11 +6,11 @@ import dayjs from 'dayjs'; const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'; const DATE_FORMAT = 'YYYY-MM-DD'; -export function formatToDateTime(date: dayjs.Dayjs | undefined = undefined, format = DATE_TIME_FORMAT): string { +export function formatToDateTime(date: dayjs.ConfigType | undefined = undefined, format = DATE_TIME_FORMAT): string { return dayjs(date).format(format); } -export function formatToDate(date: dayjs.Dayjs | undefined = undefined, format = DATE_FORMAT): string { +export function formatToDate(date: dayjs.ConfigType | undefined = undefined, format = DATE_FORMAT): string { return dayjs(date).format(format); } diff --git a/src/views/site/common/header.vue b/src/views/site/common/header.vue index 8d80788..fa99353 100644 --- a/src/views/site/common/header.vue +++ b/src/views/site/common/header.vue @@ -33,8 +33,27 @@ \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/site/index.vue b/src/views/site/index.vue index 8985e6f..4c13011 100644 --- a/src/views/site/index.vue +++ b/src/views/site/index.vue @@ -24,14 +24,23 @@ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// --> + + + + + - - - + + + + + + +