From 651342597b9d12e8ced8a202749e6fab873cb64e Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 26 Nov 2025 15:37:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../image-captioning/components/HistoryView.vue | 1 + .../image-captioning/components/ImageResults.vue | 1 + src/views/imageCaptioning/image-captioning/index.vue | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/src/views/imageCaptioning/image-captioning/components/HistoryView.vue b/src/views/imageCaptioning/image-captioning/components/HistoryView.vue index b3bdb27..ef06f08 100644 --- a/src/views/imageCaptioning/image-captioning/components/HistoryView.vue +++ b/src/views/imageCaptioning/image-captioning/components/HistoryView.vue @@ -10,6 +10,7 @@ :is-sure="isSure" @hand-click="handleHandClickFromChild" @confirm-results="$emit('confirm-results', $event)" + @update-image-annotation="$emit('update-image-annotation')" /> diff --git a/src/views/imageCaptioning/image-captioning/components/ImageResults.vue b/src/views/imageCaptioning/image-captioning/components/ImageResults.vue index 723a4c2..e5854a0 100644 --- a/src/views/imageCaptioning/image-captioning/components/ImageResults.vue +++ b/src/views/imageCaptioning/image-captioning/components/ImageResults.vue @@ -866,6 +866,7 @@ export default { this.$message.success('标注已提交') this.cancelReAnnotation() this.imageDialogVisible = false + this.$emit('update-image-annotation') } // this.$message.success('标注已提交') // 重置状态 diff --git a/src/views/imageCaptioning/image-captioning/index.vue b/src/views/imageCaptioning/image-captioning/index.vue index 3821540..f817102 100644 --- a/src/views/imageCaptioning/image-captioning/index.vue +++ b/src/views/imageCaptioning/image-captioning/index.vue @@ -65,6 +65,7 @@ @file-change="handleFileChange" @remove-image="removeImage" @start-upload="startUpload" + @update-image-annotation="updateImageAnnotation" /> @@ -646,6 +647,10 @@ export default { } }) }, + + updateImageAnnotation() { + this.generateTestData(this.selectedItem) + }, }, }