增加提示
This commit is contained in:
@@ -57,6 +57,7 @@ export default {
|
||||
that.$notify({
|
||||
title: '温馨提示:' + currentTime,
|
||||
duration: 0,
|
||||
showClose: false,
|
||||
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>`,
|
||||
onClick(event) {
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user