feat: 调整调整功能和导出名称
This commit is contained in:
@ -71,7 +71,7 @@ export const downloadPDF = async (dom, name = '导出文件') => {
|
|||||||
|
|
||||||
|
|
||||||
// 带样式的下载方法
|
// 带样式的下载方法
|
||||||
export function downloadDocWithStyle(textContent) {
|
export function downloadDocWithStyle(textContent, title = '战术研判报告') {
|
||||||
if (typeof textContent !== 'string') return;
|
if (typeof textContent !== 'string') return;
|
||||||
const wordDocument = `
|
const wordDocument = `
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
|
||||||
@ -104,5 +104,6 @@ export function downloadDocWithStyle(textContent) {
|
|||||||
type: 'application/msword'
|
type: 'application/msword'
|
||||||
});
|
});
|
||||||
|
|
||||||
saveAs(blob, '研判报告.doc');
|
saveAs(blob, `${title}.doc`);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
</el-image>
|
</el-image>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span class="smallbtn" @click.stop="() => { }">全息档案</span>
|
<!-- <span class="smallbtn" @click.stop="() => { }">全息档案</span> -->
|
||||||
<span class="smallbtn" @click.stop="pushAssess(item)">全息档案</span>
|
<span class="smallbtn" @click.stop="pushAssess(item)">全息档案</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -176,7 +176,7 @@ const getList = (val) => {
|
|||||||
const assessShow = ref(false)
|
const assessShow = ref(false)
|
||||||
const dataList = ref()
|
const dataList = ref()
|
||||||
const pushAssess = (val) => {
|
const pushAssess = (val) => {
|
||||||
return holographicProfileJump(val?.rysfzh) // 全息档案跳转
|
return holographicProfileJump(val?.yjRysfzh) // 全息档案跳转
|
||||||
// assessShow.value = true;
|
// assessShow.value = true;
|
||||||
// dataList.value = val;
|
// dataList.value = val;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user