|
|
|
@ -2,7 +2,6 @@ import { shortcut, store } from '@core/core';
|
|
|
|
|
import { Right, Button, VerticalAdapt } from 'ui'; |
|
|
|
|
import { TitleMaintainModel, TitleMaintainModelXtype } from './title_maintain.model'; |
|
|
|
|
import { PAGE_INDEX } from '@constants/constant'; |
|
|
|
|
import { editStatusEvent } from '@constants/env'; |
|
|
|
|
|
|
|
|
|
export const TitleMaintain = 'dec.dcm.title.maintain'; |
|
|
|
|
@shortcut(TitleMaintain) |
|
|
|
@ -24,7 +23,7 @@ export class TitleMaintainWidget extends BI.Widget {
|
|
|
|
|
level: 'ignore', |
|
|
|
|
handler: () => { |
|
|
|
|
this.store.setPageIndex(PAGE_INDEX.CONNECTION); |
|
|
|
|
Dec ? Dec.socket.emit(editStatusEvent.SHUTDOWN, this.model.connectionSelected) : null; |
|
|
|
|
this.store.shutdownConnectionStatus(); |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
@ -40,7 +39,7 @@ export class TitleMaintainWidget extends BI.Widget {
|
|
|
|
|
text: BI.i18nText('BI-Basic_Save'), |
|
|
|
|
handler: () => { |
|
|
|
|
this.store.setSaveEvent(); |
|
|
|
|
Dec ? Dec.socket.emit(editStatusEvent.SHUTDOWN, this.model.connectionSelected) : null; |
|
|
|
|
this.store.shutdownConnectionStatus(); |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
@ -50,7 +49,7 @@ export class TitleMaintainWidget extends BI.Widget {
|
|
|
|
|
|
|
|
|
|
mounted () { |
|
|
|
|
window.onunload = () => { |
|
|
|
|
Dec ? Dec.socket.emit(editStatusEvent.SHUTDOWN, this.model.connectionSelected) : null; |
|
|
|
|
this.store.shutdownConnectionStatus(); |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|