优化bug
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<!-- 左侧 -->
|
||||
<div class="device_left">
|
||||
<div class="flex_box device_left_top">
|
||||
<img v-if="printer_info.cover_flag" class="flex_shrink device_img" src="@/assets/images/device.png" />
|
||||
<img v-if="!printer_info.cover_flag" class="flex_shrink device_img" src="@/assets/images/device.png" />
|
||||
<img v-else class="flex_shrink device_img" src="@/assets/images/device-open.png" />
|
||||
<div class="flex_box flex_row_between device_info">
|
||||
<div class="device_info_box">
|
||||
@@ -108,7 +108,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div :class="`flex_box device_status device_status${printer_info.printer_status}`">
|
||||
<div :class="`flex_box device_status device_status${printer_info.printer_status} device_status${printer_info.cover_flag}`">
|
||||
<div class="device_status_dot"></div>
|
||||
<div class="device_status_text">{{ runText }}</div>
|
||||
</div>
|
||||
@@ -375,7 +375,7 @@ export default {
|
||||
},
|
||||
'$store.state.chat.printer_info': {
|
||||
handler(val) {
|
||||
if (!val.cover_flag) {
|
||||
if (val.cover_flag) {
|
||||
this.runText = '设备门盖被打开,请关闭门盖。'
|
||||
} else {
|
||||
this.runText = this.$store.state.chat.PrinterStatus[val.printer_status]
|
||||
@@ -722,6 +722,14 @@ $red: #ff0000;
|
||||
color: $yellow;
|
||||
}
|
||||
}
|
||||
.device_statustrue {
|
||||
.device_status_dot {
|
||||
background-color: $red;
|
||||
}
|
||||
.device_status_text {
|
||||
color: $red;
|
||||
}
|
||||
}
|
||||
.device_run {
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
|
||||
Reference in New Issue
Block a user