style(测试计划): 功能用例详情-执行历史-执行时是文本描述不显示步骤详情按钮

This commit is contained in:
teukkk 2024-08-09 16:34:02 +08:00 committed by Craftsman
parent 626b423396
commit 87c50418b9
2 changed files with 8 additions and 2 deletions

View File

@ -268,6 +268,7 @@ export interface ExecuteHistoryItem {
steps: string;
createTime: string;
deleted: boolean;
isStep: boolean; // 类型是:步骤描述
}
export interface moduleForm {

View File

@ -8,8 +8,13 @@
<a-tooltip :content="item.userName" :mouse-enter-delay="300">
<div class="one-line-text max-w-[300px] font-medium text-[var(--color-text-1)]">{{ item.userName }}</div>
</a-tooltip>
<a-divider v-if="props.showStepDetailTrigger" direction="vertical" margin="8px"></a-divider>
<a-trigger v-if="props.showStepDetailTrigger" trigger="click" position="bottom" :popup-translate="[0, 4]">
<a-divider v-if="props.showStepDetailTrigger && item.isStep" direction="vertical" margin="8px"></a-divider>
<a-trigger
v-if="props.showStepDetailTrigger && item.isStep"
trigger="click"
position="bottom"
:popup-translate="[0, 4]"
>
<MsButton type="text" class="!mr-0">
{{ t('system.orgTemplate.stepDetail') }}
</MsButton>