无人机管理后台前端(已迁走)
张含笑
2025-05-09 0cd692627d274be3bdf80b24ea4be9842cdd191b
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] || [];
};