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] = [];