|
@@ -54,6 +54,7 @@
|
|
|
<view class="device-header">
|
|
<view class="device-header">
|
|
|
<view class="device-name">
|
|
<view class="device-name">
|
|
|
<text>{{ device.seqName }}</text>
|
|
<text>{{ device.seqName }}</text>
|
|
|
|
|
+ <text v-if="device.hasPa" class="pa-badge">PA</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="device-status" :class="'status-' + getDeviceStatusClass(device.state)">
|
|
<view class="device-status" :class="'status-' + getDeviceStatusClass(device.state)">
|
|
|
{{ fmtDictName('WashDevice.state', device.state) }}
|
|
{{ fmtDictName('WashDevice.state', device.state) }}
|
|
@@ -306,6 +307,17 @@ const getDeviceStatusClass = (stateVal: string) => {
|
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
|
font-weight: $uni-font-weight-semibold;
|
|
font-weight: $uni-font-weight-semibold;
|
|
|
color: $uni-text-color-dark;
|
|
color: $uni-text-color-dark;
|
|
|
|
|
+
|
|
|
|
|
+ .pa-badge {
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ padding: 2rpx 10rpx;
|
|
|
|
|
+ background: #C6171E;
|
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
|
+ border-radius: 6rpx;
|
|
|
|
|
+ font-size: 20rpx;
|
|
|
|
|
+ font-weight: 700;
|
|
|
|
|
+ line-height: 1.4;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.device-status {
|
|
.device-status {
|