Browse Source

Pull request #2735: DEC-20201 fix: 【迭代】【驱动管理】切换为自定义驱动,已经填好的数据库信息不会保存

Merge in DEC/decision-webui-dcm from ~DAILER/decision-webui-dcm:feature/10.0 to feature/10.0

* commit 'cfe65b0254978fc4cc63f865caeaabed0ba002f9':
  DEC-20201 fix: 【迭代】【驱动管理】切换为自定义驱动,已经填好的数据库信息不会保存
feature/10.0
Dailer 3 years ago
parent
commit
f271d81bf6
  1. 2
      src/modules/pages/maintain/forms/components/form.jdbc.ts

2
src/modules/pages/maintain/forms/components/form.jdbc.ts

@ -148,7 +148,7 @@ export class FormJdbc extends BI.Widget {
const value = this.form.driver.getValue();
const connectionData = this.options.formData.connectionData as ConnectionJDBC;
const connectionType = getJdbcDatabaseType(connectionData.database, connectionData.driver);
const url = connectionType.urls ? connectionType.urls[value.driver] : connectionType.url;
const url = (connectionType.urls && connectionType.urls[value.driver]) || connectionType.url;
this.form.url.setValue(url);
const urlInfo = resolveUrlInfo(url, connectionData.database);
this.form.host.setValue(urlInfo.host);

Loading…
Cancel
Save