From 59ca79a03bb925b9f8c1db59ad95abe895a28aa7 Mon Sep 17 00:00:00 2001 From: Wx-2025 <351320169@qq.com> Date: Wed, 31 Dec 2025 11:14:27 +0800 Subject: [PATCH] Update batch-filler.js --- core/table-system/batch-filler.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/table-system/batch-filler.js b/core/table-system/batch-filler.js index 935c85f..e363ed2 100644 --- a/core/table-system/batch-filler.js +++ b/core/table-system/batch-filler.js @@ -357,13 +357,22 @@ export function startBatchFilling() { currentBatch = 0; const startFloorInput = document.getElementById('floor-start-input'); - if (startFloorInput && startFloorInput.value) { + console.log('[Amily2 Debug] startFloorInput found:', !!startFloorInput); + if (startFloorInput) { + console.log('[Amily2 Debug] startFloorInput value:', startFloorInput.value); const val = parseInt(startFloorInput.value, 10); + console.log('[Amily2 Debug] Parsed val:', val, 'Threshold:', threshold); + if (!isNaN(val) && val > 1) { const startBatch = Math.ceil(val / threshold); + console.log('[Amily2 Debug] Calculated startBatch:', startBatch); currentBatch = startBatch - 1; log(`根据设定,将从第 ${startBatch} 批次(包含楼层 ${val})开始执行。`, 'info'); + } else { + console.log('[Amily2 Debug] Value is NaN or <= 1'); } + } else { + console.log('[Amily2 Debug] startFloorInput element not found'); } log(`准备开始批量填表任务,共 ${totalBatches} 个批次。`, 'info');