调样式

This commit is contained in:
yanran200730
2024-10-21 21:56:34 +08:00
parent 441510a4e4
commit d9fe8dea7b
3 changed files with 19 additions and 18 deletions

View File

@@ -274,8 +274,6 @@
return '<style></style>'
}
}
const list = this.labels
this.hiprintTemplate.print(printData)
},
@@ -284,23 +282,20 @@
node.innerHTML = el.html()
document.querySelector('body').appendChild(node)
return node.innerHTML
const html = node.innerHTML
document.querySelector('body').removeChild(node)
return html
},
savePdf() {
const list = this.labels
this.hiprintTemplate.toPdf(printData, '测试导出pdf').then(v => {
console.log(v)
})
},
getHtml() {
const list = this.labels
console.log(printData)
this.html = this.elementToString(this.hiprintTemplate.getHtml(printData))
console.log(this.html)
this.isShowPreview = true
},