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