From abb86a6898923010c9fcf5f4b686f22af062b80d Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Thu, 7 Mar 2024 15:33:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86=E5=85=B3?= =?UTF-8?q?=E8=81=94=E6=96=87=E4=BB=B6=E6=B2=A1=E6=9C=89=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E6=8E=89=E5=B7=B2=E5=AD=98=E5=9C=A8=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1036469 --user=宋天阳 【缺陷管理】缺陷详情-附件-关联文件-已关联文件仍显示 https://www.tapd.cn/55049933/s/1471496 --- .../views/bug-management/components/bug-detail-drawer.vue | 6 +++++- .../src/views/bug-management/components/bugDetailTab.vue | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/bug-management/components/bug-detail-drawer.vue b/frontend/src/views/bug-management/components/bug-detail-drawer.vue index 3ad30588cd..55f43cd3d9 100644 --- a/frontend/src/views/bug-management/components/bug-detail-drawer.vue +++ b/frontend/src/views/bug-management/components/bug-detail-drawer.vue @@ -282,7 +282,11 @@ const tmpObj = {}; if (detail.customFields && Array.isArray(detail.customFields)) { detail.customFields.forEach((item) => { - tmpObj[item.id] = item.value; + if (item.type === 'MULTIPLE_SELECT') { + tmpObj[item.id] = JSON.parse(item.value); + } else { + tmpObj[item.id] = item.value; + } }); } // 初始化自定义字段 diff --git a/frontend/src/views/bug-management/components/bugDetailTab.vue b/frontend/src/views/bug-management/components/bugDetailTab.vue index e816549dcb..a2bf1c115c 100644 --- a/frontend/src/views/bug-management/components/bugDetailTab.vue +++ b/frontend/src/views/bug-management/components/bugDetailTab.vue @@ -355,6 +355,7 @@ if (val && isNewFiles) { await startUpload(); } + getListFunParams.value.combine.hiddenIds = fileList.value.filter((item) => !item.local).map((item) => item.uid); } );