From dadb0d5b344eb852fc92137d4527665d0ecacc71 Mon Sep 17 00:00:00 2001 From: alan Date: Fri, 11 Oct 2019 10:37:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=82=E9=85=8D=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E8=80=85=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/pages/maintain/forms/form.ts | 4 ++++ 1 file changed, 4 insertions(+) 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);