fix: 修复日报生成页面全选功能报错问题

Coze-Commit-Type: user
Coze-User-ID: 3722323274763196
Coze-Conversation-ID: 9894087
This commit is contained in:
user9994793890
2026-07-14 09:34:25 +08:00
parent e65fc5e18b
commit 42c319877c
2 changed files with 7 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@@ -17,16 +17,19 @@ async function loadGenerateConfigs() {
console.error('加载配置失败:', error);
}
}
// 全选/取消全选配置
function toggleSelectAllConfigs() {
const selectAll = document.getElementById('select-all-configs');
const checkboxes = document.querySelectorAll('.config-checkbox');
if (checkboxes.length === 0) return;
// 检查是否所有复选框都被选中
const allChecked = Array.from(checkboxes).every(cb => cb.checked);
// 切换所有复选框的状态
checkboxes.forEach(cb => {
cb.checked = selectAll.checked;
cb.checked = !allChecked;
});
}
// 设置预设时间
function setPresetTime(preset) {
const now = new Date();