From b565414c0ddd5e96a5e1fda078b9cf0ea06d9788 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Mon, 28 Oct 2024 15:53:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E3=80=90=E6=95=B0=E6=8D=AE=E6=BA=90?= =?UTF-8?q?=E3=80=91=E6=95=B0=E6=8D=AE=E6=BA=90=E5=88=97=E8=A1=A8=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../datasource/server/DatasourceServer.java | 5 ++++- .../views/visualized/data/datasource/index.vue | 16 ++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/core/core-backend/src/main/java/io/dataease/datasource/server/DatasourceServer.java b/core/core-backend/src/main/java/io/dataease/datasource/server/DatasourceServer.java index 2f789541d9..3e5a9c76cd 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/server/DatasourceServer.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/server/DatasourceServer.java @@ -1155,8 +1155,11 @@ public class DatasourceServer implements DatasourceApi { if (!Arrays.asList("API", "Excel", "folder").contains(coreDatasource.getType())) { calciteProvider.updateDsPoolAfterCheckStatus(datasourceDTO); } + } catch (DEException e) { + datasourceDTO.setStatus("Error"); + DEException.throwException(e.getMessage()); } catch (Exception e) { - coreDatasource.setStatus("Error"); + datasourceDTO.setStatus("Error"); DEException.throwException(e.getMessage()); } finally { coreDatasource.setStatus(datasourceDTO.getStatus()); diff --git a/core/core-frontend/src/views/visualized/data/datasource/index.vue b/core/core-frontend/src/views/visualized/data/datasource/index.vue index 9e9085ad50..6fc1407f2d 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/index.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/index.vue @@ -380,7 +380,6 @@ const initSearch = () => { state.filterTable = tableData.value.filter(ele => ele.tableName.toLowerCase().includes(nickName.value.toLowerCase()) ) - console.log(tableData.value) state.paginationConfig.total = state.filterTable.length } @@ -867,7 +866,6 @@ const operation = (cmd: string, data: Tree, nodeType: string) => { } const handleClick = (tabName: TabPaneName) => { - console.log(tabName) switch (tabName) { case 'config': listDatasourceTables({ datasourceId: nodeInfo.id }).then(res => { @@ -1091,8 +1089,22 @@ const getMenuList = (val: boolean) => { :title="node.label" class="label-tooltip ellipsis" :class="data.type === 'Excel' && 'excel'" + v-if="data.extraFlag > -1" >{{ node.label }} + + {{ node.label }} +