统计-占比-百分比-处理分母可能为0
This commit is contained in:
@@ -188,7 +188,10 @@
|
||||
v-if="detailsIsShow"
|
||||
>
|
||||
<template v-slot="scope">
|
||||
{{ formatPercentage(scope.row.guildGoldFlow / scope.row.lastGuildGoldFlow) }}%
|
||||
{{
|
||||
scope.row.lastGuildGoldFlow === 0 ? '--'
|
||||
: formatPercentage(scope.row.guildGoldFlow / scope.row.lastGuildGoldFlow) + '%'
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
Reference in New Issue
Block a user