| | |
| | | }, |
| | | async show(hiprintTemplate, printData, width = '210') { |
| | | await this.initHiPrintAsync() |
| | | console.log(printData) |
| | | console.log(hiprintTemplate) |
| | | this.visible = true |
| | | this.spinning = true |
| | | this.width = hiprintTemplate.editingPanel ? hiprintTemplate.editingPanel.width : width; |
| | |
| | | // hiprintTemplateInstance.getJson(tempContainer) |
| | | setTimeout(() => { |
| | | // eslint-disable-next-line no-undef |
| | | hiprintTemplateInstance.getHtml(printData) |
| | | |
| | | $("#preview_content_design").html(hiprintTemplateInstance.getHtml(printData)) |
| | | this.spinning = false |
| | | }, 1000) |
| | | }, |
| | | print() { |