diff --git a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js index 1c70e8ba3e..d1a1bed46c 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js @@ -521,7 +521,8 @@ const message = { other: "Other", function_introduction: 'Function introduction', page_guidance: 'Page guidance', - novice_journey: 'Novice Journey' + novice_journey: 'Novice Journey', + minder_operation: 'Minder Operation' }, login: { normal_Login: "Normal Login", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js index ee6f2241f0..601425b3c0 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js @@ -513,7 +513,8 @@ const message = { other: "其他", function_introduction: '功能介绍', page_guidance: '页面指引', - novice_journey: '新手旅程' + novice_journey: '新手旅程', + minder_operation: '脑图操作' }, login: { normal_Login: "普通登录", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js index c62a31242c..bc730c0c10 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js @@ -512,7 +512,8 @@ const message = { other: "其他", function_introduction: '功能介紹', page_guidance: '頁面指引', - novice_journey: '新手旅程' + novice_journey: '新手旅程', + minder_operation: '腦圖操作' }, login: { normal_Login: "普通登錄", diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/commons/constants/OperLogConstants.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/commons/constants/OperLogConstants.java index 67623868c5..f4572c4ce8 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/commons/constants/OperLogConstants.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/commons/constants/OperLogConstants.java @@ -5,5 +5,6 @@ public enum OperLogConstants { BATCH_DEL, BATCH_UPDATE, BATCH_ADD, BATCH_RESTORE, BATCH_GC, IMPORT, EXPORT, ASSOCIATE_CASE, ASSOCIATE_ISSUE, UN_ASSOCIATE_CASE, - LOGIN, PERMISSION_UPDATE, CREATE_PRE_TEST, OTHER + LOGIN, PERMISSION_UPDATE, CREATE_PRE_TEST, OTHER, + MINDER_OPERATION } diff --git a/system-setting/frontend/src/business/common/config.js b/system-setting/frontend/src/business/common/config.js index 336e8b92c8..869c38cb87 100644 --- a/system-setting/frontend/src/business/common/config.js +++ b/system-setting/frontend/src/business/common/config.js @@ -23,7 +23,8 @@ export function LOG_TYPE(_this) { {id: 'BATCH_UPDATE', label: _this.$t('api_test.definition.request.batch_edit')}, {id: 'BATCH_ADD', label: _this.$t('commons.batch_add')}, {id: 'BATCH_RESTORE', label: _this.$t('commons.batch_restore')}, - {id: 'BATCH_GC', label: _this.$t('commons.batch_gc')} + {id: 'BATCH_GC', label: _this.$t('commons.batch_gc')}, + {id: 'MINDER_OPERATION', label: _this.$t('commons.minder_operation')}, ]; return LOG_TYPE; } @@ -52,6 +53,7 @@ export function LOG_TYPE_MAP(_this) { ['BATCH_ADD', _this.$t('commons.batch_add')], ['BATCH_RESTORE', _this.$t('commons.batch_restore')], ['BATCH_GC', _this.$t('commons.batch_gc')], + ['MINDER_OPERATION', _this.$t('commons.minder_operation')], ]); return LOG_TYPE_MAP; } diff --git a/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java b/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java index 25851f83ec..4644da095f 100644 --- a/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java +++ b/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java @@ -377,7 +377,7 @@ public class TestCaseController { @PostMapping("/minder/edit") @RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ_EDIT) - @MsAuditLog(module = OperLogModule.TRACK_TEST_CASE, type = OperLogConstants.BATCH_UPDATE, project = "#request.projectId", beforeEvent = "#msClass.getCaseLogDetails(#request)", content = "#msClass.getCaseLogDetails(#request)", msClass = TestCaseService.class) + @MsAuditLog(module = OperLogModule.TRACK_TEST_CASE, type = OperLogConstants.MINDER_OPERATION, project = "#request.projectId", beforeEvent = "#msClass.getCaseLogDetails(#request)", content = "#msClass.getCaseLogDetails(#request)", msClass = TestCaseService.class) public void minderEdit(@RequestBody TestCaseMinderEditRequest request) { testCaseService.minderEdit(request); }