7b31d2ac by lihua

进度保留2位小数

1 parent 6285b55e
......@@ -69,7 +69,7 @@
<div class="folder-progress"
v-show="clickSelectNode.path && (dicomStatisticsData.state == 'S' || !Object.keys(dicomStatisticsData)?.length)">
<div class="folder-title">正在扫描</div>
<el-progress :percentage="dicomStatisticsData.progress || 0" :stroke-width="12" striped striped-flow
<el-progress :percentage="!dicomStatisticsData.progress ? 0 : changeNum(dicomStatisticsData.progress, 2)" :stroke-width="12" striped striped-flow
:show-text="false" :duration="8" />
<div v-show="Object.keys(dicomStatisticsData)?.length" style="display: flex;justify-content: space-between;"><span class="cnt">{{ '共扫描' +
changeNum(dicomStatisticsData.total, 0) + '个文件' }}</span><span v-show="dicomStatisticsData.remainingTime" class="desc">{{ '剩' +
......@@ -80,12 +80,12 @@
<div class="folder-progress"
v-show="clickSelectNode.path && (dicomStatisticsData.state == 'R')">
<div class="folder-title">正在解析</div>
<el-progress :percentage="dicomStatisticsData.progress || 0" :stroke-width="12" striped striped-flow
<el-progress :percentage="!dicomStatisticsData.progress ? 0 : changeNum(dicomStatisticsData.progress, 2)" :stroke-width="12" striped striped-flow
:show-text="false" :duration="8" />
<div style="display: flex;justify-content: space-between;"><span class="cnt">{{ '共' +
changeNum(dicomStatisticsData.total, 0) +
'个文件, 已解析'
+ (dicomStatisticsData.progress || 0) + '%' }}</span><span v-show="dicomStatisticsData.remainingTime" class="desc">{{ '剩' +
+ (!dicomStatisticsData.progress ? 0 : changeNum(dicomStatisticsData.progress, 2)) + '%' }}</span><span v-show="dicomStatisticsData.remainingTime" class="desc">{{ '剩' +
transferTime(dicomStatisticsData.remainingTime)
}}</span></div>
</div>
......@@ -96,7 +96,7 @@
<CircleCloseFilled />
</el-icon><span>解析失败</span>
</div>
<el-progress :percentage="dicomStatisticsData.progress || 0" :stroke-width="12" color="#F30000"
<el-progress :percentage="!dicomStatisticsData.progress ? 0 : changeNum(dicomStatisticsData.progress, 2)" :stroke-width="12" color="#F30000"
:show-text="false" />
<div style="display: flex;justify-content: space-between;"><span class="cnt">{{ '已成功解析' +
changeNum(dicomStatisticsData.successCount, 0) + '个文件, 失败' + changeNum(dicomStatisticsData.errorCount,
......@@ -116,7 +116,7 @@
<svg-icon name="icon-success" />
</el-icon><span>解析成功</span>
</div>
<el-progress :percentage="dicomStatisticsData.progress || 100" :stroke-width="12" color="#4FA55D"
<el-progress :percentage="dicomStatisticsData.progress == 100 ? 100 : changeNum(dicomStatisticsData.progress, 2)" :stroke-width="12" color="#4FA55D"
:show-text="false" />
<div style="display: flex;justify-content: space-between;"><span class="cnt">{{ '已成功解析' +
changeNum(dicomStatisticsData.successCount, 0)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!