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) => {
const FilterTypeKey: keyof typeof FilterType = CustomTypeMaps[item.type].type;
const FilterTypeKey: keyof typeof FilterType = CustomTypeMaps[item.type]?.type;
const formType = FilterType[FilterTypeKey];
const formObject = CustomTypeMaps[item.type];
const { props: formProps } = formObject;
@ -744,6 +744,7 @@
moduleIds: [],
version: '',
};
innerProject.value = '';
activeFolder.value = 'all';
activeFolderName.value = t('ms.case.associate.allCase');
resetSelector();
@ -754,6 +755,7 @@
() => props.visible,
(val) => {
if (val) {
caseType.value = props.currentSelectCase;
resetFilterParams();
resetSelector();
if (!props.hideProjectSelect) {
@ -786,10 +788,12 @@
}
function selectedProtocolsChange() {
if (innerProject.value) {
initModules();
setAllSelectModule();
initFilter();
}
}
//
function changeProject(
value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]