Merge pull request 'fix : 修复实施图片' (#1091) from master into prod

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/1091
This commit is contained in:
2025-07-09 14:59:44 +00:00
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);