feat:进度条显示调整

This commit is contained in:
zhongzm
2025-09-11 11:42:29 +08:00
parent c22d7604cf
commit 05d59ec526
2 changed files with 24 additions and 10 deletions

View File

@@ -357,7 +357,7 @@ watch(
</a-form>
<!-- 进度显示 -->
<div v-if="modalState.progress.visible" style="margin-top: 20px;">
<div v-if="modalState.progress.visible || modalState.results.length > 0" style="margin-top: 20px;">
<a-divider>{{ t('views.ne.neInfo.quickOam.progress') }}</a-divider>
<div style="margin-bottom: 10px;">
<span>{{ t('views.ne.neInfo.quickOam.processing') }}: {{ modalState.progress.currentNe }}</span>
@@ -365,11 +365,21 @@ watch(
{{ modalState.progress.current }} / {{ modalState.progress.total }}
</span>
</div>
<!-- <Progress-->
<!-- :percent="Math.round((modalState.progress.current / modalState.progress.total) * 100)"-->
<!-- :status="modalState.progress.current === modalState.progress.total ? 'success' : 'active'"-->
<!-- :show-info="false"-->
<!-- style="overflow: hidden;"-->
<!-- />-->
<div style="width: 100%; overflow: hidden;">
<Progress
:percent="Math.round((modalState.progress.current / modalState.progress.total) * 100)"
:status="modalState.progress.current === modalState.progress.total ? 'success' : 'active'"
:show-info="false"
style="width: 100%;"
/>
</div>
</div>
<!-- 操作结果 -->
<div v-if="modalState.results.length > 0" style="margin-top: 20px;">

View File

@@ -389,7 +389,7 @@ watch(
</a-form>
<!-- 进度显示 -->
<div v-if="modalState.progress.visible" style="margin-top: 20px;">
<div v-if="modalState.progress.visible || modalState.results.length > 0" style="margin-top: 20px; overflow: hidden;">
<a-divider>{{ t('views.ne.neInfo.quickOam.progress') }}</a-divider>
<div style="margin-bottom: 10px;">
<span>{{ t('views.ne.neInfo.quickOam.processing') }}: {{ modalState.progress.currentNe }}</span>
@@ -397,11 +397,15 @@ watch(
{{ modalState.progress.current }} / {{ modalState.progress.total }}
</span>
</div>
<div style="width: 100%; overflow: hidden;">
<Progress
:percent="Math.round((modalState.progress.current / modalState.progress.total) * 100)"
:status="modalState.progress.current === modalState.progress.total ? 'success' : 'active'"
:show-info="false"
style="width: 100%;"
/>
</div>
</div>
<!-- 操作结果 -->
<div v-if="modalState.results.length > 0" style="margin-top: 20px;">