diff --git a/src/router/index.js b/src/router/index.js index 6ed964a2..69c5f2cc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -158,7 +158,7 @@ export const dynamicRoutes = [ path: 'index/:evaluateId(\\d+)', component: () => import('@/views/dataCenter/evaluate/child/evaluateDetails'), name: 'Data', - meta: { title: '模型评价详情', activeMenu: '/dataCenter/evaluateDetails' } + meta: { title: '模型评价详情', activeMenu: '/dataCenter/evaluate/evaluateDetails' } } ] }, diff --git a/src/views/dataCenter/annotationTask/child/allTasks.vue b/src/views/dataCenter/annotationTask/child/allTasks.vue index da14b2f8..27a81a9c 100644 --- a/src/views/dataCenter/annotationTask/child/allTasks.vue +++ b/src/views/dataCenter/annotationTask/child/allTasks.vue @@ -64,7 +64,9 @@ style="width: 150px;" /> - ({{ (scope.row.status1Count + scope.row.status2Count) + '/' + scope.row.totalCount }}) + ({{ + (scope.row.status1Count + scope.row.status2Count) + '/' + scope.row.totalCount + }}) @@ -76,14 +78,17 @@ @@ -192,6 +198,8 @@ export default { }, computed: { getUserId() { + + console.log('1,2'.split(',').includes(store.state.user.id + '')) return store.state.user.id } }, @@ -254,7 +262,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/customLabelStudio.vue b/src/views/dataCenter/annotationTask/child/customLabelStudio.vue index fe6bd35b..889de443 100644 --- a/src/views/dataCenter/annotationTask/child/customLabelStudio.vue +++ b/src/views/dataCenter/annotationTask/child/customLabelStudio.vue @@ -72,7 +72,6 @@ export default { id: this.id, data: { image: this.fileUrl }, }; - if (this.annotations) { task.annotations = this.getAnnotations(); } diff --git a/src/views/dataCenter/annotationTask/child/dataAnnotations.vue b/src/views/dataCenter/annotationTask/child/dataAnnotations.vue index 5d8d6ae6..5757991b 100644 --- a/src/views/dataCenter/annotationTask/child/dataAnnotations.vue +++ b/src/views/dataCenter/annotationTask/child/dataAnnotations.vue @@ -72,7 +72,9 @@