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