fix : 修复实施图片

This commit is contained in:
2025-07-09 22:56:09 +08:00
parent 64e2ff0647
commit 973dc0f2e4
338 changed files with 62195 additions and 62193 deletions

View File

@@ -173,7 +173,8 @@ const handleDownload = (row) => {
}) })
} }
const deleteSingleFile = (row) => { const deleteSingleFile = (row) => {
console.log("🚀 ~ file: ", row) console.log("🚀 ~ file: ", row,otherAttachmentList.value)
console.log("🚀 row.newFile ", row.newFile)
deleteFile(row.fileId).then(res => { deleteFile(row.fileId).then(res => {
ElNotification({ ElNotification({
title: '提示', title: '提示',
@@ -183,6 +184,7 @@ const deleteSingleFile = (row) => {
if (res.code === 1000) { if (res.code === 1000) {
if (row.newFile) { if (row.newFile) {
const finalList = getLocalList().filter(item => item.fileId !== row.fileId); const finalList = getLocalList().filter(item => item.fileId !== row.fileId);
otherAttachmentList.value.splice(otherAttachmentList.value.findIndex((item) => item.fileId === row.fileId), 1);
localStorage.setItem(`implementAllFileList-${route.query.projectId}`, JSON.stringify(finalList)) localStorage.setItem(`implementAllFileList-${route.query.projectId}`, JSON.stringify(finalList))
} else { } else {
otherAttachmentList.value.splice(otherAttachmentList.value.findIndex((item) => item.fileId === row.fileId), 1); otherAttachmentList.value.splice(otherAttachmentList.value.findIndex((item) => item.fileId === row.fileId), 1);