fix(工作台): 待办表格无跳转&测试计划表格状态过滤 (#34434)
Co-authored-by: baiqi <qi.bai@fit2cloud.com>
This commit is contained in:
parent
1dfc0fee31
commit
19536bdb23
|
@ -1,7 +1,11 @@
|
|||
<template>
|
||||
<MsCard auto-height simple>
|
||||
<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') }}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -257,6 +261,9 @@
|
|||
}
|
||||
|
||||
function goBugList() {
|
||||
if (props.type === 'my_todo') {
|
||||
return;
|
||||
}
|
||||
openNewPage(BugManagementRouteEnum.BUG_MANAGEMENT_INDEX, {
|
||||
view: props.type,
|
||||
pId: props.project,
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
<template>
|
||||
<MsCard auto-height simple>
|
||||
<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') }}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -185,6 +189,9 @@
|
|||
}
|
||||
|
||||
function goCaseReview() {
|
||||
if (props.type === 'my_todo') {
|
||||
return;
|
||||
}
|
||||
openNewPage(CaseManagementRouteEnum.CASE_MANAGEMENT_REVIEW, {
|
||||
view: props.type,
|
||||
pId: props.project,
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
<template>
|
||||
<MsCard auto-height simple>
|
||||
<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') }}
|
||||
</div>
|
||||
<a-radio-group
|
||||
|
@ -167,7 +171,12 @@
|
|||
dataIndex: 'status',
|
||||
slotName: 'status',
|
||||
filterConfig: {
|
||||
options: planStatusOptions,
|
||||
options: planStatusOptions.filter((e) => {
|
||||
if (props.type === 'my_todo') {
|
||||
return e.value !== 'COMPLETED';
|
||||
}
|
||||
return true;
|
||||
}),
|
||||
filterSlotName: FilterSlotNameEnum.TEST_PLAN_STATUS_FILTER,
|
||||
},
|
||||
showInTable: true,
|
||||
|
@ -278,6 +287,9 @@
|
|||
}
|
||||
|
||||
function goTestPlan() {
|
||||
if (props.type === 'my_todo') {
|
||||
return;
|
||||
}
|
||||
openNewPage(TestPlanRouteEnum.TEST_PLAN_INDEX, {
|
||||
showType: showType.value,
|
||||
view: props.type,
|
||||
|
|
Loading…
Reference in New Issue