fix(测试计划): 修复测试计划关联用例只有功能用例添加场景集_接口集

This commit is contained in:
xinxin.wu 2024-07-15 10:14:19 +08:00 committed by 刘瑞斌
parent a847140d49
commit 00853b5003
1 changed files with 12 additions and 4 deletions

View File

@ -548,15 +548,21 @@
function handleConfirm() {
const params = {
moduleMaps: getMapParams(),
syncCase: syncCase.value,
apiCaseCollectionId: apiCaseCollectionId.value,
apiScenarioCollectionId: apiScenarioCollectionId.value,
syncCase: false,
apiCaseCollectionId: '',
apiScenarioCollectionId: '',
selectAllModule: isCheckedAll.value,
projectId: innerProject.value,
associateType: 'FUNCTIONAL',
totalCount: totalCount.value,
};
if (props.associatedType === CaseLinkEnum.FUNCTIONAL) {
params.apiCaseCollectionId = apiCaseCollectionId.value;
params.apiScenarioCollectionId = apiScenarioCollectionId.value;
params.syncCase = syncCase.value;
}
if (params.associateType === CaseLinkEnum.API) {
params.associateType = showType.value;
} else {
@ -692,8 +698,10 @@
associationType.value = props.associatedType;
activeFolder.value = 'all';
initProjectList();
if (props.associatedType === 'FUNCTIONAL') {
initTestSet();
}
}
selectPopVisible.value = false;
keyword.value = '';
selectedIds.value = [];