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