优化bug
This commit is contained in:
@@ -162,7 +162,7 @@
|
||||
:class="{
|
||||
device_status1: printer_info.printer_status === 'I',
|
||||
device_status2: printer_info.printer_status === 'B' || printer_info.printer_status === 'P',
|
||||
device_status3: printer_info.cover_flag || printer_info.calibration_flag || printer_info.lack_ink || !isConnect || !serviceStatus
|
||||
device_status3: printer_info.lack_ink || !isConnect || !serviceStatus
|
||||
}"
|
||||
>
|
||||
<div class="device_status_dot"></div>
|
||||
@@ -548,13 +548,13 @@ export default {
|
||||
...mapGetters(['name', 'roles']),
|
||||
runText() {
|
||||
let text = this.$store.state.chat.PrinterStatus[this.printer_info.printer_status]
|
||||
if (this.printer_info.cover_flag) {
|
||||
text = '设备门盖被打开,请关闭门盖。'
|
||||
}
|
||||
if (this.printer_info.calibration_flag) {
|
||||
text = '请先校准设备'
|
||||
this.runVal = 4
|
||||
}
|
||||
// if (this.printer_info.cover_flag) {
|
||||
// text = '设备门盖被打开,请关闭门盖。'
|
||||
// }
|
||||
// if (this.printer_info.calibration_flag) {
|
||||
// text = '请先校准设备'
|
||||
// this.runVal = 4
|
||||
// }
|
||||
if (this.printer_info.lack_ink) {
|
||||
text = '缺墨警告'
|
||||
}
|
||||
@@ -622,7 +622,8 @@ export default {
|
||||
that
|
||||
.$prompt('请输入管理员密码并点击确定以执行关闭服务操作', '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消'
|
||||
cancelButtonText: '取消',
|
||||
inputType: 'password'
|
||||
})
|
||||
.then(({ value }) => {
|
||||
that.serviceLoading = true
|
||||
|
||||
Reference in New Issue
Block a user