fix: 下载报告附录分页
Showing
2 changed files
with
4 additions
and
0 deletions
| ... | @@ -228,6 +228,7 @@ const downloadWord = () => { | ... | @@ -228,6 +228,7 @@ const downloadWord = () => { |
| 228 | htmlOverview = htmlContent.substring(0, index + firstBr.length); | 228 | htmlOverview = htmlContent.substring(0, index + firstBr.length); |
| 229 | htmlContentPart = htmlContent.substring(index + firstBr.length); | 229 | htmlContentPart = htmlContent.substring(index + firstBr.length); |
| 230 | } | 230 | } |
| 231 | if (match?.length > 2) { | ||
| 231 | let secondBr = match[1]; | 232 | let secondBr = match[1]; |
| 232 | if (secondBr) { | 233 | if (secondBr) { |
| 233 | const index = htmlContent.indexOf(secondBr); | 234 | const index = htmlContent.indexOf(secondBr); |
| ... | @@ -236,6 +237,7 @@ const downloadWord = () => { | ... | @@ -236,6 +237,7 @@ const downloadWord = () => { |
| 236 | } | 237 | } |
| 237 | } | 238 | } |
| 238 | } | 239 | } |
| 240 | } | ||
| 239 | 241 | ||
| 240 | if (route.query.dataOwner == '1') { | 242 | if (route.query.dataOwner == '1') { |
| 241 | 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>`), | 243 | 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 = () => { | ... | @@ -2247,6 +2247,7 @@ const downloadWord = () => { |
| 2247 | htmlOverview = htmlContent.substring(0, index + firstBr.length); | 2247 | htmlOverview = htmlContent.substring(0, index + firstBr.length); |
| 2248 | htmlContentPart = htmlContent.substring(index + firstBr.length); | 2248 | htmlContentPart = htmlContent.substring(index + firstBr.length); |
| 2249 | } | 2249 | } |
| 2250 | if (match?.length > 2) { | ||
| 2250 | let secondBr = match[1]; | 2251 | let secondBr = match[1]; |
| 2251 | if (secondBr) { | 2252 | if (secondBr) { |
| 2252 | const index = htmlContent.indexOf(secondBr); | 2253 | const index = htmlContent.indexOf(secondBr); |
| ... | @@ -2255,6 +2256,7 @@ const downloadWord = () => { | ... | @@ -2255,6 +2256,7 @@ const downloadWord = () => { |
| 2255 | } | 2256 | } |
| 2256 | } | 2257 | } |
| 2257 | } | 2258 | } |
| 2259 | } | ||
| 2258 | 2260 | ||
| 2259 | downPromise.value = convertHtml2Img(report, dom).then(() => { | 2261 | downPromise.value = convertHtml2Img(report, dom).then(() => { |
| 2260 | downloadAnonReport({ taskGuid: oldAnonTaskValueInfo.value.guid, title: `${analysisResultInfo.value.tenantName}持有的“${oldAnonTaskValueInfo.value.taskName}”`, evaluationDate: analysisResultInfo.value.execTime ? analysisResultInfo.value.execTime.substring(0, 10) : '', | 2262 | downloadAnonReport({ taskGuid: oldAnonTaskValueInfo.value.guid, title: `${analysisResultInfo.value.tenantName}持有的“${oldAnonTaskValueInfo.value.taskName}”`, evaluationDate: analysisResultInfo.value.execTime ? analysisResultInfo.value.execTime.substring(0, 10) : '', | ... | ... |
-
Please register or sign in to post a comment