|
|
@ -31,6 +31,8 @@ export class MaintainForm extends BI.Widget { |
|
|
|
if (this.connectionName && !this.model.isCopy) { |
|
|
|
if (this.connectionName && !this.model.isCopy) { |
|
|
|
const value = this.form.getSubmitValue(); |
|
|
|
const value = this.form.getSubmitValue(); |
|
|
|
(value.connectionData as ConnectionJDBC).creator = BI.get(this.getFormData(), 'creator'); |
|
|
|
(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 => { |
|
|
|
this.store.updateConnection(this.connectionName, value).then(result => { |
|
|
|
if (result.errorCode) { |
|
|
|
if (result.errorCode) { |
|
|
|
this.showError(result); |
|
|
|
this.showError(result); |
|
|
@ -42,6 +44,8 @@ export class MaintainForm extends BI.Widget { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const form = this.form.getSubmitValue(); |
|
|
|
const form = this.form.getSubmitValue(); |
|
|
|
form.connectionId = this.connectionName; |
|
|
|
form.connectionId = this.connectionName; |
|
|
|
|
|
|
|
// DEC-10155 为了适配插件的数据连接,在外层也加一个creator字段
|
|
|
|
|
|
|
|
form.creator = Dec ? Dec.personal.username : ''; |
|
|
|
this.store.addConnection(form).then(result => { |
|
|
|
this.store.addConnection(form).then(result => { |
|
|
|
if (result.errorCode) { |
|
|
|
if (result.errorCode) { |
|
|
|
this.showError(result); |
|
|
|
this.showError(result); |
|
|
|