fix(功能用例): 评审-文案修改&内容过长超出处理&评审结果未变更的缺陷

--bug=1044083 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044083
--bug=1044086 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044086
--bug=1044080 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044080
--bug=1044097 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044097
--bug=1044115 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044115
This commit is contained in:
teukkk 2024-07-17 14:46:45 +08:00 committed by 刘瑞斌
parent 0b3213f387
commit 38d0d3a161
7 changed files with 15 additions and 6 deletions

View File

@ -8,6 +8,7 @@
font-size: 14px !important;
line-height: 22px !important;
color: var(--color-text-2) !important;
word-break: break-all !important;
ul {
list-style: disc !important;
li[data-type='taskItem'] {

View File

@ -538,7 +538,7 @@
},
{
value: 'disassociate',
label: t('caseManagement.caseReview.disassociate'),
label: t('caseManagement.caseReview.disassociateCase'),
permission: ['CASE_REVIEW:READ+RELEVANCE'],
onClick: () => {
emit('operation', 'disassociate', node);

View File

@ -2,7 +2,7 @@
<MsCard :min-width="1100" has-breadcrumb hide-footer no-content-padding hide-divider show-full-screen>
<template #headerLeft>
<a-tooltip :content="reviewDetail.name">
<div class="one-line-text mr-[8px] max-w-[260px] font-medium text-[var(--color-text-000)]">
<div class="one-line-text mr-[8px] max-w-[300px] font-medium text-[var(--color-text-000)]">
{{ reviewDetail.name }}
</div>
</a-tooltip>
@ -54,7 +54,7 @@
<div>{{ item.num }}</div>
<div v-if="onlyMineStatus" class="flex items-center gap-[4px] leading-[22px]">
<MsIcon
:type="reviewResultMap[item.myStatus]?.icon"
:type="reviewResultMap[item.myStatus]?.icon ?? ''"
:style="{ color: reviewResultMap[item.myStatus]?.color }"
/>
{{ t(reviewResultMap[item.myStatus]?.label) }}
@ -110,7 +110,7 @@
<div class="flex items-center">
<MsIcon type="icon-icon_folder_filled1" class="mr-[4px] text-[var(--color-text-4)]" />
<a-tooltip :content="caseDetail.moduleName || t('common.root')">
<div class="one-line-text mr-[8px] max-w-[260px] font-medium text-[var(--color-text-000)]">
<div class="one-line-text mr-[8px] max-w-[300px] font-medium text-[var(--color-text-000)]">
{{ caseDetail.moduleName || t('common.root') }}
</div>
</a-tooltip>
@ -383,7 +383,8 @@
const activeCaseId = ref(route.query.caseId as string);
const activeCaseReviewStatus = computed(() => {
return caseList.value.find((e) => e.caseId === activeCaseId.value)?.status;
const activeCase = caseList.value.find((e) => e.caseId === activeCaseId.value);
return onlyMineStatus.value ? activeCase?.myStatus : activeCase?.status;
});
const defaultCaseDetail: DetailCase = {
id: '',

View File

@ -36,6 +36,11 @@
? {
...reviewResultMap,
...{
PASS: {
label: 'common.pass',
color: 'rgb(var(--success-6))',
icon: 'icon-icon_succeed_filled',
},
UNDER_REVIEWED: {
label: 'caseManagement.caseReview.suggestion',
color: 'rgb(var(--warning-6))',

View File

@ -12,7 +12,7 @@
>
<template #headerLeft>
<a-tooltip :content="reviewDetail.name">
<div class="one-line-text mr-[8px] max-w-[260px] font-medium text-[var(--color-text-000)]">
<div class="one-line-text mr-[8px] max-w-[300px] font-medium text-[var(--color-text-000)]">
{{ reviewDetail.name }}
</div>
</a-tooltip>

View File

@ -91,6 +91,7 @@ export default {
'caseManagement.caseReview.reviewResultTip':
'When "See only mine" is turned on, you can view my review results on the list',
'caseManagement.caseReview.disassociate': 'Disassociate',
'caseManagement.caseReview.disassociateCase': 'Disassociate case',
'caseManagement.caseReview.disassociateConfirmTitle': 'Are you sure to disassociate {count} use cases?',
'caseManagement.caseReview.version': 'Version',
'caseManagement.caseReview.unReview': 'Unreviewed',

View File

@ -84,6 +84,7 @@ export default {
'caseManagement.caseReview.reviewResult': '评审结果',
'caseManagement.caseReview.reviewResultTip': '“只看我的”开启时,可在列表上查看我的评审结果',
'caseManagement.caseReview.disassociate': '取消关联',
'caseManagement.caseReview.disassociateCase': '取消关联用例',
'caseManagement.caseReview.disassociateConfirmTitle': '确认取消关联 {count} 条用例吗?',
'caseManagement.caseReview.version': '版本',
'caseManagement.caseReview.unReview': '未评审',