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) + }, }, }