弹窗优化,设置盘仓优化
This commit is contained in:
@@ -424,7 +424,8 @@ export default {
|
||||
showAll: false,
|
||||
workShow: false,
|
||||
isNew: true,
|
||||
saveWorkList: {}
|
||||
saveWorkList: {},
|
||||
is_set_cddev: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -482,15 +483,18 @@ export default {
|
||||
}
|
||||
this.default_cd = data.strongList
|
||||
this.printer_info = { ...data }
|
||||
if (that.printer_info.is_set_cddev == 1) {
|
||||
if (this.printer_info.is_set_cddev == 1) {
|
||||
if (this.is_set_cddev) return
|
||||
this.is_set_cddev = true
|
||||
this.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.is_set_cddev = false
|
||||
this.goSet('/manage')
|
||||
}).catch(() => {
|
||||
|
||||
this.is_set_cddev = false
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -535,10 +539,10 @@ export default {
|
||||
'$store.state.chat.isConnect': {
|
||||
handler(val) {
|
||||
if (val) {
|
||||
this.$message({
|
||||
message: '服务已连接',
|
||||
type: 'success'
|
||||
})
|
||||
// this.$message({
|
||||
// message: '服务已连接',
|
||||
// type: 'success'
|
||||
// })
|
||||
this.serviceLoading = false
|
||||
}
|
||||
this.isConnect = val
|
||||
@@ -866,14 +870,17 @@ export default {
|
||||
return
|
||||
}
|
||||
if (that.printer_info.is_set_cddev == 1) {
|
||||
this.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
|
||||
if (that.is_set_cddev) return
|
||||
that.is_set_cddev = true
|
||||
that.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
that.is_set_cddev = false
|
||||
that.goSet('/manage')
|
||||
}).catch(() => {
|
||||
|
||||
that.is_set_cddev = false
|
||||
});
|
||||
return
|
||||
}
|
||||
@@ -893,14 +900,17 @@ export default {
|
||||
return
|
||||
}
|
||||
if (that.printer_info.is_set_cddev == 1) {
|
||||
this.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
|
||||
if (that.is_set_cddev) return
|
||||
that.is_set_cddev = true
|
||||
that.$confirm('上下光驱未设置,请前往设置', '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
that.is_set_cddev = false
|
||||
that.goSet('/manage')
|
||||
}).catch(() => {
|
||||
|
||||
that.is_set_cddev = false
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user