diff --git a/src/modules/pages/maintain/forms/form.ts b/src/modules/pages/maintain/forms/form.ts index 3214c1e..704be55 100644 --- a/src/modules/pages/maintain/forms/form.ts +++ b/src/modules/pages/maintain/forms/form.ts @@ -31,6 +31,8 @@ export class MaintainForm extends BI.Widget { if (this.connectionName && !this.model.isCopy) { const value = this.form.getSubmitValue(); (value.connectionData as ConnectionJDBC).creator = BI.get(this.getFormData(), 'creator'); + // DEC-10155 为了适配插件的数据连接,在外层也加一个creator字段 + value.creator = BI.get(this.getFormData(), 'creator'); this.store.updateConnection(this.connectionName, value).then(result => { if (result.errorCode) { this.showError(result); @@ -42,6 +44,8 @@ export class MaintainForm extends BI.Widget { } else { const form = this.form.getSubmitValue(); form.connectionId = this.connectionName; + // DEC-10155 为了适配插件的数据连接,在外层也加一个creator字段 + form.creator = Dec ? Dec.personal.username : ''; this.store.addConnection(form).then(result => { if (result.errorCode) { this.showError(result);