diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanApiCasePageResponse.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanApiCasePageResponse.java index f85bc8669b..ea19fc3acd 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanApiCasePageResponse.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanApiCasePageResponse.java @@ -83,4 +83,10 @@ public class TestPlanApiCasePageResponse implements Serializable { @Schema(description = "接口用例id") private String apiTestCaseId; + + @Schema(description = "创建时间") + private Long createTime; + + @Schema(description = "更新时间") + private Long updateTime; } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanApiScenarioPageResponse.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanApiScenarioPageResponse.java index 2aa0995310..72a9983be9 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanApiScenarioPageResponse.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/response/TestPlanApiScenarioPageResponse.java @@ -79,4 +79,10 @@ public class TestPlanApiScenarioPageResponse implements Serializable { @Schema(description = "脚本错误标识") private String scriptIdentifier; + + @Schema(description = "创建时间") + private Long createTime; + + @Schema(description = "更新时间") + private Long updateTime; } \ No newline at end of file diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml index deacf00e6f..bca3900607 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml @@ -414,7 +414,8 @@ atc.project_id, atc.api_definition_id, atc.create_user, - t.create_time, + atc.create_time, + atc.update_time, t.environment_id, a.module_id, a.path, diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiScenarioMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiScenarioMapper.xml index c6964068f3..c33fbc3a48 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiScenarioMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiScenarioMapper.xml @@ -93,8 +93,9 @@ api_scenario.project_id, api_scenario.create_user, api_scenario.status, + api_scenario.create_time, + api_scenario.update_time, api_scenario.id as apiScenarioId, - test_plan_api_scenario.create_time, test_plan_api_scenario.environment_id, api_scenario.module_id, test_plan_api_scenario.last_exec_result, diff --git a/frontend/src/views/test-plan/testPlan/detail/apiCase/components/caseTable.vue b/frontend/src/views/test-plan/testPlan/detail/apiCase/components/caseTable.vue index cbab5a3098..2233f51367 100644 --- a/frontend/src/views/test-plan/testPlan/detail/apiCase/components/caseTable.vue +++ b/frontend/src/views/test-plan/testPlan/detail/apiCase/components/caseTable.vue @@ -222,6 +222,30 @@ showTooltip: true, showDrag: true, }, + { + title: 'case.tableColumnCreateTime', + slotName: 'createTime', + dataIndex: 'createTime', + showInTable: true, + sortable: { + sortDirections: ['ascend', 'descend'], + sorter: true, + }, + width: 200, + showDrag: true, + }, + { + title: 'case.tableColumnUpdateTime', + slotName: 'updateTime', + dataIndex: 'updateTime', + sortable: { + sortDirections: ['ascend', 'descend'], + sorter: true, + }, + showInTable: true, + width: 200, + showDrag: true, + }, { title: 'case.caseLevel', dataIndex: 'priority', diff --git a/frontend/src/views/test-plan/testPlan/detail/apiScenario/components/scenarioTable.vue b/frontend/src/views/test-plan/testPlan/detail/apiScenario/components/scenarioTable.vue index 6b2fbec9b9..69bb231bf7 100644 --- a/frontend/src/views/test-plan/testPlan/detail/apiScenario/components/scenarioTable.vue +++ b/frontend/src/views/test-plan/testPlan/detail/apiScenario/components/scenarioTable.vue @@ -242,6 +242,30 @@ showDrag: true, showInTable: false, }, + { + title: 'apiScenario.table.columns.createTime', + slotName: 'createTime', + dataIndex: 'createTime', + showInTable: true, + sortable: { + sortDirections: ['ascend', 'descend'], + sorter: true, + }, + width: 200, + showDrag: true, + }, + { + title: 'apiScenario.table.columns.updateTime', + slotName: 'updateTime', + dataIndex: 'updateTime', + sortable: { + sortDirections: ['ascend', 'descend'], + sorter: true, + }, + showInTable: true, + width: 200, + showDrag: true, + }, { title: 'common.belongModule', dataIndex: 'moduleName', diff --git a/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue b/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue index ca16d4aae3..67ba008d27 100644 --- a/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue +++ b/frontend/src/views/test-plan/testPlan/detail/featureCase/components/caseTable.vue @@ -303,6 +303,30 @@ width: 150, showDrag: true, }, + { + title: 'caseManagement.featureCase.tableColumnCreateTime', + slotName: 'createTime', + dataIndex: 'createTime', + showInTable: true, + sortable: { + sortDirections: ['ascend', 'descend'], + sorter: true, + }, + width: 200, + showDrag: true, + }, + { + title: 'caseManagement.featureCase.tableColumnUpdateTime', + slotName: 'updateTime', + dataIndex: 'updateTime', + sortable: { + sortDirections: ['ascend', 'descend'], + sorter: true, + }, + showInTable: true, + width: 200, + showDrag: true, + }, { title: 'common.executionResult', dataIndex: 'lastExecResult',