From a19a7a27da3457270c4be379aa4dc816f9492a03 Mon Sep 17 00:00:00 2001 From: weiweiw <14335254+weiweiw22@user.noreply.gitee.com> Date: Wed, 18 Dec 2024 14:53:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=99=BA=E8=83=BD=E6=A0=87=E6=B3=A8?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E5=92=8C?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E6=A0=87=E6=B3=A8=E9=A1=B5=E9=9D=A2=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataCenter/annotationTask/child/allTasks.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/dataCenter/annotationTask/child/allTasks.vue b/src/views/dataCenter/annotationTask/child/allTasks.vue index d50ba54c..da14b2f8 100644 --- a/src/views/dataCenter/annotationTask/child/allTasks.vue +++ b/src/views/dataCenter/annotationTask/child/allTasks.vue @@ -243,6 +243,8 @@ export default { }, handleDimension(row) { this.aiOpen = true + + this.taskId = row.taskId }, handleAnnotation(row) { this.$tab.openPage('数据标注', '/dataCenter/annotationTask/dataAnnotations/index/' + row.taskId) From b60696d26c071f058dcc0ec696b4b0a166f494b7 Mon Sep 17 00:00:00 2001 From: weiweiw <14335254+weiweiw22@user.noreply.gitee.com> Date: Wed, 18 Dec 2024 15:35:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=99=BA=E8=83=BD=E6=A0=87=E6=B3=A8?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E5=92=8C?= =?UTF-8?q?=E6=99=BA=E8=83=BD=E6=A0=87=E6=B3=A8=E9=A1=B5=E9=9D=A2=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dataCenter/annotationTask/dialog/aiLabelDialog.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue b/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue index 3750c81f..c93b15f0 100644 --- a/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue +++ b/src/views/dataCenter/annotationTask/dialog/aiLabelDialog.vue @@ -117,15 +117,16 @@ export default { try { this.loading = true const data = { taskId: this.taskId, intelligentAnnotationServiceId: this.form.serviceId } - autoAnnotate(data).then(response => { + await autoAnnotate(data).then(response => { console.log('response' + response.data) this.serviceList = response.data this.$message.success('智能标注成功') }) - this.cancel() } catch (error) { this.$message.error(error.message || '智能标注失败') } finally { + this.cancel() + this.getList() this.loading = false } }, @@ -133,7 +134,6 @@ export default { cancel() { this.isOpen = false this.reset() - this.getList() }, // 表单重置 reset() {