From 288343cedeebf0ffa3523c3e1cc87cfc4efd4e09 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 28 Dec 2023 09:33:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=86=85?= =?UTF-8?q?/=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E5=86=85=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BB=AA=E8=A1=A8=E6=9D=BF/=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E5=90=8D=E7=A7=B0-=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/components/dashboard/DbToolbar.vue | 2 +- .../src/components/data-visualization/DvToolbar.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/DbToolbar.vue b/core/core-frontend/src/components/dashboard/DbToolbar.vue index 616799591f..bcdab267b6 100644 --- a/core/core-frontend/src/components/dashboard/DbToolbar.vue +++ b/core/core-frontend/src/components/dashboard/DbToolbar.vue @@ -66,7 +66,7 @@ const closeEditCanvasName = () => { return } if (inputName.value.trim().length > 64 || inputName.value.trim().length < 2) { - ElMessage.warning('名称字段长度不能2-64个字符') + ElMessage.warning('名称字段长度2-64个字符') editCanvasName() return } diff --git a/core/core-frontend/src/components/data-visualization/DvToolbar.vue b/core/core-frontend/src/components/data-visualization/DvToolbar.vue index d81e98b940..5e1d99f82e 100644 --- a/core/core-frontend/src/components/data-visualization/DvToolbar.vue +++ b/core/core-frontend/src/components/data-visualization/DvToolbar.vue @@ -34,7 +34,7 @@ const closeEditCanvasName = () => { return } if (inputName.value.trim().length > 64 || inputName.value.trim().length < 2) { - ElMessage.warning('名称字段长度不能2-64个字符') + ElMessage.warning('名称字段长度2-64个字符') editCanvasName() return } From df08a6eab89d35fdd0486594ba743362e32ee9b9 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 28 Dec 2023 09:48:16 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20API=E6=95=B0=E6=8D=AE=E6=BA=90?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=A1=A8=E8=AF=B7=E6=B1=82=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E5=A1=AB=E6=BB=A1=E5=90=8E=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E4=B8=80=E6=9D=A1=E5=8F=82=E6=95=B0=E6=97=A0=E6=B3=95=E5=88=A0?= =?UTF-8?q?=E9=99=A4=20#7336?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/visualized/data/datasource/form/ApiVariable.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/ApiVariable.vue b/core/core-frontend/src/views/visualized/data/datasource/form/ApiVariable.vue index f5361fd9b0..cd20f02212 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/ApiVariable.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/ApiVariable.vue @@ -63,7 +63,7 @@ const typeChange = item => { } const remove = (index: number) => { - if (isDisable(index)) return + if (isDisable()) return // 移除整行输入控件及内容 parameters.value.splice(index, 1) } @@ -77,8 +77,8 @@ const change = () => { }) ) } -const isDisable = (index: number) => { - return parameters.value.length - 1 === index +const isDisable = () => { + return parameters.value.length === 1 } const querySearch = (queryString, cb) => { const results = queryString @@ -169,7 +169,7 @@ const createFilter = (queryString: string) => { - +