From e1c6e7fafb8bc5dd2062301e6a4a150c17399b06 Mon Sep 17 00:00:00 2001 From: mhsnet Date: Sun, 23 Apr 2023 11:19:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=B5=8B=E8=AF=95=EF=BC=88?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3=E6=B2=A1=E7=94=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/scm/basicInformation/natural/index.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/SC-web/src/views/scm/basicInformation/natural/index.vue b/SC-web/src/views/scm/basicInformation/natural/index.vue index 43e195ea..240794ed 100644 --- a/SC-web/src/views/scm/basicInformation/natural/index.vue +++ b/SC-web/src/views/scm/basicInformation/natural/index.vue @@ -82,6 +82,12 @@ v-has="'btn_download'" >导出 + + @@ -429,6 +437,13 @@ export default { } this.search(); }, + printData(){ + let printHtml = document.getElementById('table-data').innerHTML; + let sysPrint = document.getElementById('iframe-spr'); + sysPrint.contentDocument.body.innerHTML = printHtml; + sysPrint.contentDocument.execCommand('Print'); + //window.print(); + } }, };