fix(工作台): 待办表格无跳转&测试计划表格状态过滤 (#34434)

Co-authored-by: baiqi <qi.bai@fit2cloud.com>
This commit is contained in:
MeterSphere Bot 2024-11-28 12:51:04 +08:00 committed by GitHub
parent 1dfc0fee31
commit 19536bdb23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 30 additions and 4 deletions

View File

@ -1,7 +1,11 @@
<template> <template>
<MsCard auto-height simple> <MsCard auto-height simple>
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="cursor-pointer font-medium text-[var(--color-text-1)]" @click="goBugList"> <div
class="font-medium text-[var(--color-text-1)]"
:class="props.type !== 'my_todo' ? 'cursor-pointer' : ''"
@click="goBugList"
>
{{ t('ms.workbench.myFollowed.feature.BUG') }} {{ t('ms.workbench.myFollowed.feature.BUG') }}
</div> </div>
</div> </div>
@ -257,6 +261,9 @@
} }
function goBugList() { function goBugList() {
if (props.type === 'my_todo') {
return;
}
openNewPage(BugManagementRouteEnum.BUG_MANAGEMENT_INDEX, { openNewPage(BugManagementRouteEnum.BUG_MANAGEMENT_INDEX, {
view: props.type, view: props.type,
pId: props.project, pId: props.project,

View File

@ -1,7 +1,11 @@
<template> <template>
<MsCard auto-height simple> <MsCard auto-height simple>
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="cursor-pointer font-medium text-[var(--color-text-1)]" @click="goCaseReview"> <div
class="font-medium text-[var(--color-text-1)]"
:class="props.type !== 'my_todo' ? 'cursor-pointer' : ''"
@click="goCaseReview"
>
{{ t('ms.workbench.myFollowed.feature.CASE_REVIEW') }} {{ t('ms.workbench.myFollowed.feature.CASE_REVIEW') }}
</div> </div>
</div> </div>
@ -185,6 +189,9 @@
} }
function goCaseReview() { function goCaseReview() {
if (props.type === 'my_todo') {
return;
}
openNewPage(CaseManagementRouteEnum.CASE_MANAGEMENT_REVIEW, { openNewPage(CaseManagementRouteEnum.CASE_MANAGEMENT_REVIEW, {
view: props.type, view: props.type,
pId: props.project, pId: props.project,

View File

@ -1,7 +1,11 @@
<template> <template>
<MsCard auto-height simple> <MsCard auto-height simple>
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="cursor-pointer font-medium text-[var(--color-text-1)]" @click="goTestPlan"> <div
class="font-medium text-[var(--color-text-1)]"
:class="props.type !== 'my_todo' ? 'cursor-pointer' : ''"
@click="goTestPlan"
>
{{ t('ms.workbench.myFollowed.feature.TEST_PLAN') }} {{ t('ms.workbench.myFollowed.feature.TEST_PLAN') }}
</div> </div>
<a-radio-group <a-radio-group
@ -167,7 +171,12 @@
dataIndex: 'status', dataIndex: 'status',
slotName: 'status', slotName: 'status',
filterConfig: { filterConfig: {
options: planStatusOptions, options: planStatusOptions.filter((e) => {
if (props.type === 'my_todo') {
return e.value !== 'COMPLETED';
}
return true;
}),
filterSlotName: FilterSlotNameEnum.TEST_PLAN_STATUS_FILTER, filterSlotName: FilterSlotNameEnum.TEST_PLAN_STATUS_FILTER,
}, },
showInTable: true, showInTable: true,
@ -278,6 +287,9 @@
} }
function goTestPlan() { function goTestPlan() {
if (props.type === 'my_todo') {
return;
}
openNewPage(TestPlanRouteEnum.TEST_PLAN_INDEX, { openNewPage(TestPlanRouteEnum.TEST_PLAN_INDEX, {
showType: showType.value, showType: showType.value,
view: props.type, view: props.type,