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: [], permission: [],
level: MENU_LEVEL[2], 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; // 是否允许重复添加用例 repeatCase: boolean; // 是否允许重复添加用例
passThreshold: number; passThreshold: number;
type: string; type: string;
baseAssociateCaseRequest: AssociateCaseRequest; baseAssociateCaseRequest?: AssociateCaseRequest;
groupOption?: boolean; groupOption?: boolean;
} }

View File

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