|
|
|
@ -23,8 +23,8 @@
|
|
|
|
|
<!-- <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="state">设备状态</nz-form-label> --> |
|
|
|
|
<nz-form-control> |
|
|
|
|
<nz-select formControlName="state" nzPlaceHolder="请选择设备状态"> |
|
|
|
|
<nz-option [nzValue]="0" nzLabel="未连接"></nz-option> |
|
|
|
|
<nz-option [nzValue]="1" nzLabel="已连接"></nz-option> |
|
|
|
|
<nz-option [nzValue]="0" nzLabel="离线"></nz-option> |
|
|
|
|
<nz-option [nzValue]="1" nzLabel="在线"></nz-option> |
|
|
|
|
</nz-select> |
|
|
|
|
</nz-form-control> |
|
|
|
|
</nz-form-item> |
|
|
|
@ -91,7 +91,15 @@
|
|
|
|
|
(nzCheckedChange)="onItemChecked(data.id, $event)"></td> |
|
|
|
|
<td>{{ data.hostIPAddress }}</td> |
|
|
|
|
<td>{{ data.gasStationName }}</td> |
|
|
|
|
<td>{{ data.hubConnectionState == 'Disconnected' ? '未连接' : '已连接' }}</td> |
|
|
|
|
<td> |
|
|
|
|
<ng-container *ngIf="data.hubConnectionState == 'Disconnected'; else elseTemplate"> |
|
|
|
|
<span style="color: red;">离线</span> |
|
|
|
|
</ng-container> |
|
|
|
|
<ng-template #elseTemplate> |
|
|
|
|
<span style="color: rgb(52, 204, 52);">在线</span> |
|
|
|
|
</ng-template> |
|
|
|
|
|
|
|
|
|
</td> |
|
|
|
|
<!-- <td> |
|
|
|
|
<span *ngIf="data.linuxServiceState == 'Dead'">未启动</span> |
|
|
|
|
<span *ngIf="data.linuxServiceState == 'Waiting'">启动中</span> |
|
|
|
|