用户端故障上报 不能删除图片只能删除自己上传的

This commit is contained in:
小朱 2025-04-21 17:54:32 +08:00
parent f385b2f2b5
commit 3211655146

View File

@ -305,7 +305,7 @@
} }
const delChangeImg = (res) => { const delChangeImg = (res) => {
const fileUniqueKey = fileLists.value[res.index].fileUniqueKey; const fileUniqueKey = fileLists.value[res.index].fileUniqueKey;
if (!fileLists.value[res.index].nodelete) { if (!fileLists.value[res.index].fileBucket) {
api.callEbikeInfo("deletedFile?fileUniqueKey=" + fileUniqueKey, {}, "get"); api.callEbikeInfo("deletedFile?fileUniqueKey=" + fileUniqueKey, {}, "get");
} }
fileLists.value.splice(res.index, 1); fileLists.value.splice(res.index, 1);
@ -371,13 +371,9 @@
const collectAndSaveImages = (data) => { const collectAndSaveImages = (data) => {
data.forEach(res => { data.forEach(res => {
res.reportAttachments.forEach(s => {
s.nodelete = true; // nodelete
});
fileLists.value = fileLists.value.concat(res.reportAttachments); // fileLists.value = fileLists.value.concat(res.reportAttachments); //
}); });
} }
function updateOptions(dataList, options) { function updateOptions(dataList, options) {