CN-582 fix: 尝试修复NaN
This commit is contained in:
@@ -33,8 +33,8 @@
|
|||||||
<el-table-column prop="percent" :label="$t('overall.percent')" >
|
<el-table-column prop="percent" :label="$t('overall.percent')" >
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div class="top-table-percent" >
|
<div class="top-table-percent" >
|
||||||
{{totalCount2(scope.row)}}%
|
{{(this.totalCount === 0 ? 0 : parseFloat(scope.row.count / this.totalCount) * 100).toFixed(2)}}%
|
||||||
<div class="top-table-progress"><el-progress :percentage="totalCount2(scope.row)" :show-text="false" color="#23BF9A"></el-progress></div>
|
<div class="top-table-progress"><el-progress :percentage="(this.totalCount === 0 ? 0 : parseFloat(scope.row.count / this.totalCount) * 100).toFixed(2)" :show-text="false" color="#23BF9A"></el-progress></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
Reference in New Issue
Block a user