From da9c6af0e74323cd1dd59ae7b8ef3b9fb71d5465 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Mon, 25 Nov 2024 11:48:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90API=E6=95=B0=E6=8D=AE=E6=BA=90?= =?UTF-8?q?=E3=80=91API=E6=95=B0=E6=8D=AE=E6=BA=90=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BB=E9=94=AE=E6=97=B6=EF=BC=8C=E5=BF=85?= =?UTF-8?q?=E9=A1=BB=E8=AE=BE=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 | 3 --- .../visualized/data/datasource/form/ApiHttpRequestDraw.vue | 3 ++- 2 files changed, 2 insertions(+), 4 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 b8ae99d1ea..f7393748cf 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 @@ -335,9 +335,6 @@ public class ExcelUtils { Double d = Double.valueOf(value); double eps = 1e-10; if (d - Math.floor(d) < eps) { - if (value.length() > 1 && value.startsWith("0")) { - return "TEXT"; - } return "LONG"; } else { return "DOUBLE"; diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue b/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue index f43363b95c..7dc1fba8c2 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue @@ -291,6 +291,7 @@ const saveItem = () => { for (let i = 0; i < apiItem.fields.length; i++) { if (apiItem.fields[i].primaryKey && !apiItem.fields[i].length) { ElMessage.error(t('datasource.primary_key_length') + apiItem.fields[i].name) + return } } } @@ -769,7 +770,7 @@ defineExpose({ step-strictly class="text-left edit-all-line" :min="1" - :max="4096" + :max="512" :placeholder="t('common.inputText')" controls-position="right" type="number"