diff --git a/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java b/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java index 8374ee78e4..04ca8792c4 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/provider/CalciteProvider.java @@ -352,6 +352,9 @@ public class CalciteProvider extends Provider { case redshift: configuration = JsonUtil.parseObject(coreDatasource.getConfiguration(), Redshift.class); break; + case h2: + configuration = JsonUtil.parseObject(coreDatasource.getConfiguration(), H2.class); + break; case ck: configuration = JsonUtil.parseObject(coreDatasource.getConfiguration(), CK.class); break; diff --git a/core/core-frontend/src/views/system/parameter/engine/EngineEdit.vue b/core/core-frontend/src/views/system/parameter/engine/EngineEdit.vue index 4f0f2f584a..adb8741530 100644 --- a/core/core-frontend/src/views/system/parameter/engine/EngineEdit.vue +++ b/core/core-frontend/src/views/system/parameter/engine/EngineEdit.vue @@ -60,6 +60,13 @@ const configRules = { trigger: 'blur' } ], + 'configuration.jdbc': [ + { + required: true, + message: t('datasource.please_input_jdbc_url'), + trigger: 'blur' + } + ], 'configuration.extraParams': [ { required: false, @@ -135,6 +142,7 @@ const defaultInfo = { fileName: '', configuration: { host: '', + jdbc: '', port: 8081, dataBase: '', username: '', @@ -282,14 +290,33 @@ defineExpose({ /> - + + + + - +