fix : 修复实施图片
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user