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() { function handleConfirm() {
const params = { const params = {
moduleMaps: getMapParams(), moduleMaps: getMapParams(),
syncCase: syncCase.value, syncCase: false,
apiCaseCollectionId: apiCaseCollectionId.value, apiCaseCollectionId: '',
apiScenarioCollectionId: apiScenarioCollectionId.value, apiScenarioCollectionId: '',
selectAllModule: isCheckedAll.value, selectAllModule: isCheckedAll.value,
projectId: innerProject.value, projectId: innerProject.value,
associateType: 'FUNCTIONAL', associateType: 'FUNCTIONAL',
totalCount: totalCount.value, 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) { if (params.associateType === CaseLinkEnum.API) {
params.associateType = showType.value; params.associateType = showType.value;
} else { } else {
@ -692,7 +698,9 @@
associationType.value = props.associatedType; associationType.value = props.associatedType;
activeFolder.value = 'all'; activeFolder.value = 'all';
initProjectList(); initProjectList();
initTestSet(); if (props.associatedType === 'FUNCTIONAL') {
initTestSet();
}
} }
selectPopVisible.value = false; selectPopVisible.value = false;
keyword.value = ''; keyword.value = '';