refactor(用例管理): 用例详情缺陷列表初始化列表参数修改

This commit is contained in:
guoyuqi 2024-05-10 10:33:52 +08:00 committed by 刘瑞斌
parent 94722eb17e
commit af7be7395e
1 changed files with 3 additions and 2 deletions

View File

@ -415,7 +415,8 @@
filterParams[severityColumnId.value] = severityFilterValue.value; filterParams[severityColumnId.value] = severityFilterValue.value;
return { return {
keyword: keyword.value, keyword: keyword.value,
caseId: props.caseId, caseId: showType.value === 'link' ? props.caseId : null,
testPlanCaseId: showType.value === 'link' ? null : props.caseId,
projectId: appStore.currentProjectId, projectId: appStore.currentProjectId,
filter: { ...filterParams }, filter: { ...filterParams },
condition: { condition: {
@ -469,7 +470,7 @@
const { msPagination } = linkPropsRes.value; const { msPagination } = linkPropsRes.value;
featureCaseStore.setListCount(featureCaseStore.activeTab, msPagination?.total || 0); featureCaseStore.setListCount(featureCaseStore.activeTab, msPagination?.total || 0);
} else { } else {
setTestPlanListParams({ keyword: '', projectId: appStore.currentProjectId, caseId: props.caseId }); setTestPlanListParams({ keyword: '', projectId: appStore.currentProjectId, testPlanCaseId: props.caseId });
await testPlanLinkList(); await testPlanLinkList();
featureCaseStore.getCaseCounts(props.caseId); featureCaseStore.getCaseCounts(props.caseId);
} }