fix(测试用例): 修复测试用例关联接口入参错误bug

This commit is contained in:
xinxin.wu 2024-10-30 16:20:25 +08:00 committed by 刘瑞斌
parent a19aa5ee2e
commit f99ff9a304
1 changed files with 8 additions and 4 deletions

View File

@ -628,7 +628,7 @@
]; ];
// //
searchCustomFields.value = result.map((item: any) => { searchCustomFields.value = result.map((item: any) => {
const FilterTypeKey: keyof typeof FilterType = CustomTypeMaps[item.type].type; const FilterTypeKey: keyof typeof FilterType = CustomTypeMaps[item.type]?.type;
const formType = FilterType[FilterTypeKey]; const formType = FilterType[FilterTypeKey];
const formObject = CustomTypeMaps[item.type]; const formObject = CustomTypeMaps[item.type];
const { props: formProps } = formObject; const { props: formProps } = formObject;
@ -744,6 +744,7 @@
moduleIds: [], moduleIds: [],
version: '', version: '',
}; };
innerProject.value = '';
activeFolder.value = 'all'; activeFolder.value = 'all';
activeFolderName.value = t('ms.case.associate.allCase'); activeFolderName.value = t('ms.case.associate.allCase');
resetSelector(); resetSelector();
@ -754,6 +755,7 @@
() => props.visible, () => props.visible,
(val) => { (val) => {
if (val) { if (val) {
caseType.value = props.currentSelectCase;
resetFilterParams(); resetFilterParams();
resetSelector(); resetSelector();
if (!props.hideProjectSelect) { if (!props.hideProjectSelect) {
@ -786,9 +788,11 @@
} }
function selectedProtocolsChange() { function selectedProtocolsChange() {
initModules(); if (innerProject.value) {
setAllSelectModule(); initModules();
initFilter(); setAllSelectModule();
initFilter();
}
} }
// //
function changeProject( function changeProject(