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);