|
|
@ -3,6 +3,8 @@ import { shortcut, store } from '@core/core'; |
|
|
|
import { MaintainModel, MaintainModelXtype } from './maintain.model'; |
|
|
|
import { MaintainModel, MaintainModelXtype } from './maintain.model'; |
|
|
|
import { MaintainFormXtype } from './forms/form'; |
|
|
|
import { MaintainFormXtype } from './forms/form'; |
|
|
|
import { PAGE_INDEX } from '@constants/constant'; |
|
|
|
import { PAGE_INDEX } from '@constants/constant'; |
|
|
|
|
|
|
|
import { ApiFactory } from 'src/modules/crud/apiFactory'; |
|
|
|
|
|
|
|
const api = new ApiFactory().create(); |
|
|
|
import './maintain.less'; |
|
|
|
import './maintain.less'; |
|
|
|
|
|
|
|
|
|
|
|
export const MaintainXtype = 'dec.dcm.maintain'; |
|
|
|
export const MaintainXtype = 'dec.dcm.maintain'; |
|
|
@ -53,6 +55,14 @@ export class Maintain extends BI.Widget { |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
if (!api.getSocketStatus()) { |
|
|
|
|
|
|
|
BI.Msg.toast(BI.i18nText('Dec-Dcm_Socket_Unable_Connect'), { |
|
|
|
|
|
|
|
level: 'warning', |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private renderItems() { |
|
|
|
private renderItems() { |
|
|
|
const { type } = this.getEditConnection(); |
|
|
|
const { type } = this.getEditConnection(); |
|
|
|
|
|
|
|
|
|
|
|