diff --git a/assets/image_20260713141839035.png b/assets/image_20260713141839035.png new file mode 100644 index 0000000..bf18832 Binary files /dev/null and b/assets/image_20260713141839035.png differ diff --git a/templates/index.html b/templates/index.html index 9c19b51..4c9e688 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2174,6 +2174,16 @@ resultDiv.innerHTML = html; } + // 批量下载历史记录 + async function batchDownloadHistory() { + const checkboxes = document.querySelectorAll('.history-checkbox:checked'); + if (checkboxes.length === 0) { + alert('请至少选择一条记录'); + return; + } + + const ids = Array.from(checkboxes).map(cb => parseInt(cb.value)); + // 逐个下载 ids.forEach(id => { window.open(`/api/download?id=${id}`, '_blank');