fix(测试计划): 改变模块视图后切换到全部接口

This commit is contained in:
teukkk 2024-06-13 14:02:46 +08:00 committed by 刘瑞斌
parent 2a9d37ada5
commit 222f6e7d55
11 changed files with 28 additions and 14 deletions

View File

@ -177,6 +177,8 @@
}
}
onMounted(() => {
if (!props.doNotShowShare) {
getTime();
}
});
</script>

View File

@ -362,9 +362,8 @@
const commonParams = {
testPlanId: props.planId,
projectId: appStore.currentProjectId,
moduleIds: selectModules,
protocols: props.selectedProtocols,
collectionId: collectionId.value,
...(props.treeType === 'COLLECTION' ? { collectionId: collectionId.value } : { moduleIds: selectModules }),
};
if (isBatch) {
return {

View File

@ -154,5 +154,6 @@
defineExpose({
initModules,
setActiveFolder,
});
</script>

View File

@ -98,7 +98,11 @@
function getCaseTableList() {
nextTick(() => {
initModules();
if (activeFolderId.value !== 'all') {
caseTreeRef.value?.setActiveFolder('all');
} else {
caseTableRef.value?.loadCaseList();
}
});
}

View File

@ -345,8 +345,7 @@
const commonParams = {
testPlanId: props.planId,
projectId: appStore.currentProjectId,
moduleIds: selectModules,
collectionId: collectionId.value,
...(props.treeType === 'COLLECTION' ? { collectionId: collectionId.value } : { moduleIds: selectModules }),
};
if (isBatch) {
return {

View File

@ -157,6 +157,7 @@
);
defineExpose({
setActiveFolder,
initModules,
});
</script>

View File

@ -92,7 +92,11 @@
function getCaseTableList() {
nextTick(() => {
initModules();
if (activeFolderId.value !== 'all') {
caseTreeRef.value?.setActiveFolder('all');
} else {
caseTableRef.value?.loadCaseList();
}
});
}

View File

@ -369,8 +369,7 @@
const commonParams = {
testPlanId: props.planId,
projectId: appStore.currentProjectId,
moduleIds: selectModules,
collectionId: collectionId.value,
...(props.treeType === 'COLLECTION' ? { collectionId: collectionId.value } : { moduleIds: selectModules }),
};
if (isBatch) {
return {

View File

@ -164,6 +164,7 @@
);
defineExpose({
setActiveFolder,
initModules,
});
</script>

View File

@ -94,7 +94,11 @@
function getCaseTableList() {
nextTick(() => {
initModules();
if (activeFolderId.value !== 'all') {
caseTreeRef.value?.setActiveFolder('all');
} else {
caseTableRef.value?.loadCaseList();
}
});
}

View File

@ -314,10 +314,6 @@
value: 'featureCase',
label: t('menu.caseManagement.featureCase'),
},
{
value: 'defectList',
label: t('caseManagement.featureCase.defectList'),
},
{
value: 'apiCase',
label: t('testPlan.testPlanIndex.apiCase'),
@ -326,6 +322,10 @@
value: 'apiScenario',
label: t('testPlan.testPlanIndex.apiScenarioCase'),
},
{
value: 'defectList',
label: t('caseManagement.featureCase.defectList'),
},
{
value: 'executeHistory',
label: t('testPlan.featureCase.executionHistory'),