提交代码
This commit is contained in:
parent
f63a0987b6
commit
899c4cf3ef
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue