Browse Source

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

* commit 'f80a9fcec902257a75b790952d0608d7591484f8':
  fix: DEC-10139 页面销毁时,如果正在编辑,则向后台发送退出编辑命令。
qufenxi
alan 5 years ago
parent
commit
d14670723a
  1. 2
      src/modules/pages/connection/list/list_item/list_item.ts
  2. 1
      src/modules/pages/maintain/forms/form.model.ts
  3. 6
      src/modules/pages/maintain/forms/form.ts

2
src/modules/pages/connection/list/list_item/list_item.ts

@ -53,7 +53,7 @@ export class ListItem extends BI.BasicButton {
{
type: Label,
text: name,
width: 210,
width: 200,
textAlign: 'left',
ref: (_ref: any) => {
this.nameLabel = _ref;

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

@ -41,6 +41,7 @@ export class MaintainFormModel extends Model<{
this.model.pageIndex = PAGE_INDEX.CONNECTION;
});
},
shutdownConnectionStatus: (name: string) => api.shutdownConnectionStatus(name),
testConnection: (connection: Connection) => testConnection(connection),
setIsCopy(isCopy: boolean) {
this.model.isCopy = isCopy;

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

@ -63,6 +63,12 @@ export class MaintainForm extends BI.Widget {
};
}
beforeDestroy() {
if (this.isEdit) {
this.store.shutdownConnectionStatus(this.connectionName);
}
}
private getFormType() {
switch (this.options.connectionType) {
case connectionType.JDBC:

Loading…
Cancel
Save