Browse Source

Merge pull request #107 in DEC/decision-webui-dcm from ~ALAN/decision-webui-dcm:feature/10.0 to release/10.0

* commit 'dadb0d5b344eb852fc92137d4527665d0ecacc71':
  fix: 适配插件创建者字段
qufenxi
alan 5 years ago
parent
commit
15ce9016af
  1. 4
      src/modules/pages/maintain/forms/form.ts

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

@ -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);

Loading…
Cancel
Save