fix(测试计划): 补充pathMap

This commit is contained in:
teukkk 2024-05-09 17:43:40 +08:00 committed by Craftsman
parent 9e8bfe02a0
commit 10a9345e56
3 changed files with 13 additions and 6 deletions

View File

@ -958,6 +958,13 @@ export const pathMap: PathMapItem[] = [
permission: [],
level: MENU_LEVEL[2],
},
{
key: 'TEST_PLAN_INDEX_DETAIL', // 测试计划-测试计划-测试计划详情
locale: 'menu.testPlan.testPlanDetail',
route: RouteEnum.TEST_PLAN_INDEX_DETAIL,
permission: [],
level: MENU_LEVEL[2],
},
],
},
{

View File

@ -60,7 +60,7 @@ export interface AddTestPlanParams {
repeatCase: boolean; // 是否允许重复添加用例
passThreshold: number;
type: string;
baseAssociateCaseRequest: AssociateCaseRequest;
baseAssociateCaseRequest?: AssociateCaseRequest;
groupOption?: boolean;
}

View File

@ -75,7 +75,7 @@
<a-divider margin="4px" direction="vertical" />
<MsButton
type="text"
:disabled="form.baseAssociateCaseRequest.selectIds.length === 0"
:disabled="form.baseAssociateCaseRequest?.selectIds.length === 0"
@click="clearSelectedCases"
>
{{ t('caseManagement.caseReview.clearSelectedCases') }}
@ -86,9 +86,9 @@
<div class="text-[var(--color-text-2)]">
{{
t('caseManagement.caseReview.selectedCases', {
count: form.baseAssociateCaseRequest.selectAll
? form.baseAssociateCaseRequest.totalCount
: form.baseAssociateCaseRequest.selectIds.length,
count: form.baseAssociateCaseRequest?.selectAll
? form.baseAssociateCaseRequest?.totalCount
: form.baseAssociateCaseRequest?.selectIds.length,
})
}}
</div>
@ -127,7 +127,7 @@
</MsDrawer>
<AssociateDrawer
v-model:visible="caseAssociateVisible"
:has-not-associated-ids="form.baseAssociateCaseRequest.selectIds"
:has-not-associated-ids="form.baseAssociateCaseRequest?.selectIds"
@success="writeAssociateCases"
/>
</template>