fix(缺陷管理): 修复缺陷管理关联文件没有排除掉已存在的文件的缺陷

--bug=1036469 --user=宋天阳 【缺陷管理】缺陷详情-附件-关联文件-已关联文件仍显示 https://www.tapd.cn/55049933/s/1471496
This commit is contained in:
song-tianyang 2024-03-07 15:33:33 +08:00 committed by 刘瑞斌
parent 4fc9182441
commit abb86a6898
2 changed files with 6 additions and 1 deletions

View File

@ -282,7 +282,11 @@
const tmpObj = {}; const tmpObj = {};
if (detail.customFields && Array.isArray(detail.customFields)) { if (detail.customFields && Array.isArray(detail.customFields)) {
detail.customFields.forEach((item) => { detail.customFields.forEach((item) => {
if (item.type === 'MULTIPLE_SELECT') {
tmpObj[item.id] = JSON.parse(item.value);
} else {
tmpObj[item.id] = item.value; tmpObj[item.id] = item.value;
}
}); });
} }
// //

View File

@ -355,6 +355,7 @@
if (val && isNewFiles) { if (val && isNewFiles) {
await startUpload(); await startUpload();
} }
getListFunParams.value.combine.hiddenIds = fileList.value.filter((item) => !item.local).map((item) => item.uid);
} }
); );