diff --git a/src/components/CustomFormComponents/File.vue b/src/components/CustomFormComponents/File.vue index 278d37d52..4dc120d31 100644 --- a/src/components/CustomFormComponents/File.vue +++ b/src/components/CustomFormComponents/File.vue @@ -256,6 +256,23 @@ export default { const index = this.$refs.importFileAboutStand.uploadFiles.findIndex(e => e.response.data.id === file.response.data.id); this.$refs.importFileAboutStand.uploadFiles.splice(index, 1); this.showFileList.splice(index, 1) + const value = this.value + let ids = value.split(',') + if (file.response) { + let fileIds = file.response.data.id + let newIdList = this.removeArray(ids, fileIds) + let newStr = '' + if (newIdList != null && newIdList.length > 0) { + for (let i = 0; i < newIdList.length; i++) { + if (newIdList[i] !== '') { + newStr += newIdList[i] + ',' + } + } + this.$emit('input', newStr) + } else { + this.$emit('input', '') + } + } }, // 修改 handleModifyName(file) {