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.
19 lines
1.2 KiB
19 lines
1.2 KiB
<crud-template #$crud [defination]="defination" [selectable]="false" [addable]="false" [editable]="false"
|
|
[deletable]="false" [api]="'handcommand'" [toolbar-buttons-template]="$handcommand" [convertor]="convertor"
|
|
[error]="error">
|
|
<ng-template #$handcommand>
|
|
<button mat-button color="primary" (click)="btnHandTask()">{{ 'routes.wcs.handcommand.save' | translate }}</button>
|
|
</ng-template>
|
|
<ng-template #$state let-row>
|
|
<ng-container [ngSwitch]="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>
|
|
</crud-template>
|