|
|
@@ -238,7 +238,6 @@ const toggleSelectAll = async () => {
|
|
|
|
|
|
// 处理搜索
|
|
|
const handleSearch = debounce(value => {
|
|
|
- console.log('value', value);
|
|
|
searchValue.value = value;
|
|
|
fetchDevices(value, true);
|
|
|
// updateAllDeviceIds();
|
|
|
@@ -744,11 +743,11 @@ const saveSelections = () => {
|
|
|
}
|
|
|
|
|
|
|
|
|
- console.log('合并后的日期数量:', finalDates.length);
|
|
|
- console.log('取消的日期数量:', validCanceledDates.length);
|
|
|
- console.log('cancelDtos', cancelDtos);
|
|
|
- console.log('dayDtos', dayDtos);
|
|
|
- console.log('allTimeDtos', allTimeDtos);
|
|
|
+ // console.log('合并后的日期数量:', finalDates.length);
|
|
|
+ // console.log('取消的日期数量:', validCanceledDates.length);
|
|
|
+ // console.log('cancelDtos', cancelDtos);
|
|
|
+ // console.log('dayDtos', dayDtos);
|
|
|
+ // console.log('allTimeDtos', allTimeDtos);
|
|
|
|
|
|
// 调用保存接口
|
|
|
saveDate(cancelDtos, dayDtos, allTimeDtos);
|
|
|
@@ -861,14 +860,14 @@ const handleOk = () => {
|
|
|
// 保存该日期的时间段
|
|
|
dayTimeRanges.value[currentEditDate.value] = formattedTimeRanges;
|
|
|
|
|
|
- console.log('为日期设置时间段:', currentEditDate.value, formattedTimeRanges);
|
|
|
+ // console.log('为日期设置时间段:', currentEditDate.value, formattedTimeRanges);
|
|
|
|
|
|
// 重置当前编辑的日期
|
|
|
currentEditDate.value = '';
|
|
|
} else {
|
|
|
// 如果是通过"设置时间段"按钮打开的,则只保存到全局时间段设置
|
|
|
selectedTimers.value = formattedTimeRanges;
|
|
|
- console.log('设置全局时间段:', formattedTimeRanges);
|
|
|
+ // console.log('设置全局时间段:', formattedTimeRanges);
|
|
|
}
|
|
|
|
|
|
isShowTimerRange.value = false;
|
|
|
@@ -981,7 +980,8 @@ const fetchAllDeviceIds = async () => {
|
|
|
},
|
|
|
);
|
|
|
} catch (error) {
|
|
|
- console.error('获取所有设备ID失败:', error);
|
|
|
+ // console.error('获取所有设备ID失败:', error);
|
|
|
+ loading.value = false;
|
|
|
allDeviceIds.value = [];
|
|
|
}
|
|
|
};
|