refactor(测试计划): 用例执行历史增加区别显示步骤的标识

This commit is contained in:
guoyuqi 2024-08-09 18:45:24 +08:00 committed by Craftsman
parent a17b78c141
commit 5d00e2996f
4 changed files with 9 additions and 5 deletions

View File

@ -26,5 +26,5 @@ public class TestPlanCaseExecHistoryResponse extends TestPlanCaseExecuteHistory
private String email; private String email;
@Schema(description = "步骤描述") @Schema(description = "步骤描述")
private boolean isStep = false; private boolean stepModule = false;
} }

View File

@ -705,7 +705,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService {
item.setContentText(new String(item.getContent(), StandardCharsets.UTF_8)); item.setContentText(new String(item.getContent(), StandardCharsets.UTF_8));
} }
if (item.getSteps() != null) { if (item.getSteps() != null) {
item.setStep(true); item.setStepModule(true);
item.setStepsExecResult(new String(item.getSteps(), StandardCharsets.UTF_8)); item.setStepsExecResult(new String(item.getSteps(), StandardCharsets.UTF_8));
} }
}); });

View File

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

View File

@ -8,9 +8,13 @@
<a-tooltip :content="item.userName" :mouse-enter-delay="300"> <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> <div class="one-line-text max-w-[300px] font-medium text-[var(--color-text-1)]">{{ item.userName }}</div>
</a-tooltip> </a-tooltip>
<a-divider v-if="props.showStepDetailTrigger && item.isStep" direction="vertical" margin="8px"></a-divider> <a-divider
v-if="props.showStepDetailTrigger && item.stepModule"
direction="vertical"
margin="8px"
></a-divider>
<a-trigger <a-trigger
v-if="props.showStepDetailTrigger && item.isStep" v-if="props.showStepDetailTrigger && item.stepModule"
trigger="click" trigger="click"
position="bottom" position="bottom"
:popup-translate="[0, 4]" :popup-translate="[0, 4]"