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.
46 lines
2.5 KiB
46 lines
2.5 KiB
5 months ago
|
<crud-template #$crud [defination]="defination" [addable]="false" [api]="'devicestatus'" [selectable]="false"
|
||
|
[deletable]="false" [error]="error">
|
||
|
<!-- 设置Text只读 -->
|
||
|
<ng-template #$id let-form>
|
||
|
<mat-form-field [formGroup]="form">
|
||
|
<mat-label>{{ 'routes.wcs.devicestatus.deviceIndex' | translate }}</mat-label>
|
||
|
<input matInput formControlName="id" readonly>
|
||
|
</mat-form-field>
|
||
|
</ng-template>
|
||
|
<ng-template #$deviceName let-form>
|
||
|
<mat-form-field [formGroup]="form">
|
||
|
<mat-label>{{ 'routes.wcs.devicestatus.deviceName' | translate }}</mat-label>
|
||
|
<input matInput formControlName="deviceName" readonly>
|
||
|
</mat-form-field>
|
||
|
</ng-template>
|
||
|
<!-- 编辑时特殊处理 -->
|
||
|
<ng-template #$lockedState let-form let-data="data">
|
||
|
<mat-form-field [formGroup]="form">
|
||
|
<mat-label>{{ 'routes.wcs.devicestatus.lockedState' | translate }}</mat-label>
|
||
|
<mat-select formControlName="lockedState">
|
||
|
<mat-option [value]="data.lockedState" *ngIf="data.lockedState">{{data.lockedState}}</mat-option>
|
||
|
<mat-option [value]="0">{{ 'routes.wcs.devicestatus.ready' | translate }}</mat-option>
|
||
|
<mat-option [value]="-1">{{ 'routes.wcs.devicestatus.Forbidden' | translate }}</mat-option>
|
||
|
</mat-select>
|
||
|
</mat-form-field>
|
||
|
</ng-template>
|
||
|
<ng-template #$errorCode let-form let-data="data">
|
||
|
<mat-form-field [formGroup]="form">
|
||
|
<mat-label>{{ 'routes.wcs.devicestatus.errorCode' | translate }}</mat-label>
|
||
|
<mat-select formControlName="errorCode">
|
||
|
<mat-option [value]="data.errorCode" *ngIf="data.errorCode">{{data.errorCode}}</mat-option>
|
||
|
<mat-option [value]="0">{{ 'routes.wcs.devicestatus.normal' | translate }}</mat-option>
|
||
|
</mat-select>
|
||
|
</mat-form-field>
|
||
|
</ng-template>
|
||
|
<ng-template #$manTaskReserve let-form let-data="data">
|
||
|
<mat-form-field [formGroup]="form">
|
||
|
<mat-label>{{ 'routes.wcs.devicestatus.manTaskReserve' | translate }}</mat-label>
|
||
|
<mat-select formControlName="manTaskReserve">
|
||
|
<mat-option [value]="data.manTaskReserve"
|
||
|
*ngIf="data.manTaskReserve">{{data.manTaskReserve}}</mat-option>
|
||
|
<mat-option [value]="0">{{ 'routes.wcs.devicestatus.ready' | translate }}</mat-option>
|
||
|
</mat-select>
|
||
|
</mat-form-field>
|
||
|
</ng-template>
|
||
|
</crud-template>
|