diff --git a/src/components/print/Print.vue b/src/components/print/Print.vue index 73628be..5b035d1 100644 --- a/src/components/print/Print.vue +++ b/src/components/print/Print.vue @@ -627,8 +627,12 @@ this.isShowPreview = true }, - getHtml() { - return this.elementToString(this.hiprintTemplate.getHtml(this.printData)) + getHtml(template, printData) { + this.hiprintTemplate = newHiprintPrintTemplate('temulables') + + this.hiprintTemplate.update(template) + const html = this.elementToString(this.hiprintTemplate.getHtml(printData)) + return html }, clearPaper() { diff --git a/src/view/lables/Template.vue b/src/view/lables/Template.vue index 254a909..4226e13 100644 --- a/src/view/lables/Template.vue +++ b/src/view/lables/Template.vue @@ -64,24 +64,31 @@ style="margin-top: 8px;" @getList="getList" :loading="isLoading"> - + +