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
6b401072
authored
2026-02-26 18:14:12 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加查看进度刷新按钮
1 parent
8da3ab33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
src/views/data_anonymization/anonTaskCreate.vue
src/views/data_anonymization/anonTaskCreate.vue
View file @
6b40107
...
...
@@ -75,6 +75,7 @@
changeNum(dicomStatisticsData.total, 0) + '个文件' }}
</span><span
v-show=
"dicomStatisticsData.remainingTime"
class=
"desc"
>
{{ '剩' +
transferTime(dicomStatisticsData.remainingTime)
}}
</span></div>
<div
style=
"display: flex;justify-content: center;margin-top: 4px;"
><el-button
:icon=
"RefreshRight"
link
@
click=
"refreshFolderResult"
v-preReClick
>
刷新进度
</el-button></div>
</div>
<!-- 正在解析的状态 -->
<div
class=
"folder-progress"
...
...
@@ -88,6 +89,7 @@
+ (!dicomStatisticsData.progress ? 0 : changeNum(dicomStatisticsData.progress, 2)) + '%' }}
</span><span
v-show=
"dicomStatisticsData.remainingTime"
class=
"desc"
>
{{ '剩' +
transferTime(dicomStatisticsData.remainingTime)
}}
</span></div>
<div
style=
"display: flex;justify-content: center;margin-top: 4px;"
><el-button
:icon=
"RefreshRight"
link
@
click=
"refreshFolderResult"
v-preReClick
>
刷新进度
</el-button></div>
</div>
<!-- 解析失败的状态 -->
<div
class=
"folder-progress"
v-show=
"clickSelectNode.path && dicomStatisticsData.state == 'E'"
>
...
...
@@ -1016,12 +1018,12 @@ const uploadFileDialogInfo = ref({
const
folderRefreshTimer
=
ref
();
const
processFolderRefresh
=
async
()
=>
{
const
processFolderRefresh
=
async
(
isRefresh
=
false
)
=>
{
// 组件已卸载时不再执行
if
(
!
containerRef
.
value
)
{
return
;
}
await
getDicomStatisticsData
(
taskGuid
.
value
);
await
getDicomStatisticsData
(
taskGuid
.
value
,
isRefresh
);
if
(
!
dicomStatisticsData
.
value
.
state
||
dicomStatisticsData
.
value
.
state
==
'S'
||
dicomStatisticsData
.
value
.
state
==
'R'
)
{
if
(
folderRefreshTimer
.
value
)
{
return
;
...
...
@@ -1045,6 +1047,18 @@ const processFolderRefresh = async () => {
}
}
/** 随时点击刷新查看结果。 */
const
refreshFolderResult
=
()
=>
{
if
(
getFolderResultPromise
.
value
)
{
return
;
}
if
(
folderRefreshTimer
.
value
)
{
clearInterval
(
folderRefreshTimer
.
value
);
folderRefreshTimer
.
value
=
null
;
}
processFolderRefresh
(
true
);
}
// TODO,需要将selectNode与oldSelectNode即对话框展开的做区分处理。
const
dialogBtnClick
=
(
btn
)
=>
{
...
...
@@ -1270,15 +1284,22 @@ const getDicomMetaData = (taskGuid) => {
const
dicomStatisticsData
:
any
=
ref
({});
const
getFolderResultPromise
:
any
=
ref
(
null
);
/** 获取解析文件结果数据 */
const
getDicomStatisticsData
=
(
taskGuid
)
=>
{
return
getDicomStatistics
(
taskGuid
).
then
((
res
:
any
)
=>
{
const
getDicomStatisticsData
=
(
taskGuid
,
isRefresh
=
false
)
=>
{
getFolderResultPromise
.
value
=
getDicomStatistics
(
taskGuid
).
then
((
res
:
any
)
=>
{
getFolderResultPromise
.
value
=
null
;
if
(
res
?.
code
==
proxy
.
$passCode
)
{
if
(
isRefresh
)
{
proxy
.
$ElMessage
.
success
(
'刷新成功'
);
}
dicomStatisticsData
.
value
=
res
.
data
||
{};
}
else
{
res
?.
msg
&&
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
return
getFolderResultPromise
.
value
;
}
/** 将时间转换为时分秒 */
...
...
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