增加提示

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
+1
View File
@@ -57,6 +57,7 @@ export default {
that.$notify({ that.$notify({
title: '温馨提示:' + currentTime, title: '温馨提示:' + currentTime,
duration: 0, duration: 0,
showClose: false,
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
message: `<div class="notify_text">${val.confirm}</div><div class="notify_btns"><div class="notify_btn notify_btn2" id="notifyAgain" data-type="continue_task">重试</div></div>`, message: `<div class="notify_text">${val.confirm}</div><div class="notify_btns"><div class="notify_btn notify_btn2" id="notifyAgain" data-type="continue_task">重试</div></div>`,
onClick(event) { onClick(event) {
+35
View File
@@ -482,6 +482,17 @@ export default {
} }
this.default_cd = data.strongList this.default_cd = data.strongList
this.printer_info = { ...data } 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, deep: true,
immediate: true immediate: true
@@ -854,6 +865,18 @@ export default {
}) })
return 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.isNew = true
that.workShow = true that.workShow = true
that.$nextTick(() => { that.$nextTick(() => {
@@ -869,6 +892,18 @@ export default {
}) })
return return
} }
if (that.printer_info.is_set_cddev == 1) {
this.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
that.goSet('/manage')
}).catch(() => {
});
return
}
that.isNew = false that.isNew = false
dialog dialog
.showOpenDialog({ .showOpenDialog({