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
f22210be
authored
2026-06-24 09:44:00 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改匿名化报告
1 parent
21f79e65
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
12 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 @
f22210b
...
...
@@ -352,6 +352,13 @@ export const htmlToWord = (params) => request({
responseType
:
'blob'
})
export
const
downloadAnonReport
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_ANONYMIZATION_BASEURL
}
/anon-task/download`
,
method
:
'postJsonD'
,
data
:
params
,
responseType
:
'blob'
})
export
const
scanFolder
=
(
dirPath
=
''
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_DIGITAL_CONTRACT_URL
}
/anon-task/directory/scan?dirPath=
${
dirPath
}
`
,
method
:
'get'
...
...
src/views/data_anonymization/anonResultReportView.vue
View file @
f22210b
...
...
@@ -4,6 +4,7 @@
<
script
lang=
"ts"
setup
name=
"anonResultReportView"
>
import
{
downloadAnonReport
,
getAnonAnalyzePageData
,
getAnonAnalyzeResult
,
getAnonTaskDetail
,
...
...
@@ -15,11 +16,14 @@ import anonResultAnalysis from './components/anonResultAnalysis.vue';
import
{
commonPageConfig
}
from
'@/utils/enum'
;
import
{
calcColumnWidth
}
from
'@/utils'
;
import
html2canvas
from
'html2canvas'
;
import
useUserStore
from
"@/store/modules/user"
;
const
route
=
useRoute
();
const
router
=
useRouter
();
const
fullPath
=
route
.
fullPath
;
const
taskGuid
=
ref
(
route
.
query
.
guid
);
const
userStore
=
useUserStore
();
const
userData
=
JSON
.
parse
(
userStore
.
userData
)
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
const
resultDataLoading
=
ref
(
false
);
...
...
@@ -202,16 +206,16 @@ const downloadWord = () => {
resultDataLoading
.
value
=
true
;
loadingText
.
value
=
'报告正在下载中,请勿关闭浏览器...'
;
downPromise
.
value
=
convertHtml2Img
(
report
,
dom
).
then
(()
=>
{
htmlToWord
({
html
:
encodeURIComponent
(
`<div>
${
getHTML
(
dom
.
innerHTML
)}
</div>`
)
}).
then
((
res
:
any
)
=>
{
downPromise
.
value
=
null
loadingText
.
value
=
''
;
resultDataLoading
.
value
=
false
;
if
(
res
&&
!
res
.
msg
)
{
download
(
res
,
(
route
.
query
.
taskName
||
oldAnonTaskValueInfo
.
value
.
taskName
)
+
'_匿名化评估报告.docx'
,
'word'
)
}
else
{
res
?.
msg
&&
ElMessage
.
error
(
res
?.
msg
);
}
})
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
loadingText
.
value
=
''
;
resultDataLoading
.
value
=
false
;
if
(
res
&&
!
res
.
msg
)
{
download
(
res
,
(
route
.
query
.
taskName
||
oldAnonTaskValueInfo
.
value
.
taskName
)
+
'_匿名化评估报告.docx'
,
'word'
)
}
else
{
res
?.
msg
&&
ElMessage
.
error
(
res
?.
msg
);
}
})
}).
catch
(()
=>
{
downPromise
.
value
=
null
;
});
...
...
src/views/data_anonymization/anonTaskCreate.vue
View file @
f22210b
...
...
@@ -245,7 +245,8 @@ import {
getDicomMeta
,
getDicomStatistics
,
retryDicom
,
getInnerFolderPath
getInnerFolderPath
,
downloadAnonReport
,
}
from
'@/api/modules/dataAnonymization'
;
import
{
parseAndDecodeUrl
,
...
...
@@ -276,6 +277,7 @@ import html2canvas from 'html2canvas';
const
anonymizationStore
=
useDataAnonymizationStore
();
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
const
userStore
=
useUserStore
();
const
userData
=
JSON
.
parse
(
userStore
.
userData
)
const
route
=
useRoute
();
const
router
=
useRouter
();
const
fullPath
=
route
.
fullPath
;
...
...
@@ -1261,6 +1263,7 @@ const dialogBtnClick = (btn) => {
if
(
taskGuid
.
value
)
{
saveParams
.
guid
=
taskGuid
.
value
;
}
saveParams
.
dataSharingTypeName
=
saveParams
.
dataSharingTypeCode
&&
dataSharingTypeList
.
value
.
find
(
d
=>
d
.
value
==
saveParams
.
dataSharingTypeCode
)?.
label
;
dicomStatisticsData
.
value
=
{};
folderFileTableInfo
.
value
.
data
=
[];
if
(
!
taskGuid
.
value
)
{
//保存
...
...
@@ -2232,7 +2235,8 @@ const downloadWord = () => {
loadingText
.
value
=
'报告正在下载中,请勿关闭浏览器...'
;
downloadLoading
.
value
=
true
;
downPromise
.
value
=
convertHtml2Img
(
report
,
dom
).
then
(()
=>
{
htmlToWord
({
html
:
encodeURIComponent
(
`<div>
${
getHTML
(
dom
.
innerHTML
)}
</div>`
)
}).
then
((
res
:
any
)
=>
{
downloadAnonReport
({
taskGuid
:
oldAnonTaskValueInfo
.
value
.
guid
,
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
loadingText
.
value
=
''
;
downloadLoading
.
value
=
false
;
...
...
src/views/data_anonymization/components/anonResultAnalysis.vue
View file @
f22210b
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