Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e9cb2dd7
authored
2026-06-24 16:33:15 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
0bc8d9f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
src/views/data_anonymization/anonTaskCreate.vue
src/views/data_anonymization/anonTaskCreate.vue
View file @
e9cb2dd
...
...
@@ -2234,10 +2234,25 @@ const downloadWord = () => {
dom
.
innerHTML
=
report
?.
innerHTML
;
loadingText
.
value
=
'报告正在下载中,请勿关闭浏览器...'
;
downloadLoading
.
value
=
true
;
const
htmlContent
=
getHTML
(
dom
.
innerHTML
);
const
pageBreakRegex
=
/<br
\s[^
>
]
*>/gi
;
const
match
=
htmlContent
.
match
(
pageBreakRegex
);
let
htmlOverview
=
htmlContent
;
let
htmlContentPart
=
''
;
if
(
match
&&
match
.
length
>=
1
)
{
const
secondBr
=
match
[
0
];
const
index
=
htmlContent
.
indexOf
(
secondBr
);
if
(
index
!==
-
1
)
{
htmlOverview
=
htmlContent
.
substring
(
0
,
index
+
secondBr
.
length
);
htmlContentPart
=
htmlContent
.
substring
(
index
+
secondBr
.
length
);
}
}
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
)
:
''
,
deIdentProcessorName
:
userData
.
tenantName
,
html
:
encodeURIComponent
(
`<div>
${
getHTML
(
dom
.
innerHTML
)}
</div>`
)
}).
then
((
res
:
any
)
=>
{
deIdentProcessorName
:
userData
.
tenantName
,
htmlOverview
:
encodeURIComponent
(
`<div>
${
htmlOverview
}
</div>`
),
htmlContent
:
encodeURIComponent
(
`<div>
${
htmlContentPart
}
</div>`
)
}).
then
((
res
:
any
)
=>
{
downPromise
.
value
=
null
loadingText
.
value
=
''
;
downloadLoading
.
value
=
false
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment