From b5013244e5d71f81ec9f7da51745c3ec5e2b8dff Mon Sep 17 00:00:00 2001 From: huangchengfa <171504222@qq.com> Date: Thu, 11 Dec 2025 20:59:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=BE=AE=E8=B0=83=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../situationHome/components/editAddForm.vue | 48 +++++++++++++++++-- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/src/views/backOfficeSystem/JudgmentHome/situationHome/components/editAddForm.vue b/src/views/backOfficeSystem/JudgmentHome/situationHome/components/editAddForm.vue index e105dab..29dc353 100644 --- a/src/views/backOfficeSystem/JudgmentHome/situationHome/components/editAddForm.vue +++ b/src/views/backOfficeSystem/JudgmentHome/situationHome/components/editAddForm.vue @@ -25,8 +25,12 @@ + + +
+ 网上会商 + 下载
- 网上会商 @@ -59,7 +63,8 @@ const mode = "default"; const dataBt = ref(`

林芝市公安局情指中心

研判专刊(初稿)

-

市公安局情指中心编                                                                                                                                                                                                                    ${timeValidate(new Date(), 'td')}

+

市公安局情指中心编

+

${timeValidate(new Date(), 'td')}


`) //编辑器配置 const editorConfig = { @@ -125,8 +130,8 @@ const getText = (val) => { } watch(() => listQuery.value, (val) => { let html = dataBt.value; - html += `

${val.ypbt||''}

` - html += `

${val.fj||''}

` + html += `

${val.ypbt || ''}

` + html += `

${val.fj || ''}

` textContent.value = html }, { @@ -171,6 +176,41 @@ const close = () => { listQuery.value = {} }; + +// 带样式的下载方法 +const downloadWithStyles = (textContent) => { + + const wordDocument = ` + + + + 富文本导出 + + + + ${textContent} + + + `; + + const blob = new Blob([wordDocument], { + type: 'application/msword' + }); + + saveAs(blob, '战略研判报告.doc'); +}; + defineExpose({ init });