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
95166443
authored
2026-06-24 10:54:18 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复报告内容错误的
1 parent
f22210be
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
4 deletions
src/api/modules/dataAnonymization.ts
src/views/data_anonymization/anonResultReportView.vue
src/views/data_anonymization/anonTaskCreate.vue
src/views/data_anonymization/components/anonResultAnalysis.vue
src/api/modules/dataAnonymization.ts
View file @
9516644
...
...
@@ -353,7 +353,7 @@ export const htmlToWord = (params) => request({
})
export
const
downloadAnonReport
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
ANONYMIZATION_BASE
URL
}
/anon-task/download`
,
url
:
`
${
import
.
meta
.
env
.
VITE_APP_
DIGITAL_CONTRACT_
URL
}
/anon-task/download`
,
method
:
'postJsonD'
,
data
:
params
,
responseType
:
'blob'
...
...
src/views/data_anonymization/anonResultReportView.vue
View file @
9516644
...
...
@@ -206,8 +206,7 @@ const downloadWord = () => {
resultDataLoading
.
value
=
true
;
loadingText
.
value
=
'报告正在下载中,请勿关闭浏览器...'
;
downPromise
.
value
=
convertHtml2Img
(
report
,
dom
).
then
(()
=>
{
downloadAnonReport
({
taskGuid
:
taskGuid
.
value
,
title
:
`
${
analysisResultInfo
.
value
.
tenantName
}
持有的“
${
oldAnonTaskValueInfo
.
value
.
taskName
}
”`
,
evaluationDate
:
analysisResultInfo
.
value
.
execTime
,
deIdentProcessorName
:
userData
.
tenantName
,
html
:
encodeURIComponent
(
`<div>
${
getHTML
(
dom
.
innerHTML
)}
</div>`
)
}).
then
((
res
:
any
)
=>
{
downPromise
.
value
=
null
downloadAnonReport
({
taskGuid
:
taskGuid
.
value
,
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
)
=>
{
downPromise
.
value
=
null
loadingText
.
value
=
''
;
resultDataLoading
.
value
=
false
;
if
(
res
&&
!
res
.
msg
)
{
...
...
src/views/data_anonymization/anonTaskCreate.vue
View file @
9516644
...
...
@@ -2235,7 +2235,7 @@ const downloadWord = () => {
loadingText
.
value
=
'报告正在下载中,请勿关闭浏览器...'
;
downloadLoading
.
value
=
true
;
downPromise
.
value
=
convertHtml2Img
(
report
,
dom
).
then
(()
=>
{
downloadAnonReport
({
taskGuid
:
oldAnonTaskValueInfo
.
value
.
guid
,
title
:
`
${
analysisResultInfo
.
value
.
tenantName
}
持有的“
${
oldAnonTaskValueInfo
.
value
.
taskName
}
”`
,
evaluationDate
:
analysisResultInfo
.
value
.
execTime
,
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
)
=>
{
downPromise
.
value
=
null
loadingText
.
value
=
''
;
...
...
src/views/data_anonymization/components/anonResultAnalysis.vue
View file @
9516644
This diff is collapsed.
Click to expand it.
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