You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.5 KiB
27 lines
1.5 KiB
6 months ago
|
<crud-template #$crud [defination]="defination" [selectable]="false" [addable]="false" [editable]="false"
|
||
|
[deletable]="false" [api]="'monitortask'" [row-operation-template]="$operatoin" [error]="error">
|
||
|
<ng-template #$state let-row>
|
||
|
<ng-container [ngSwitch]="row.status">
|
||
|
<!-- {{row.status}} -->
|
||
|
<mat-icon *ngSwitchCase="0" class="app-foreground-secondary"
|
||
|
matTooltip="{{ 'routes.wcs.monitortask.waiting' | translate }}">watch_later</mat-icon>
|
||
|
<mat-icon *ngSwitchCase="1" class="app-foreground-accent"
|
||
|
matTooltip="{{ 'routes.wcs.monitortask.send' | translate }}">send</mat-icon>
|
||
|
<mat-icon *ngSwitchCase="2" class="app-foreground-primary"
|
||
|
matTooltip="{{ 'routes.wcs.monitortask.running' | translate }}">swap_vertical_circle</mat-icon>
|
||
|
<mat-icon *ngSwitchDefault class="app-foreground-warn"
|
||
|
matTooltip="{{ 'routes.wcs.monitortask.error' | translate }}:{{ row.deviceStatus || 'SystemError' }}">error</mat-icon>
|
||
|
</ng-container>
|
||
|
</ng-template>
|
||
|
<ng-template #$operatoin let-row>
|
||
|
<button mat-icon-button matTooltip="{{ 'routes.wcs.monitortask.ReSend' | translate }}" (click)="replay(row)">
|
||
|
<mat-icon>replay</mat-icon>
|
||
|
</button>
|
||
|
<button mat-icon-button matTooltip="{{ 'routes.wcs.monitortask.Complete' | translate }}" (click)="complete(row)">
|
||
|
<mat-icon>done_all</mat-icon>
|
||
|
</button>
|
||
|
<button mat-icon-button matTooltip="{{ 'routes.wcs.monitortask.Delete' | translate }}" (click)="delete(row)">
|
||
|
<mat-icon>delete</mat-icon>
|
||
|
</button>
|
||
|
</ng-template>
|
||
|
</crud-template>
|