进度保留2位小数
Showing
1 changed file
with
5 additions
and
5 deletions
| ... | @@ -69,7 +69,7 @@ | ... | @@ -69,7 +69,7 @@ |
| 69 | <div class="folder-progress" | 69 | <div class="folder-progress" |
| 70 | v-show="clickSelectNode.path && (dicomStatisticsData.state == 'S' || !Object.keys(dicomStatisticsData)?.length)"> | 70 | v-show="clickSelectNode.path && (dicomStatisticsData.state == 'S' || !Object.keys(dicomStatisticsData)?.length)"> |
| 71 | <div class="folder-title">正在扫描</div> | 71 | <div class="folder-title">正在扫描</div> |
| 72 | <el-progress :percentage="dicomStatisticsData.progress || 0" :stroke-width="12" striped striped-flow | 72 | <el-progress :percentage="!dicomStatisticsData.progress ? 0 : changeNum(dicomStatisticsData.progress, 2)" :stroke-width="12" striped striped-flow |
| 73 | :show-text="false" :duration="8" /> | 73 | :show-text="false" :duration="8" /> |
| 74 | <div v-show="Object.keys(dicomStatisticsData)?.length" style="display: flex;justify-content: space-between;"><span class="cnt">{{ '共扫描' + | 74 | <div v-show="Object.keys(dicomStatisticsData)?.length" style="display: flex;justify-content: space-between;"><span class="cnt">{{ '共扫描' + |
| 75 | changeNum(dicomStatisticsData.total, 0) + '个文件' }}</span><span v-show="dicomStatisticsData.remainingTime" class="desc">{{ '剩' + | 75 | changeNum(dicomStatisticsData.total, 0) + '个文件' }}</span><span v-show="dicomStatisticsData.remainingTime" class="desc">{{ '剩' + |
| ... | @@ -80,12 +80,12 @@ | ... | @@ -80,12 +80,12 @@ |
| 80 | <div class="folder-progress" | 80 | <div class="folder-progress" |
| 81 | v-show="clickSelectNode.path && (dicomStatisticsData.state == 'R')"> | 81 | v-show="clickSelectNode.path && (dicomStatisticsData.state == 'R')"> |
| 82 | <div class="folder-title">正在解析</div> | 82 | <div class="folder-title">正在解析</div> |
| 83 | <el-progress :percentage="dicomStatisticsData.progress || 0" :stroke-width="12" striped striped-flow | 83 | <el-progress :percentage="!dicomStatisticsData.progress ? 0 : changeNum(dicomStatisticsData.progress, 2)" :stroke-width="12" striped striped-flow |
| 84 | :show-text="false" :duration="8" /> | 84 | :show-text="false" :duration="8" /> |
| 85 | <div style="display: flex;justify-content: space-between;"><span class="cnt">{{ '共' + | 85 | <div style="display: flex;justify-content: space-between;"><span class="cnt">{{ '共' + |
| 86 | changeNum(dicomStatisticsData.total, 0) + | 86 | changeNum(dicomStatisticsData.total, 0) + |
| 87 | '个文件, 已解析' | 87 | '个文件, 已解析' |
| 88 | + (dicomStatisticsData.progress || 0) + '%' }}</span><span v-show="dicomStatisticsData.remainingTime" class="desc">{{ '剩' + | 88 | + (!dicomStatisticsData.progress ? 0 : changeNum(dicomStatisticsData.progress, 2)) + '%' }}</span><span v-show="dicomStatisticsData.remainingTime" class="desc">{{ '剩' + |
| 89 | transferTime(dicomStatisticsData.remainingTime) | 89 | transferTime(dicomStatisticsData.remainingTime) |
| 90 | }}</span></div> | 90 | }}</span></div> |
| 91 | </div> | 91 | </div> |
| ... | @@ -96,7 +96,7 @@ | ... | @@ -96,7 +96,7 @@ |
| 96 | <CircleCloseFilled /> | 96 | <CircleCloseFilled /> |
| 97 | </el-icon><span>解析失败</span> | 97 | </el-icon><span>解析失败</span> |
| 98 | </div> | 98 | </div> |
| 99 | <el-progress :percentage="dicomStatisticsData.progress || 0" :stroke-width="12" color="#F30000" | 99 | <el-progress :percentage="!dicomStatisticsData.progress ? 0 : changeNum(dicomStatisticsData.progress, 2)" :stroke-width="12" color="#F30000" |
| 100 | :show-text="false" /> | 100 | :show-text="false" /> |
| 101 | <div style="display: flex;justify-content: space-between;"><span class="cnt">{{ '已成功解析' + | 101 | <div style="display: flex;justify-content: space-between;"><span class="cnt">{{ '已成功解析' + |
| 102 | changeNum(dicomStatisticsData.successCount, 0) + '个文件, 失败' + changeNum(dicomStatisticsData.errorCount, | 102 | changeNum(dicomStatisticsData.successCount, 0) + '个文件, 失败' + changeNum(dicomStatisticsData.errorCount, |
| ... | @@ -116,7 +116,7 @@ | ... | @@ -116,7 +116,7 @@ |
| 116 | <svg-icon name="icon-success" /> | 116 | <svg-icon name="icon-success" /> |
| 117 | </el-icon><span>解析成功</span> | 117 | </el-icon><span>解析成功</span> |
| 118 | </div> | 118 | </div> |
| 119 | <el-progress :percentage="dicomStatisticsData.progress || 100" :stroke-width="12" color="#4FA55D" | 119 | <el-progress :percentage="dicomStatisticsData.progress == 100 ? 100 : changeNum(dicomStatisticsData.progress, 2)" :stroke-width="12" color="#4FA55D" |
| 120 | :show-text="false" /> | 120 | :show-text="false" /> |
| 121 | <div style="display: flex;justify-content: space-between;"><span class="cnt">{{ '已成功解析' + | 121 | <div style="display: flex;justify-content: space-between;"><span class="cnt">{{ '已成功解析' + |
| 122 | changeNum(dicomStatisticsData.successCount, 0) | 122 | changeNum(dicomStatisticsData.successCount, 0) | ... | ... |
-
Please register or sign in to post a comment