fix(用例管理): 导入后刷新列表

--bug=1035887 --user=王旭 【用例管理】功能用例-导入用例中的字段包含自定义字段但是该字段未添加到用例模板,导入后该字段也显示了。 https://www.tapd.cn/55049933/s/1485563
This commit is contained in:
WangXu10 2024-04-01 20:11:02 +08:00 committed by Craftsman
parent b888024dea
commit f22b303187
2 changed files with 3 additions and 4 deletions

View File

@ -1602,6 +1602,7 @@
defineExpose({ defineExpose({
emitTableParams, emitTableParams,
initData,
}); });
await getDefaultFields(); await getDefaultFields();
</script> </script>

View File

@ -365,7 +365,7 @@
validateResultModal.value = false; validateResultModal.value = false;
caseTreeRef.value.initModules(); caseTreeRef.value.initModules();
} }
const caseTableRef = ref();
const importLoading = ref<boolean>(false); const importLoading = ref<boolean>(false);
// //
async function conFirmImport() { async function conFirmImport() {
@ -380,7 +380,7 @@
Message.success(t('caseManagement.featureCase.importSuccess')); Message.success(t('caseManagement.featureCase.importSuccess'));
validateResultModal.value = false; validateResultModal.value = false;
showExcelModal.value = false; showExcelModal.value = false;
caseTreeRef.value.initModules(); caseTableRef.value.initData();
} catch (error) { } catch (error) {
console.log(error); console.log(error);
} finally { } finally {
@ -388,8 +388,6 @@
} }
} }
const caseTableRef = ref();
function dragUpdate() { function dragUpdate() {
caseTableRef.value.emitTableParams(); caseTableRef.value.emitTableParams();
} }