diff --git a/backend/src/main/java/io/dataease/service/dataset/DataSetTableService.java b/backend/src/main/java/io/dataease/service/dataset/DataSetTableService.java index ea29c59d76..3e457fd9d2 100644 --- a/backend/src/main/java/io/dataease/service/dataset/DataSetTableService.java +++ b/backend/src/main/java/io/dataease/service/dataset/DataSetTableService.java @@ -2242,6 +2242,13 @@ public class DataSetTableService { if (ObjectUtils.isNotEmpty(table)) { Datasource datasource = datasourceMapper.selectByPrimaryKey(table.getDataSourceId()); Optional.ofNullable(datasource).orElse(new Datasource()).setConfiguration(null); + Collection types = datasourceService.types(); + for (DataSourceType type : types) { + if (ObjectUtils.isNotEmpty(datasource) && StringUtils.equalsIgnoreCase(datasource.getType(), type.getType())) { + datasource.setType(type.getName()); + break; + } + } dataSetDetail.setDatasource(datasource); } return dataSetDetail; diff --git a/frontend/src/views/dataset/common/DatasetChartDetail.vue b/frontend/src/views/dataset/common/DatasetChartDetail.vue index 6939cfcf54..1eae8a0fd2 100644 --- a/frontend/src/views/dataset/common/DatasetChartDetail.vue +++ b/frontend/src/views/dataset/common/DatasetChartDetail.vue @@ -27,7 +27,7 @@

{{ $t('chart.title') }}

-

{{ detail.chart.title || 'N/A' }}

+

{{ detail.chart.title || '-' }}

{{ $t('dataset.create_by') }}

@@ -113,54 +113,11 @@

{{ $t('commons.description') }}

-

{{ detail.datasource.desc || 'N/A' }}

+

{{ detail.datasource.desc || '-' }}

{{ $t('datasource.type') }}

-

MySQL

-

SQL Server

-

Oracle

-

Apache Hive

-

PostgreSQL

-

Elasticsearch

-

MariaDB

-

Doris

-

ClickHouse

-

AWS Redshift

-

MongoDB

+

{{ detail.datasource.type }}

{{ $t('dataset.create_time') }}