Browse Source

Merge pull request #3241 in DEC/decision-webui-dcm from feature/10.0 to feature/x

* commit '3c27f8b197e88ad63491db32bdb3b2349ccd63ec':
  BI-95685 fix: 平台复制链接时需要重建 identity
feature/x
superman 3 years ago
parent
commit
655f229251
  1. 9
      src/modules/pages/maintain/forms/form.ts

9
src/modules/pages/maintain/forms/form.ts

@ -139,9 +139,12 @@ export class MaintainForm extends BI.Widget {
this.isEdit = true; this.isEdit = true;
this.connectionName = this.model.connectionSelectedOne.connectionName; this.connectionName = this.model.connectionSelectedOne.connectionName;
const connection = BI.clone(this.model.connectionSelectedOne); const connection = BI.clone(this.model.connectionSelectedOne);
const { database, driver } = connection.connectionData as ConnectionJDBC; connectionData = connection.connectionData as ConnectionJDBC;
(connection.connectionData as ConnectionJDBC).database = getJdbcDatabaseType(database, driver).databaseType; const { database, driver } = connectionData;
connectionData.database = getJdbcDatabaseType(database, driver).databaseType;
if (this.model.isCopy) {
connectionData.identity = BI.UUID();
}
return connection; return connection;
} }

Loading…
Cancel
Save