From 0cd692627d274be3bdf80b24ea4be9842cdd191b Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 09 May 2025 09:57:13 +0800
Subject: [PATCH] 个人工作台相关处理
---
src/views/wel/components/calendarBox.vue | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/src/views/wel/components/calendarBox.vue b/src/views/wel/components/calendarBox.vue
index aea2ade..92e4549 100644
--- a/src/views/wel/components/calendarBox.vue
+++ b/src/views/wel/components/calendarBox.vue
@@ -56,19 +56,13 @@
}
if (newV && oldV) {
- const newDate = dayjs(newV);
+ const newDate = dayjs(newV);
const oldDate = dayjs(oldV);
-
- // 格式化为 YYYY-MM-DD HH:mm:ss
- const newDateStr = newDate.format('YYYY-MM-DD HH:mm:ss');
- const oldDateStr = oldDate.format('YYYY-MM-DD HH:mm:ss');
- params.
- console.log('新日期:', newDateStr, '旧日期:', oldDateStr);
if (newDate.isBefore(oldDate, 'month')) {
- console.log('点击了上个月',newDateStr);
+ console.log('点击了上个月');
} else if (newDate.isAfter(oldDate, 'month')) {
- console.log('点击了下个月',newDateStr);
+ console.log('点击了下个月');
}
}
},
@@ -95,7 +89,7 @@
};
// 获取对应日期的事件
const getEvents = dateString => {
- // console.log('000',dateString);
+ // console.log('000',dateString);
return events.value[dateString] || [];
};
--
Gitblit v1.9.3