refactor(测试计划): 用例执行历史增加区别显示步骤的标识
This commit is contained in:
parent
a17b78c141
commit
5d00e2996f
|
@ -26,5 +26,5 @@ public class TestPlanCaseExecHistoryResponse extends TestPlanCaseExecuteHistory
|
|||
private String email;
|
||||
|
||||
@Schema(description = "步骤描述")
|
||||
private boolean isStep = false;
|
||||
private boolean stepModule = false;
|
||||
}
|
||||
|
|
|
@ -705,7 +705,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService {
|
|||
item.setContentText(new String(item.getContent(), StandardCharsets.UTF_8));
|
||||
}
|
||||
if (item.getSteps() != null) {
|
||||
item.setStep(true);
|
||||
item.setStepModule(true);
|
||||
item.setStepsExecResult(new String(item.getSteps(), StandardCharsets.UTF_8));
|
||||
}
|
||||
});
|
||||
|
|
|
@ -268,7 +268,7 @@ export interface ExecuteHistoryItem {
|
|||
steps: string;
|
||||
createTime: string;
|
||||
deleted: boolean;
|
||||
isStep: boolean; // 类型是:步骤描述
|
||||
stepModule: boolean; // 类型是:步骤描述
|
||||
}
|
||||
|
||||
export interface moduleForm {
|
||||
|
|
|
@ -8,9 +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 && item.isStep" direction="vertical" margin="8px"></a-divider>
|
||||
<a-divider
|
||||
v-if="props.showStepDetailTrigger && item.stepModule"
|
||||
direction="vertical"
|
||||
margin="8px"
|
||||
></a-divider>
|
||||
<a-trigger
|
||||
v-if="props.showStepDetailTrigger && item.isStep"
|
||||
v-if="props.showStepDetailTrigger && item.stepModule"
|
||||
trigger="click"
|
||||
position="bottom"
|
||||
:popup-translate="[0, 4]"
|
||||
|
|
Loading…
Reference in New Issue