diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseDetailDTO.java b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseDetailDTO.java index ad44f153ce..f716996c36 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseDetailDTO.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseDetailDTO.java @@ -118,4 +118,7 @@ public class FunctionalCaseDetailDTO implements Serializable { @Schema(description = "变更历史数量") private Integer historyCount; + + @Schema(description = "执行结果") + private String lastExecuteResult; } diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/request/FunctionalCaseAddRequest.java b/backend/services/case-management/src/main/java/io/metersphere/functional/request/FunctionalCaseAddRequest.java index 0add5bba4d..e905da5710 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/request/FunctionalCaseAddRequest.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/request/FunctionalCaseAddRequest.java @@ -78,5 +78,6 @@ public class FunctionalCaseAddRequest implements Serializable { @Schema(description = "附件信息") private List attachments; - + @Schema(description = "执行结果") + private String lastExecuteResult; } diff --git a/frontend/src/components/business/ms-case-associate/executeResult.vue b/frontend/src/components/business/ms-case-associate/executeResult.vue new file mode 100644 index 0000000000..ff395c4cef --- /dev/null +++ b/frontend/src/components/business/ms-case-associate/executeResult.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/frontend/src/enums/caseEnum.ts b/frontend/src/enums/caseEnum.ts index 7dfc015794..8a091ab6ca 100644 --- a/frontend/src/enums/caseEnum.ts +++ b/frontend/src/enums/caseEnum.ts @@ -12,4 +12,12 @@ export enum StatusType { SKIPPED = 'icon-icon_skip_planarity', // 跳过 } +export enum LastExecuteResults { + UN_EXECUTED = 'UN_EXECUTED', + PASSED = 'PASSED', + SKIPPED = 'SKIPPED', + BLOCKED = 'BLOCKED', + FAILED = 'FAILED', +} + export default {}; diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue index c56d42b1e8..3919ec2543 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTable.vue @@ -92,19 +92,42 @@