增加提示

This commit is contained in:
24kycj
2025-02-18 17:53:51 +08:00
parent f9e31cb7f3
commit a3d2f3f1b9
2 changed files with 36 additions and 0 deletions
+35
View File
@@ -482,6 +482,17 @@ export default {
}
this.default_cd = data.strongList
this.printer_info = { ...data }
if (that.printer_info.is_set_cddev == 1) {
this.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.goSet('/manage')
}).catch(() => {
});
}
},
deep: true,
immediate: true
@@ -854,6 +865,18 @@ export default {
})
return
}
if (that.printer_info.is_set_cddev == 1) {
this.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
that.goSet('/manage')
}).catch(() => {
});
return
}
that.isNew = true
that.workShow = true
that.$nextTick(() => {
@@ -869,6 +892,18 @@ export default {
})
return
}
if (that.printer_info.is_set_cddev == 1) {
this.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
that.goSet('/manage')
}).catch(() => {
});
return
}
that.isNew = false
dialog
.showOpenDialog({