This commit is contained in:
jiang 2025-07-17 17:20:25 +08:00
parent 9171082cd9
commit 9beea63db2
1 changed files with 6 additions and 0 deletions

View File

@ -412,6 +412,12 @@ function importExcel() {
}
function sanitizeNeedNum(value) {
let num = Number(value);
if (isNaN(num) || num <= 0) return ""; // 非法输入设为空
return Math.floor(num); // 自动取整,去除小数
}
function updateTableWithImportedData(data) {
const tableData = table.cache.currentTableId || [];
let updated = false;