642f2f19 by lihua

fix: 下载报告附录分页

1 parent 4afc0206
......@@ -228,6 +228,7 @@ const downloadWord = () => {
htmlOverview = htmlContent.substring(0, index + firstBr.length);
htmlContentPart = htmlContent.substring(index + firstBr.length);
}
if (match?.length > 2) {
let secondBr = match[1];
if (secondBr) {
const index = htmlContent.indexOf(secondBr);
......@@ -236,6 +237,7 @@ const downloadWord = () => {
}
}
}
}
if (route.query.dataOwner == '1') {
sendAnonReport({ taskGuid: taskGuid.value, title: `${analysisResultInfo.value.tenantName}持有的“${oldAnonTaskValueInfo.value.taskName}”`, evaluationDate: analysisResultInfo.value.execTime ? analysisResultInfo.value.execTime.substring(0, 10) : '', deIdentProcessorName: userData.tenantName, htmlOverview: encodeURIComponent(`<div>${htmlOverview}</div>`),
......
......@@ -2247,6 +2247,7 @@ const downloadWord = () => {
htmlOverview = htmlContent.substring(0, index + firstBr.length);
htmlContentPart = htmlContent.substring(index + firstBr.length);
}
if (match?.length > 2) {
let secondBr = match[1];
if (secondBr) {
const index = htmlContent.indexOf(secondBr);
......@@ -2255,6 +2256,7 @@ const downloadWord = () => {
}
}
}
}
downPromise.value = convertHtml2Img(report, dom).then(() => {
downloadAnonReport({ taskGuid: oldAnonTaskValueInfo.value.guid, title: `${analysisResultInfo.value.tenantName}持有的“${oldAnonTaskValueInfo.value.taskName}”`, evaluationDate: analysisResultInfo.value.execTime ? analysisResultInfo.value.execTime.substring(0, 10) : '',
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!