uu
This commit is contained in:
parent
26e4b368c9
commit
ca2d3aab31
@ -32,7 +32,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
prtPercentage: 0, // 打印进度
|
prtPercentage: 0, // 打印进度
|
||||||
paperWidth: 480,
|
paperWidth: 560,
|
||||||
imgRes: {},
|
imgRes: {},
|
||||||
prtQueList: [],
|
prtQueList: [],
|
||||||
lastExeMark: undefined,
|
lastExeMark: undefined,
|
||||||
@ -58,7 +58,7 @@ export default {
|
|||||||
return reject('打印参数校验不通过')
|
return reject('打印参数校验不通过')
|
||||||
}
|
}
|
||||||
let prtInstance = tanexPrinterUniSdk.createInstance()
|
let prtInstance = tanexPrinterUniSdk.createInstance()
|
||||||
// prtInstance.init(that.imgRes.height)
|
prtInstance.init(that.imgRes.heigh)
|
||||||
// prtInstance.diyCode(`PAGE-WIDTH 600\r\n`)
|
// prtInstance.diyCode(`PAGE-WIDTH 600\r\n`)
|
||||||
prtInstance.addBitmapByEG(0, 0, that.imgRes.imgData)
|
prtInstance.addBitmapByEG(0, 0, that.imgRes.imgData)
|
||||||
prtInstance.setPagePrint()
|
prtInstance.setPagePrint()
|
||||||
|
|||||||
@ -66,7 +66,7 @@ export default {
|
|||||||
previewModel: { show: false },
|
previewModel: { show: false },
|
||||||
printModel: { show: false },
|
printModel: { show: false },
|
||||||
imageUrl: [],
|
imageUrl: [],
|
||||||
paperWidth: 480,
|
paperWidth: 560,
|
||||||
show: false,
|
show: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user