|
|
|
@ -17,6 +17,7 @@ |
|
|
|
import { |
|
|
|
CellActionDescriptorType, |
|
|
|
DateEntityTableColumn, |
|
|
|
EntityLinkTableColumn, |
|
|
|
EntityTableColumn, |
|
|
|
EntityTableConfig |
|
|
|
} from '@home/models/entity/entities-table-config.models'; |
|
|
|
@ -59,7 +60,7 @@ import { |
|
|
|
AlarmAssigneePanelData |
|
|
|
} from '@home/components/alarm/alarm-assignee-panel.component'; |
|
|
|
import { ComponentPortal } from '@angular/cdk/portal'; |
|
|
|
import { isDefinedAndNotNull } from '@core/utils'; |
|
|
|
import { getEntityDetailsPageURL, isDefinedAndNotNull } from '@core/utils'; |
|
|
|
import { UtilsService } from '@core/services/utils.service'; |
|
|
|
import { AlarmFilterConfig } from '@shared/models/query/query.models'; |
|
|
|
import { EntityService } from '@core/http/entity.service'; |
|
|
|
@ -113,8 +114,9 @@ export class AlarmTableConfig extends EntityTableConfig<AlarmInfo, TimePageLink> |
|
|
|
this.columns.push( |
|
|
|
new DateEntityTableColumn<AlarmInfo>('createdTime', 'alarm.created-time', this.datePipe, '150px')); |
|
|
|
this.columns.push( |
|
|
|
new EntityTableColumn<AlarmInfo>('originatorName', 'alarm.originator', '25%', |
|
|
|
(entity) => entity.originatorName, entity => ({}), false)); |
|
|
|
new EntityLinkTableColumn<AlarmInfo>('originatorName', 'alarm.originator', '25%', |
|
|
|
(entity) => entity.originatorName, |
|
|
|
(entity) => getEntityDetailsPageURL(entity.originator.id, entity.originator.entityType as EntityType))); |
|
|
|
this.columns.push( |
|
|
|
new EntityTableColumn<AlarmInfo>('type', 'alarm.type', '25%', |
|
|
|
entity => this.utilsService.customTranslation(entity.type, entity.type))); |
|
|
|
|