This commit is contained in:
parent
9171082cd9
commit
9beea63db2
|
|
@ -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) {
|
function updateTableWithImportedData(data) {
|
||||||
const tableData = table.cache.currentTableId || [];
|
const tableData = table.cache.currentTableId || [];
|
||||||
let updated = false;
|
let updated = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue