fix(功能用例): 列表快捷修改评审人最后一个不能删除&脑图评审历史下拉显示处理&hover抖动&名称超出处理
--bug=1044230 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044230 --bug=1044237 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044237 --bug=1044141 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044141
This commit is contained in:
parent
edf4498960
commit
043776f9b7
|
@ -100,7 +100,12 @@
|
|||
<div class="one-line-text max-w-[80px]">
|
||||
{{ item.id }}
|
||||
</div>
|
||||
<ReviewResult :status="item.name as ReviewResultStatus" class="text-[12px]" :icon-size="12" />
|
||||
<ReviewResult
|
||||
:status="item.name as ReviewResultStatus"
|
||||
is-part
|
||||
class="text-[12px]"
|
||||
:icon-size="12"
|
||||
/>
|
||||
</div>
|
||||
<MsEmpty v-if="!reviewUserStatusList.length" />
|
||||
</div>
|
||||
|
@ -436,7 +441,6 @@
|
|||
label: t('common.tag'),
|
||||
value: res.tags,
|
||||
isTag: true,
|
||||
tagPosition: 'tr',
|
||||
},
|
||||
// 解析用例模板的自定义字段
|
||||
...res.customFields.map((e: Record<string, any>) => {
|
||||
|
@ -452,7 +456,7 @@
|
|||
};
|
||||
}
|
||||
}),
|
||||
];
|
||||
].map((item) => ({ ...item, tooltipPosition: 'tr' }));
|
||||
// 附件文件
|
||||
if (activeCaseInfo.value.attachments) {
|
||||
fileList.value = activeCaseInfo.value.attachments
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<template #overflow="{ number }">
|
||||
<a-tooltip
|
||||
:content="(Array.isArray(item.value) ? item.value : [item.value]).join(',')"
|
||||
:position="item.tagPosition ?? 'tl'"
|
||||
:position="item.tooltipPosition ?? 'tl'"
|
||||
>
|
||||
<MsTag
|
||||
:theme="item.tagTheme || 'outline'"
|
||||
|
@ -103,9 +103,9 @@
|
|||
<a-tooltip
|
||||
:content="`${item.value}`"
|
||||
:disabled="item.value === undefined || item.value === null || item.value?.toString() === ''"
|
||||
position="tl"
|
||||
:position="item.tooltipPosition ?? 'tl'"
|
||||
>
|
||||
<div>
|
||||
<div class="w-[fit-content]">
|
||||
{{
|
||||
item.value === undefined || item.value === null || item.value?.toString() === '' ? '-' : item.value
|
||||
}}
|
||||
|
@ -157,7 +157,7 @@
|
|||
tagClass?: string; // 标签自定义类名
|
||||
tagType?: TagType; // 标签类型
|
||||
tagTheme?: Theme; // 标签主题
|
||||
tagPosition?:
|
||||
tooltipPosition?:
|
||||
| 'top'
|
||||
| 'tl'
|
||||
| 'tr'
|
||||
|
|
|
@ -202,9 +202,17 @@
|
|||
<a-spin :loading="reviewHistoryListLoading" class="h-full w-full">
|
||||
<div v-for="item of reviewHistoryList" :key="item.id" class="ms-comment-list-item">
|
||||
<MSAvatar :avatar="item.userLogo" />
|
||||
<div class="flex-1">
|
||||
<div class="flex-1 overflow-hidden">
|
||||
<div class="flex items-center gap-[8px]">
|
||||
<div class="font-medium text-[var(--color-text-1)]">{{ item.userName }}</div>
|
||||
<div class="flex-1 overflow-hidden">
|
||||
<a-tooltip :content="item.userName">
|
||||
<div
|
||||
class="one-line-text w-[fit-content] max-w-[100%] font-medium text-[var(--color-text-1)]"
|
||||
>
|
||||
{{ item.userName }}
|
||||
</div>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
<div v-if="item.status === 'PASS'" class="flex items-center">
|
||||
<MsIcon type="icon-icon_succeed_filled" class="mr-[4px] text-[rgb(var(--success-6))]" />
|
||||
{{ t('caseManagement.caseReview.pass') }}
|
||||
|
|
|
@ -102,6 +102,7 @@
|
|||
allow-search
|
||||
:multiple="true"
|
||||
:placeholder="t('project.messageManagement.receiverPlaceholder')"
|
||||
:at-least-one="true"
|
||||
:fallback-option="
|
||||
(val) => ({
|
||||
label: reviewersOptions.find((e) => e.value === val)?.label || (val as string),
|
||||
|
|
Loading…
Reference in New Issue