From 6d127d3bc6affd193a66a9c1cddb111da1fa519d Mon Sep 17 00:00:00 2001 From: jiang Date: Wed, 18 Dec 2024 09:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dataCenter/evaluateDetails.js | 44 ++++ src/api/dataCenter/mirror.js | 16 ++ .../annotationTask/child/allTasks.vue | 22 +- .../annotationTask/child/initiatedTasks.vue | 196 +++++++++-------- .../child/participatedTasks.vue | 178 +++++++++------- .../evaluate/child/addEvaluateDetails.vue | 115 ++++++++++ .../evaluate/child/customDialog.vue | 90 +++++--- .../evaluate/child/evaluateDetails.vue | 197 ++++++++++++++++++ src/views/dataCenter/evaluate/index.vue | 36 +++- 9 files changed, 687 insertions(+), 207 deletions(-) create mode 100644 src/api/dataCenter/evaluateDetails.js create mode 100644 src/views/dataCenter/evaluate/child/addEvaluateDetails.vue create mode 100644 src/views/dataCenter/evaluate/child/evaluateDetails.vue diff --git a/src/api/dataCenter/evaluateDetails.js b/src/api/dataCenter/evaluateDetails.js new file mode 100644 index 00000000..c08a2173 --- /dev/null +++ b/src/api/dataCenter/evaluateDetails.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询模型评价详情列表 +export function listDetails(query) { + return request({ + url: '/system/details/list', + method: 'get', + params: query + }) +} + +// 查询模型评价详情详细 +export function getDetails(id) { + return request({ + url: '/system/details/' + id, + method: 'get' + }) +} + +// 新增模型评价详情 +export function addDetails(data) { + return request({ + url: '/system/details/add', + method: 'post', + data: data + }) +} + +// 修改模型评价详情 +export function updateDetails(data) { + return request({ + url: '/system/details/edit', + method: 'post', + data: data + }) +} + +// 删除模型评价详情 +export function delDetails(id) { + return request({ + url: '/system/details/' + id, + method: 'post' + }) +} diff --git a/src/api/dataCenter/mirror.js b/src/api/dataCenter/mirror.js index 776cd502..ef370fe7 100644 --- a/src/api/dataCenter/mirror.js +++ b/src/api/dataCenter/mirror.js @@ -17,6 +17,22 @@ export function listAll(query) { }) } +export function getModelNameList() { + return request({ + url: '/ai/model/getModelNameList', + method: 'post' + }) +} + + +export function getModelVersionList(data) { + return request({ + url: '/ai/model/getModelVersionList', + method: 'post', + data:data + }) +} + // 查询镜像管理详细 export function getManager(id) { return request({ diff --git a/src/views/dataCenter/annotationTask/child/allTasks.vue b/src/views/dataCenter/annotationTask/child/allTasks.vue index 95e1c786..d50ba54c 100644 --- a/src/views/dataCenter/annotationTask/child/allTasks.vue +++ b/src/views/dataCenter/annotationTask/child/allTasks.vue @@ -64,18 +64,19 @@ style="width: 150px;" /> - ({{ (scope.row.totalCount - scope.row.status0Count) + '/' + scope.row.totalCount }}) + ({{ (scope.row.status1Count + scope.row.status2Count) + '/' + scope.row.totalCount }}) @@ -134,6 +136,7 @@ import addTaskDialog from '../dialog/addTaskDialog' import releaseVersionDialog from '../dialog/releaseVersionDialog.vue' import { parseTime } from '@/utils/bonus' import aiLabelDialog from '../dialog/aiLabelDialog.vue' +import store from '../../../../store' export default { components: { aiLabelDialog, releaseVersionDialog, addTaskDialog }, @@ -180,12 +183,18 @@ export default { } }, created() { + console.log() this.getList() // 初始化表格高度 this.updateTableHeight() // 监听窗口大小变化 window.addEventListener('resize', this.updateTableHeight) }, + computed: { + getUserId() { + return store.state.user.id + } + }, methods: { parseTime, updateTableHeight() { @@ -234,7 +243,6 @@ export default { }, handleDimension(row) { this.aiOpen = true - this.taskId = row.taskId }, handleAnnotation(row) { this.$tab.openPage('数据标注', '/dataCenter/annotationTask/dataAnnotations/index/' + row.taskId) @@ -244,7 +252,7 @@ export default { }, getPercentage(row) { if (row.totalCount > 0 && row.status0Count >= 0) { - let percentage = Math.floor(((row.totalCount - row.status0Count) / row.totalCount) * 100) + let percentage = Math.floor((row.status1Count / row.totalCount) * 100) // 确保 percentage 在 0 到 100 之间 return Math.min(Math.max(percentage, 0), 100) } @@ -260,7 +268,7 @@ export default { handleCancel() { this.addOpen = false this.releaseOpen = false - this.aiOpen =false; + this.aiOpen = false } } } diff --git a/src/views/dataCenter/annotationTask/child/initiatedTasks.vue b/src/views/dataCenter/annotationTask/child/initiatedTasks.vue index a713035a..d7771f96 100644 --- a/src/views/dataCenter/annotationTask/child/initiatedTasks.vue +++ b/src/views/dataCenter/annotationTask/child/initiatedTasks.vue @@ -1,7 +1,7 @@ @@ -253,10 +277,12 @@ export default { .demo-table-expand { font-size: 0; } + .demo-table-expand label { width: 90px; color: #99a9bf; } + .demo-table-expand .el-form-item { margin-right: 0; margin-bottom: 0; diff --git a/src/views/dataCenter/annotationTask/child/participatedTasks.vue b/src/views/dataCenter/annotationTask/child/participatedTasks.vue index 67941fd7..79b769f1 100644 --- a/src/views/dataCenter/annotationTask/child/participatedTasks.vue +++ b/src/views/dataCenter/annotationTask/child/participatedTasks.vue @@ -1,7 +1,7 @@ diff --git a/src/views/dataCenter/evaluate/child/addEvaluateDetails.vue b/src/views/dataCenter/evaluate/child/addEvaluateDetails.vue new file mode 100644 index 00000000..da0691c0 --- /dev/null +++ b/src/views/dataCenter/evaluate/child/addEvaluateDetails.vue @@ -0,0 +1,115 @@ + + + + + diff --git a/src/views/dataCenter/evaluate/child/customDialog.vue b/src/views/dataCenter/evaluate/child/customDialog.vue index 41062c4d..e9bed62f 100644 --- a/src/views/dataCenter/evaluate/child/customDialog.vue +++ b/src/views/dataCenter/evaluate/child/customDialog.vue @@ -4,17 +4,21 @@ :close-on-click-modal="false" > - - - - + + + - - - - + + + @@ -23,29 +27,15 @@ - - - - - - - - - - - - - - - - - - - + + + @@ -54,6 +44,7 @@ diff --git a/src/views/dataCenter/evaluate/index.vue b/src/views/dataCenter/evaluate/index.vue index 314c80d1..abda1bf2 100644 --- a/src/views/dataCenter/evaluate/index.vue +++ b/src/views/dataCenter/evaluate/index.vue @@ -70,17 +70,25 @@ - - - - - + + + + +