From 3736a4dc9cd618349c25a2914a78f2a1cc2cf223 Mon Sep 17 00:00:00 2001 From: zzh Date: Fri, 21 Nov 2025 22:45:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=8E=86=E5=8F=B2=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- batch_import.py | 3 +- frontend/js/components/upload.js | 98 +++++++++++++++++--------------- server/app.py | 48 +++++++++++++--- 3 files changed, 94 insertions(+), 55 deletions(-) diff --git a/batch_import.py b/batch_import.py index 72b6a46..6b302a9 100644 --- a/batch_import.py +++ b/batch_import.py @@ -88,8 +88,7 @@ if inserted_count > 0: 'mac': sn_mac, 'batch': batch_no }) - if len(success_records) >= 10: # 只显示前10条 - break + # 移除数量限制,输出所有成功导入的记录 print(json.dumps(success_records, ensure_ascii=False)) print("=== 数据输出结束 ===") diff --git a/frontend/js/components/upload.js b/frontend/js/components/upload.js index 57e7b21..0f9f5f8 100644 --- a/frontend/js/components/upload.js +++ b/frontend/js/components/upload.js @@ -61,7 +61,7 @@ const Upload = (() => { function textarea(id,label,placeholder=''){return `
`} async function renderMac(){ - return section('MAC与批次',` + return section('MAC与批次(MAC与批次对应关系表)',`