提交代码

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

View File

@ -254,7 +254,7 @@ export default {
},
getPercentage(row) {
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
return Math.min(Math.max(percentage, 0), 100)
}

View File

@ -254,7 +254,7 @@ export default {
},
getPercentage(row) {
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
return Math.min(Math.max(percentage, 0), 100)
}