feat:进度条显示调整
This commit is contained in:
@@ -357,7 +357,7 @@ watch(
|
|||||||
</a-form>
|
</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>
|
<a-divider>{{ t('views.ne.neInfo.quickOam.progress') }}</a-divider>
|
||||||
<div style="margin-bottom: 10px;">
|
<div style="margin-bottom: 10px;">
|
||||||
<span>{{ t('views.ne.neInfo.quickOam.processing') }}: {{ modalState.progress.currentNe }}</span>
|
<span>{{ t('views.ne.neInfo.quickOam.processing') }}: {{ modalState.progress.currentNe }}</span>
|
||||||
@@ -365,11 +365,21 @@ watch(
|
|||||||
{{ modalState.progress.current }} / {{ modalState.progress.total }}
|
{{ modalState.progress.current }} / {{ modalState.progress.total }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</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
|
<Progress
|
||||||
:percent="Math.round((modalState.progress.current / modalState.progress.total) * 100)"
|
:percent="Math.round((modalState.progress.current / modalState.progress.total) * 100)"
|
||||||
:status="modalState.progress.current === modalState.progress.total ? 'success' : 'active'"
|
:status="modalState.progress.current === modalState.progress.total ? 'success' : 'active'"
|
||||||
|
:show-info="false"
|
||||||
|
style="width: 100%;"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 操作结果 -->
|
<!-- 操作结果 -->
|
||||||
<div v-if="modalState.results.length > 0" style="margin-top: 20px;">
|
<div v-if="modalState.results.length > 0" style="margin-top: 20px;">
|
||||||
|
|||||||
@@ -389,7 +389,7 @@ watch(
|
|||||||
</a-form>
|
</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>
|
<a-divider>{{ t('views.ne.neInfo.quickOam.progress') }}</a-divider>
|
||||||
<div style="margin-bottom: 10px;">
|
<div style="margin-bottom: 10px;">
|
||||||
<span>{{ t('views.ne.neInfo.quickOam.processing') }}: {{ modalState.progress.currentNe }}</span>
|
<span>{{ t('views.ne.neInfo.quickOam.processing') }}: {{ modalState.progress.currentNe }}</span>
|
||||||
@@ -397,11 +397,15 @@ watch(
|
|||||||
{{ modalState.progress.current }} / {{ modalState.progress.total }}
|
{{ modalState.progress.current }} / {{ modalState.progress.total }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="width: 100%; overflow: hidden;">
|
||||||
<Progress
|
<Progress
|
||||||
:percent="Math.round((modalState.progress.current / modalState.progress.total) * 100)"
|
:percent="Math.round((modalState.progress.current / modalState.progress.total) * 100)"
|
||||||
:status="modalState.progress.current === modalState.progress.total ? 'success' : 'active'"
|
:status="modalState.progress.current === modalState.progress.total ? 'success' : 'active'"
|
||||||
|
:show-info="false"
|
||||||
|
style="width: 100%;"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 操作结果 -->
|
<!-- 操作结果 -->
|
||||||
<div v-if="modalState.results.length > 0" style="margin-top: 20px;">
|
<div v-if="modalState.results.length > 0" style="margin-top: 20px;">
|
||||||
|
|||||||
Reference in New Issue
Block a user