From a8406bbb0bb0ae2ee1d96598f8c1da1ef730be21 Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Fri, 17 Jan 2025 09:04:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=8C=85=E5=90=8D=E5=9B=BE=E7=89=87=E5=90=8D=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/tableListPage/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DesignForm/tableListPage/index.vue b/src/components/DesignForm/tableListPage/index.vue index 1bcec78..00e9297 100644 --- a/src/components/DesignForm/tableListPage/index.vue +++ b/src/components/DesignForm/tableListPage/index.vue @@ -263,7 +263,7 @@ async function downloadTables() { } const blob = new Blob([ab], { type: mimeString }); - zip.file(`${tableKey}.png`, blob); + zip.file(`${props.formBasicConfig.formName}-${tableKey}.png`, blob); } catch (error) { console.error(`Error converting ${tableKey} to image:`, error); } @@ -272,7 +272,7 @@ async function downloadTables() { zip.generateAsync({ type: 'blob' }).then(function(content) { const now = new Date(); const formattedDate = `${now.getFullYear()}${String(now.getMonth() + 1).padStart(2, '0')}${String(now.getDate()).padStart(2, '0')}_${String(now.getHours()).padStart(2, '0')}${String(now.getMinutes()).padStart(2, '0')}${String(now.getSeconds()).padStart(2, '0')}`; - const fileName = `tables_${formattedDate}.zip`; + const fileName = `${props.formBasicConfig.formName}-${formattedDate}.zip`; const link = document.createElement('a'); link.href = URL.createObjectURL(content);