From f22b303187ccf020f81dc3269dcde5acc97b0262 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Mon, 1 Apr 2024 20:11:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=90=8E=E5=88=B7=E6=96=B0=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1035887 --user=王旭 【用例管理】功能用例-导入用例中的字段包含自定义字段但是该字段未添加到用例模板,导入后该字段也显示了。 https://www.tapd.cn/55049933/s/1485563 --- .../caseManagementFeature/components/caseTable.vue | 1 + .../views/case-management/caseManagementFeature/index.vue | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue index c6e812b156..3e1f7faab4 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue @@ -1602,6 +1602,7 @@ defineExpose({ emitTableParams, + initData, }); await getDefaultFields(); diff --git a/frontend/src/views/case-management/caseManagementFeature/index.vue b/frontend/src/views/case-management/caseManagementFeature/index.vue index 9ba2ab9038..aab8e07bea 100644 --- a/frontend/src/views/case-management/caseManagementFeature/index.vue +++ b/frontend/src/views/case-management/caseManagementFeature/index.vue @@ -365,7 +365,7 @@ validateResultModal.value = false; caseTreeRef.value.initModules(); } - + const caseTableRef = ref(); const importLoading = ref(false); // 确定导入 async function conFirmImport() { @@ -380,7 +380,7 @@ Message.success(t('caseManagement.featureCase.importSuccess')); validateResultModal.value = false; showExcelModal.value = false; - caseTreeRef.value.initModules(); + caseTableRef.value.initData(); } catch (error) { console.log(error); } finally { @@ -388,8 +388,6 @@ } } - const caseTableRef = ref(); - function dragUpdate() { caseTableRef.value.emitTableParams(); }