diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioLogService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioLogService.java index 3f9cf9357f..e40571439d 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioLogService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioLogService.java @@ -35,7 +35,7 @@ public class ApiScenarioLogService { private ApiScenarioMapper apiScenarioMapper; public void batchEditLog(List scenarioList, String operator, String projectId) { - saveBatchLog(projectId, scenarioList, "/api/scenario/batch/edit", operator, OperationLogType.UPDATE.name(), false); + saveBatchLog(projectId, scenarioList, "/api/scenario/batch/edit", operator, OperationLogType.UPDATE.name(), true); } diff --git a/frontend/src/views/api-test/scenario/components/changeHistory.vue b/frontend/src/views/api-test/scenario/components/changeHistory.vue index a45c62a62a..9dd26fdaf0 100644 --- a/frontend/src/views/api-test/scenario/components/changeHistory.vue +++ b/frontend/src/views/api-test/scenario/components/changeHistory.vue @@ -44,15 +44,18 @@ width: 150, }, { - title: 'apiScenario.operationUser', + title: 'mockManagement.operationUser', dataIndex: 'createUserName', showTooltip: true, width: 150, }, { - title: 'apiScenario.updateTime', - dataIndex: 'updateTime', - showTooltip: true, + title: 'apiTestManagement.updateTime', + dataIndex: 'createTime', + sortable: { + sortDirections: ['ascend', 'descend'], + sorter: true, + }, width: 180, }, // { @@ -74,7 +77,7 @@ (item) => ({ ...item, type: t(operationTypeOptions.find((e) => e.value === item.type)?.label || ''), - updateTime: dayjs(item.updateTime).format('YYYY-MM-DD HH:mm:ss'), + createTime: dayjs(item.createTime).format('YYYY-MM-DD HH:mm:ss'), }) );