This commit is contained in:
BianLzhaoMin 2025-12-08 17:21:03 +08:00
parent 06a68a14c5
commit 45b11a12c5
4 changed files with 14 additions and 2 deletions

View File

@ -57,7 +57,9 @@
type="primary" type="primary"
@click="$emit('start-upload', null)" @click="$emit('start-upload', null)"
:disabled=" :disabled="
fileList.length === 0 || selectedTag.length === 0 fileList.length === 0 ||
selectedTag.length === 0 ||
newTagsList.length === 0
" "
> >
开始标注 开始标注
@ -79,6 +81,10 @@ export default {
type: Array, type: Array,
default: () => [], default: () => [],
}, },
newTagsList: {
type: Array,
default: () => [],
},
}, },
computed: { computed: {
uploadLimit() { uploadLimit() {

View File

@ -38,6 +38,7 @@
<FileUploader <FileUploader
:file-list="fileList" :file-list="fileList"
:selected-tag="selectedTag" :selected-tag="selectedTag"
:new-tags-list="newTagsList"
@file-change=" @file-change="
(file, fileList) => $emit('file-change', file, fileList) (file, fileList) => $emit('file-change', file, fileList)
" "
@ -96,6 +97,10 @@ export default {
type: Array, type: Array,
default: () => [], default: () => [],
}, },
newTagsList: {
type: Array,
default: () => [],
},
fileList: { fileList: {
type: Array, type: Array,
default: () => [], default: () => [],

View File

@ -1009,7 +1009,6 @@ export default {
this.$refs.saveTagInput.$refs.input.focus() this.$refs.saveTagInput.$refs.input.focus()
}) })
}, },
handleInputConfirm() { handleInputConfirm() {
let inputValue = this.inputValue let inputValue = this.inputValue

View File

@ -40,6 +40,7 @@
<FileUploader <FileUploader
:file-list="fileList" :file-list="fileList"
:selected-tag="selectedTag" :selected-tag="selectedTag"
:new-tags-list="newTagsList"
@file-change="handleFileChange" @file-change="handleFileChange"
@remove-image="removeImage" @remove-image="removeImage"
@start-upload="startUpload" @start-upload="startUpload"
@ -57,6 +58,7 @@
:tags="tags" :tags="tags"
:visible-tags="visibleTags" :visible-tags="visibleTags"
:selected-tag="selectedTag" :selected-tag="selectedTag"
:new-tags-list="newTagsList"
:file-list="fileList" :file-list="fileList"
:is-sure="isSure" :is-sure="isSure"
@hand-click="handleHandClick" @hand-click="handleHandClick"