1
This commit is contained in:
@@ -145,23 +145,23 @@ const changeSwitch = async (id: string) => {
|
||||
|
||||
const initscheduleList = () => {
|
||||
// 初始化日程列表
|
||||
list({
|
||||
startDate: startDateRef.value,
|
||||
endDate: endDateRef.value,
|
||||
}).then((res) => {
|
||||
// 获取返回结果的数据并转换为合适的格式
|
||||
reminders.value = res.data.map((item: any) => {
|
||||
return {
|
||||
key: item.id,
|
||||
highlight: {
|
||||
color: 'primary',
|
||||
fillMode: 'outline',
|
||||
},
|
||||
dates: item.scheduleDate,
|
||||
customData: item,
|
||||
};
|
||||
});
|
||||
});
|
||||
// list({
|
||||
// startDate: startDateRef.value,
|
||||
// endDate: endDateRef.value,
|
||||
// }).then((res) => {
|
||||
// // 获取返回结果的数据并转换为合适的格式
|
||||
// reminders.value = res.data.map((item: any) => {
|
||||
// return {
|
||||
// key: item.id,
|
||||
// highlight: {
|
||||
// color: 'primary',
|
||||
// fillMode: 'outline',
|
||||
// },
|
||||
// dates: item.scheduleDate,
|
||||
// customData: item,
|
||||
// };
|
||||
// });
|
||||
// });
|
||||
};
|
||||
|
||||
// 过滤日历中选中的单元格是否有日程
|
||||
|
||||
Reference in New Issue
Block a user