feat(用例管理): 评审详情页面开启我的评审状态禁用状态下拉选项&我的评审状态显示

This commit is contained in:
WangXu10 2024-02-07 10:38:02 +08:00 committed by Craftsman
parent cf5357fb4f
commit 1a42390ec5
2 changed files with 10 additions and 2 deletions

View File

@ -215,6 +215,7 @@ export interface ReviewCaseItem {
reviewers: string[]; reviewers: string[];
reviewNames: string[]; reviewNames: string[];
status: string; status: string;
myStatus: string;
moduleId: string; moduleId: string;
moduleName: string; moduleName: string;
} }

View File

@ -32,7 +32,7 @@
@search="loadCaseList" @search="loadCaseList"
@press-enter="loadCaseList" @press-enter="loadCaseList"
/> />
<a-select v-model:model-value="type" :options="typeOptions" class="w-[92px]" @change="loadCaseList"> <a-select v-model:model-value="type" :options="typeOptions" class="w-[92px]" @change="loadCaseList" :disabled="onlyMineStatus">
</a-select> </a-select>
</div> </div>
<a-spin :loading="caseListLoading" class="h-[calc(100%-46px)] w-full"> <a-spin :loading="caseListLoading" class="h-[calc(100%-46px)] w-full">
@ -45,7 +45,14 @@
> >
<div class="mb-[4px] flex items-center justify-between"> <div class="mb-[4px] flex items-center justify-between">
<div>{{ item.num }}</div> <div>{{ item.num }}</div>
<div class="flex items-center gap-[4px] leading-[22px]"> <div v-if="onlyMineStatus" class="flex items-center gap-[4px] leading-[22px]">
<MsIcon
:type="reviewResultMap[item.myStatus]?.icon"
:style="{ color: reviewResultMap[item.myStatus]?.color }"
/>
{{ t(reviewResultMap[item.myStatus]?.label) }}
</div>
<div v-else class="flex items-center gap-[4px] leading-[22px]">
<MsIcon <MsIcon
:type="reviewResultMap[item.status]?.icon" :type="reviewResultMap[item.status]?.icon"
:style="{ color: reviewResultMap[item.status]?.color }" :style="{ color: reviewResultMap[item.status]?.color }"