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
9f888656
authored
2026-03-26 10:49:00 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
匿名化文件夹支持选择内置文件
1 parent
4ee13d62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
8 deletions
src/api/modules/dataAnonymization.ts
src/views/data_anonymization/anonTaskCreate.vue
src/api/modules/dataAnonymization.ts
View file @
9f88865
...
...
@@ -378,4 +378,10 @@ export const downDicomPath = (taskExecGuid) => request({
url
:
`
${
import
.
meta
.
env
.
VITE_API_COMMON_URL
}
/anon-task/down-dicom-path?taskExecGuid=
${
taskExecGuid
}
`
,
method
:
'get'
,
responseType
:
'blob'
})
/** 获取内置的文件夹路径 */
export
const
getInnerFolderPath
=
()
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_APP_DIGITAL_CONTRACT_URL
}
/anon-task/get-dicom-path`
,
method
:
'get'
})
\ No newline at end of file
...
...
src/views/data_anonymization/anonTaskCreate.vue
View file @
9f88865
...
...
@@ -56,11 +56,19 @@
class=
"mr8"
@
click=
uploadFolder
>
上传文件
</el-button>
<Dialog
ref=
"dialogRef"
:dialog-info=
"uploadFileDialogInfo"
@
btnClick=
"dialogBtnClick"
>
<
template
#
extra-content
>
<div
class=
"folder-main-content"
v-loading=
"uploadFileDialogInfo.contentLoading"
>
<div
class=
"radio-main"
>
<span>
是否选择内置文件夹路径:
</span>
<el-radio-group
v-model=
"isBuiltInPath"
>
<el-radio
:value=
"true"
>
是
</el-radio>
<el-radio
:value=
"false"
>
否
</el-radio>
</el-radio-group>
</div>
<div
v-show=
"!isBuiltInPath"
class=
"folder-main-content"
v-loading=
"uploadFileDialogInfo.contentLoading"
>
<Tree
ref=
"treeInfoRef"
:treeInfo=
"folderTreeInfo"
@
nodeClick=
"nodeClick"
key=
"path"
@
loadNode=
"loadFolderTreeNode"
/>
</div>
<div
class=
"folder-foot"
>
{{
'当前选中文件夹路径:'
+
(
dialogOpenSelectNode
.
path
||
'--'
)
}}
</div>
<div
v-show=
"!isBuiltInPath"
class=
"folder-foot"
>
{{
'当前选中文件夹路径:'
+
(
dialogOpenSelectNode
.
path
||
'--'
)
}}
</div>
<div
v-show=
"isBuiltInPath"
class=
"builtIn-folder-foot"
>
{{
'内置文件夹路径:'
+
(
builtInPath
||
'--'
)
}}
</div>
</
template
>
</Dialog>
<div
v-show=
"clickSelectNode.path && dicomStatisticsData.state"
class=
"folder-foot"
>
{{ '当前提取文件夹路径:' +
...
...
@@ -235,7 +243,8 @@ import {
scanFolder
,
getDicomMeta
,
getDicomStatistics
,
retryDicom
retryDicom
,
getInnerFolderPath
}
from
'@/api/modules/dataAnonymization'
;
import
{
parseAndDecodeUrl
,
...
...
@@ -1161,6 +1170,11 @@ const uploadFileChange = (file) => {
/*** ----------------------- 解析扫描文件 ------------------------------ */
/** 是否选择内置文件夹路径 */
const
isBuiltInPath
=
ref
(
false
);
const
builtInPath
=
ref
(
''
);
/** 上传选择文件夹对话框 */
const
uploadFileDialogInfo
=
ref
({
visible
:
false
,
...
...
@@ -1228,7 +1242,7 @@ const refreshFolderResult = () => {
const
dialogBtnClick
=
(
btn
)
=>
{
if
(
btn
.
value
==
'submit'
)
{
clickSelectNode
.
value
=
dialogOpenSelectNode
.
value
;
if
(
!
clickSelectNode
.
value
.
path
)
{
if
(
!
isBuiltInPath
.
value
&&
!
clickSelectNode
.
value
.
path
)
{
proxy
.
$ElMessage
.
error
(
'请先选择文件夹'
);
return
;
}
...
...
@@ -1239,7 +1253,7 @@ const dialogBtnClick = (btn) => {
saveParams
.
coverageArea
=
[];
}
saveParams
.
filePath
=
{
url
:
clickSelectNode
.
value
.
path
url
:
isBuiltInPath
.
value
?
builtInPath
.
value
:
clickSelectNode
.
value
.
path
};
saveParams
.
samplingRate
=
null
;
if
(
taskGuid
.
value
)
{
...
...
@@ -1353,6 +1367,15 @@ const uploadFolder = () => {
clickSelectNode
.
value
=
{};
dialogOpenSelectNode
.
value
=
{};
uploadFileDialogInfo
.
value
.
visible
=
true
;
if
(
!
builtInPath
.
value
)
{
getInnerFolderPath
().
then
((
res
:
any
)
=>
{
if
(
res
?.
code
==
proxy
.
$passCode
)
{
builtInPath
.
value
=
res
.
data
||
''
;
}
else
{
ElMessage
.
error
(
res
.
msg
);
}
})
}
folderTreeInfo
.
value
.
loading
=
true
;
scanFolder
().
then
((
res
:
any
)
=>
{
folderTreeInfo
.
value
.
loading
=
false
;
...
...
@@ -2643,8 +2666,8 @@ onUnmounted(() => {
}
.folder-main-content
{
height
:
4
5
0px
;
padding
:
8px
16
px
;
height
:
4
2
0px
;
padding
:
0px
16px
8
px
;
:deep(.tree_panel)
{
height
:
100%
;
...
...
@@ -2655,8 +2678,17 @@ onUnmounted(() => {
}
}
.radio-main
{
padding
:
8px
24px
0px
;
}
.folder-foot
{
padding
:
0px
16px
8px
;
padding
:
0px
24px
8px
;
line-height
:
21px
;
}
.builtIn-folder-foot
{
padding
:
8px
24px
;
line-height
:
21px
;
}
...
...
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