diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue index 70bb806..6d4f122 100644 --- a/src/components/AttachmentUpload.vue +++ b/src/components/AttachmentUpload.vue @@ -344,7 +344,7 @@ const deleteSingleFile = (row, type) => { if (type === 1) { singleFile.value = null } else { - props.otherFileList.splice(props.otherFileList.findIndex((item) => item.id === row.fileId), 1); + props.otherFileList.splice(props.otherFileList.findIndex((item) => item.fileId === row.fileId), 1); } } }); diff --git a/src/components/DetailComponent/FileComponent.vue b/src/components/DetailComponent/FileComponent.vue index cb8d671..04299b3 100644 --- a/src/components/DetailComponent/FileComponent.vue +++ b/src/components/DetailComponent/FileComponent.vue @@ -152,7 +152,7 @@ const handleDelete = (row) => { type: res.code === 1000 ? 'success' : 'error' }) if (res.code === 1000) { - _value.value.splice(_value.value.findIndex((item) => item.id === row.fileId), 1); + _value.value.splice(_value.value.findIndex((item) => item.fileId === row.fileId), 1); } }); } diff --git a/src/views/project-management/implementation/upload.vue b/src/views/project-management/implementation/upload.vue index ba3c132..909e4e1 100644 --- a/src/views/project-management/implementation/upload.vue +++ b/src/views/project-management/implementation/upload.vue @@ -139,7 +139,7 @@ const handleDelete = (row) => { type: res.code === 1000 ? 'success' : 'error' }) if (res.code === 1000) { - fileList.value.splice(fileList.value.findIndex((item) => item.id === row.fileId), 1); + fileList.value.splice(fileList.value.findIndex((item) => item.fileId === row.fileId), 1); } }); } diff --git a/src/views/special-fund/add.vue b/src/views/special-fund/add.vue index b37cd65..5cbe558 100644 --- a/src/views/special-fund/add.vue +++ b/src/views/special-fund/add.vue @@ -135,8 +135,8 @@ const handleDelete = (row) => { type: res.code === 1000 ? 'success' : 'error' }) if (res.code === 1000) { - formData.value.files.splice(formData.value.files.findIndex((item) => item.id === row.fileId), 1); - showTable.value = formData.value.files.length !== 0; + formData.value.files.splice(formData.value.files.findIndex((item) => item.fileId === row.fileId), 1); + // showTable.value = formData.value.files.length !== 0; } }); }