Browse Source

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

* commit '2360100483b43cb5a4cb5d9ce6b57115f521df7d':
  fix: BI-52258 修复复制数据连接时的bug
qufenxi
alan 5 years ago
parent
commit
39c2f4376a
  1. 1
      src/modules/pages/maintain/forms/form.model.ts
  2. 1
      src/modules/pages/maintain/forms/form.ts

1
src/modules/pages/maintain/forms/form.model.ts

@ -31,6 +31,7 @@ export class MaintainFormModel extends Model<{
return; return;
} }
this.model.pageIndex = PAGE_INDEX.CONNECTION; this.model.pageIndex = PAGE_INDEX.CONNECTION;
this.model.isCopy = false;
}); });
}, },
updateConnection: (name: string, data: Connection) => { updateConnection: (name: string, data: Connection) => {

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

@ -37,7 +37,6 @@ export class MaintainForm extends BI.Widget {
form.connectionId = this.connectionName; form.connectionId = this.connectionName;
this.store.addConnection(form); this.store.addConnection(form);
} }
this.store.setIsCopy(false);
}, },
testEvent: () => { testEvent: () => {
const value = this.form.getSubmitValue(); const value = this.form.getSubmitValue();

Loading…
Cancel
Save