|
|
|
@ -20,7 +20,7 @@ |
|
|
|
class="device-item" |
|
|
|
class="device-item" |
|
|
|
@click="showDeviceDetail(device)"> |
|
|
|
@click="showDeviceDetail(device)"> |
|
|
|
<div :class="['device-status', `status-${Number(device.health||0)}`]"></div> |
|
|
|
<div :class="['device-status', `status-${Number(device.health||0)}`]"></div> |
|
|
|
<div class="device-name">{{ device.equManuName || device.name || '未知设备' }}</div> |
|
|
|
<div class="device-name">{{ device.name || '未知设备' }}</div> |
|
|
|
<div class="device-value"> |
|
|
|
<div class="device-value"> |
|
|
|
<span :class="['health-icon', `health-${Number(device.health||0)}`]"> |
|
|
|
<span :class="['health-icon', `health-${Number(device.health||0)}`]"> |
|
|
|
{{ device.health == 1?'健康':device.health == 2?'良好':device.health == 3?'一般':device.health == 4?'需维护':'未知' }} |
|
|
|
{{ device.health == 1?'健康':device.health == 2?'良好':device.health == 3?'一般':device.health == 4?'需维护':'未知' }} |
|
|
|
|