用户端故障上报 不能删除图片只能删除自己上传的
This commit is contained in:
parent
f385b2f2b5
commit
3211655146
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user