fix(测试计划): 修复测试计划关联用例只有功能用例添加场景集_接口集
This commit is contained in:
parent
a847140d49
commit
00853b5003
|
@ -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,7 +698,9 @@
|
|||
associationType.value = props.associatedType;
|
||||
activeFolder.value = 'all';
|
||||
initProjectList();
|
||||
initTestSet();
|
||||
if (props.associatedType === 'FUNCTIONAL') {
|
||||
initTestSet();
|
||||
}
|
||||
}
|
||||
selectPopVisible.value = false;
|
||||
keyword.value = '';
|
||||
|
|
Loading…
Reference in New Issue