提交代码

This commit is contained in:
jiang 2024-12-20 11:02:15 +08:00
parent f63a0987b6
commit 899c4cf3ef
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ export default {
}, },
getPercentage(row) { getPercentage(row) {
if (row.totalCount > 0 && row.status0Count >= 0) { if (row.totalCount > 0 && row.status0Count >= 0) {
let percentage = Math.floor((row.status1Count / row.totalCount) * 100) let percentage = Math.floor(((row.status1Count + row.status2Count) / row.totalCount) * 100)
// percentage 0 100 // percentage 0 100
return Math.min(Math.max(percentage, 0), 100) return Math.min(Math.max(percentage, 0), 100)
} }