From 5e08ce8c1f403f4aed9ecc12b0261bd00543d2e5 Mon Sep 17 00:00:00 2001 From: sichan Date: Mon, 17 Jun 2024 23:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=86=E9=80=9A=E7=94=A8ex?= =?UTF-8?q?cel=E4=B8=8A=E4=BC=A0=E8=A7=A3=E6=9E=90=E5=92=8C=E4=BF=9D?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/excel_preview_table.html | 64 +++++++++++++++++-- excel_parser/urls.py | 3 +- excel_parser/utils.py | 60 +++++++++++++++++ excel_parser/views.py | 40 +++++++++++- static/js/custom.js | 8 +++ templates/items_list.html | 2 + 6 files changed, 169 insertions(+), 8 deletions(-) create mode 100644 excel_parser/utils.py create mode 100644 static/js/custom.js diff --git a/excel_parser/templates/excel_preview_table.html b/excel_parser/templates/excel_preview_table.html index 0b5139a..0f912ef 100644 --- a/excel_parser/templates/excel_preview_table.html +++ b/excel_parser/templates/excel_preview_table.html @@ -40,16 +40,21 @@ th { background-color: #f2f2f2; } + .error-cell { + background-color: #f8d7da; /* 红色背景 */ + border-color: #f5c2c7; /* 红色边框 */ + } +