From 46e26fb13812aba322b37fbb9799de147e9fe297 Mon Sep 17 00:00:00 2001 From: XaoLi717 <144221124+XaoLi717@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E5=AF=BC=E6=97=A5=E7=A8=8B=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home/hygl/index.ts | 2 +- src/views/Home/hygl/hyinfo/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/home/hygl/index.ts b/src/api/home/hygl/index.ts index b766729..bb32574 100644 --- a/src/api/home/hygl/index.ts +++ b/src/api/home/hygl/index.ts @@ -8,7 +8,7 @@ export interface HyglVO { userId: number // 申请人id deptName: string // 申请部门名字 deptId: number // 申请部门id - time: Date // 申请时间 + time: number // 申请时间 depict: string // 描述 type: number // 会议类型 theme: string // 会议主题 diff --git a/src/views/Home/hygl/hyinfo/index.vue b/src/views/Home/hygl/hyinfo/index.vue index 24baaa7..9bb391f 100644 --- a/src/views/Home/hygl/hyinfo/index.vue +++ b/src/views/Home/hygl/hyinfo/index.vue @@ -121,7 +121,7 @@ const queryParamsHygl = reactive({ userId: undefined, deptName: undefined, deptId: undefined, - time: [], + time: [] as string[], depict: undefined, type: undefined, theme: undefined, @@ -150,7 +150,7 @@ const getList = async () => { listHygl.value = hyglData.list for(let item of listHygl.value){ - const formattedDate = formatDate2(item.createTime); + const formattedDate = formatDate2(item.time); // 如果 holidays2[formattedDate] 不存在或不是数组,初始化为数组 if (!Array.isArray(holidays2[formattedDate])) { holidays2[formattedDate] = [];