From 76d9c92fd92681bf3814b66d7f586a532c34c640 Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Fri, 17 Jan 2025 17:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/tableListPage/index.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/DesignForm/tableListPage/index.vue b/src/components/DesignForm/tableListPage/index.vue index 6d225c4..b93c3a4 100644 --- a/src/components/DesignForm/tableListPage/index.vue +++ b/src/components/DesignForm/tableListPage/index.vue @@ -218,7 +218,7 @@ const resetFields = (formEl: FormInstance | undefined) => { //20250117 李文轩 二维码表格 const qrCodesPrintDialogFlag = ref(false) -const tableRefs = reactive({}); +let tableRefs = reactive({}); const tablesData = ref({}) function getDetailQrCodes(val:any) { return request({ @@ -256,6 +256,7 @@ async function downloadTables() { }); //ElMessage('This is a message.') const zip = new JSZip(); + console.log(tableRefs) for (const [tableKey, element] of Object.entries(tableRefs)) { try { const canvas = await html2canvas(element); @@ -286,8 +287,14 @@ async function downloadTables() { link.download = fileName; loadingInstance.close() link.click(); + tableRefs = {} }); } +function closeQrDownload(){ + qrCodesPrintDialogFlag.value = false + tableRefs = {} + console.log(tableRefs) +} /** @ 作者: 秦东 @ 时间: 2024-04-01 11:36:07 @@ -1657,8 +1664,8 @@ const diGuiJilian = (val: any, options: any[]) => {