diff --git a/src/views/dataCenter/annotationTask/child/initiatedTasks.vue b/src/views/dataCenter/annotationTask/child/initiatedTasks.vue index 426a133d..7ef95d28 100644 --- a/src/views/dataCenter/annotationTask/child/initiatedTasks.vue +++ b/src/views/dataCenter/annotationTask/child/initiatedTasks.vue @@ -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) } diff --git a/src/views/dataCenter/annotationTask/child/participatedTasks.vue b/src/views/dataCenter/annotationTask/child/participatedTasks.vue index 0d8b3599..2da3107f 100644 --- a/src/views/dataCenter/annotationTask/child/participatedTasks.vue +++ b/src/views/dataCenter/annotationTask/child/participatedTasks.vue @@ -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) }