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