From 0001ef8ccdf2ea6f4fbc2ee84abc2bdbc94116dd Mon Sep 17 00:00:00 2001 From: taojinlong Date: Mon, 6 Jan 2025 12:40:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A1=8C=E9=9D=A2=E7=89=88=E5=AF=BC?= =?UTF-8?q?=E5=85=A5excel=EF=BC=8C=E4=B8=8D=E5=B1=95=E7=A4=BA=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=AD=97=E6=AE=B5=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/dataease/datasource/provider/ExcelUtils.java | 4 ---- .../src/views/visualized/data/datasource/form/ExcelDetail.vue | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java b/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java index 780ce51064..61df60cb5d 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/provider/ExcelUtils.java @@ -345,10 +345,6 @@ public class ExcelUtils { if (StringUtils.isEmpty(value) || value.length() > 19) { return "TEXT"; } - String numberFormatRegex = "^[1-9]\\d*$"; - if (!value.matches(numberFormatRegex)) { - return "TEXT"; - } String regex = "^-?\\d+(\\.\\d+)?$"; if (!value.matches(regex)) { return "TEXT"; diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/ExcelDetail.vue b/core/core-frontend/src/views/visualized/data/datasource/form/ExcelDetail.vue index 274c97e2a7..7050c265d6 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/ExcelDetail.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/ExcelDetail.vue @@ -723,7 +723,7 @@ defineExpose({