From 19391cb466616cf0299e8519b513ab37f6dcd460 Mon Sep 17 00:00:00 2001 From: huangchengfa <171504222@qq.com> Date: Thu, 11 Dec 2025 20:44:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=92=8C=E5=AF=BC=E5=87=BA=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/export.js | 5 +++-- .../warningControl/centerHome/components/yjItem.vue | 2 +- .../fourColorManage/warningList/components/localWarning.vue | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/utils/export.js b/src/utils/export.js index 492c9f4..673f939 100644 --- a/src/utils/export.js +++ b/src/utils/export.js @@ -71,7 +71,7 @@ export const downloadPDF = async (dom, name = '导出文件') => { // 带样式的下载方法 -export function downloadDocWithStyle(textContent) { +export function downloadDocWithStyle(textContent, title = '战术研判报告') { if (typeof textContent !== 'string') return; const wordDocument = ` @@ -104,5 +104,6 @@ export function downloadDocWithStyle(textContent) { type: 'application/msword' }); - saveAs(blob, '研判报告.doc'); + saveAs(blob, `${title}.doc`); + }; diff --git a/src/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/yjItem.vue b/src/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/yjItem.vue index 8e791af..fab940b 100644 --- a/src/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/yjItem.vue +++ b/src/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/yjItem.vue @@ -22,7 +22,7 @@