uu
This commit is contained in:
parent
396e61fc0f
commit
26e4b368c9
@ -36,6 +36,7 @@ export default {
|
||||
imgRes: {},
|
||||
prtQueList: [],
|
||||
lastExeMark: undefined,
|
||||
prtLoading: false,
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
@ -89,11 +90,16 @@ export default {
|
||||
this.prtQueList.push(obj)
|
||||
clearTimeout(this.lastExeMark)
|
||||
this.lastExeMark = setTimeout(()=> {
|
||||
// if(this.prtLoading) {
|
||||
// showToast('当前有打印任务未结束,请稍后再试')
|
||||
// return false
|
||||
// }
|
||||
this.finallyExecPrint()
|
||||
}, 500)
|
||||
},
|
||||
|
||||
async finallyExecPrint() {
|
||||
this.prtLoading = true
|
||||
let conSta = await this.$refs.curBlueTooth.autoConnect()
|
||||
this.$emit('autoConnectCallback', conSta)
|
||||
|
||||
@ -107,9 +113,9 @@ export default {
|
||||
this.prtQueList[i] = undefined // 打印成功 清除当前数据
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
this.prtQueList = []
|
||||
this.prtLoading = false
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user