From 3fbea438c6e8e60bc42440d662013ba07729432f Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 15 Sep 2021 17:29:49 +0800 Subject: [PATCH] =?UTF-8?q?feat=5F=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=5F?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97=E7=9A=84=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/CustomFieldController.java | 6 +- .../controller/IssueTemplateController.java | 6 +- .../TestCaseTemplateController.java | 6 +- .../resources/i18n/messages_en_US.properties | 4 +- .../resources/i18n/messages_zh_CN.properties | 4 +- .../resources/i18n/messages_zh_TW.properties | 6 +- .../settings/operatinglog/OperatingLog.vue | 331 +++++++++--------- .../settings/operatinglog/config.js | 40 +++ 8 files changed, 224 insertions(+), 179 deletions(-) diff --git a/backend/src/main/java/io/metersphere/controller/CustomFieldController.java b/backend/src/main/java/io/metersphere/controller/CustomFieldController.java index 117a11330f..7f2250ed8c 100644 --- a/backend/src/main/java/io/metersphere/controller/CustomFieldController.java +++ b/backend/src/main/java/io/metersphere/controller/CustomFieldController.java @@ -26,7 +26,7 @@ public class CustomFieldController { private CustomFieldService customFieldService; @PostMapping("/add") - @MsAuditLog(module = "workspace_template_settings", type = OperLogConstants.CREATE, content = "#msClass.getLogDetails(#customField.id)", msClass = CustomFieldService.class) + @MsAuditLog(module = "workspace_template_settings_field", type = OperLogConstants.CREATE, content = "#msClass.getLogDetails(#customField.id)", msClass = CustomFieldService.class) public String add(@RequestBody CustomField customField) { return customFieldService.add(customField); } @@ -43,13 +43,13 @@ public class CustomFieldController { } @GetMapping("/delete/{id}") - @MsAuditLog(module = "workspace_template_settings", type = OperLogConstants.DELETE, beforeEvent = "#msClass.getLogDetails(#id)", msClass = CustomFieldService.class) + @MsAuditLog(module = "workspace_template_settings_field", type = OperLogConstants.DELETE, beforeEvent = "#msClass.getLogDetails(#id)", msClass = CustomFieldService.class) public void delete(@PathVariable(value = "id") String id) { customFieldService.delete(id); } @PostMapping("/update") - @MsAuditLog(module = "workspace_template_settings", type = OperLogConstants.UPDATE, beforeEvent = "#msClass.getLogDetails(#customField.id)", content = "#msClass.getLogDetails(#customField.id)", msClass = CustomFieldService.class) + @MsAuditLog(module = "workspace_template_settings_field", type = OperLogConstants.UPDATE, beforeEvent = "#msClass.getLogDetails(#customField.id)", content = "#msClass.getLogDetails(#customField.id)", msClass = CustomFieldService.class) public void update(@RequestBody CustomField customField) { customFieldService.update(customField); } diff --git a/backend/src/main/java/io/metersphere/controller/IssueTemplateController.java b/backend/src/main/java/io/metersphere/controller/IssueTemplateController.java index 64c3df9918..bacb2ba9e1 100644 --- a/backend/src/main/java/io/metersphere/controller/IssueTemplateController.java +++ b/backend/src/main/java/io/metersphere/controller/IssueTemplateController.java @@ -27,7 +27,7 @@ public class IssueTemplateController { private IssueTemplateService issueTemplateService; @PostMapping("/add") - @MsAuditLog(module = "workspace_template_settings", type = OperLogConstants.CREATE, content = "#msClass.getLogDetails(#request.id)", msClass = IssueTemplateService.class) + @MsAuditLog(module = "workspace_template_settings_issue", type = OperLogConstants.CREATE, content = "#msClass.getLogDetails(#request.id)", msClass = IssueTemplateService.class) public void add(@RequestBody UpdateIssueTemplateRequest request) { issueTemplateService.add(request); } @@ -39,13 +39,13 @@ public class IssueTemplateController { } @GetMapping("/delete/{id}") - @MsAuditLog(module = "workspace_template_settings", type = OperLogConstants.DELETE, beforeEvent = "#msClass.getLogDetails(#id)", msClass = IssueTemplateService.class) + @MsAuditLog(module = "workspace_template_settings_issue", type = OperLogConstants.DELETE, beforeEvent = "#msClass.getLogDetails(#id)", msClass = IssueTemplateService.class) public void delete(@PathVariable(value = "id") String id) { issueTemplateService.delete(id); } @PostMapping("/update") - @MsAuditLog(module = "workspace_template_settings", type = OperLogConstants.UPDATE, beforeEvent = "#msClass.getLogDetails(#request.id)", content = "#msClass.getLogDetails(#request.id)", msClass = IssueTemplateService.class) + @MsAuditLog(module = "workspace_template_settings_issue", type = OperLogConstants.UPDATE, beforeEvent = "#msClass.getLogDetails(#request.id)", content = "#msClass.getLogDetails(#request.id)", msClass = IssueTemplateService.class) public void update(@RequestBody UpdateIssueTemplateRequest request) { issueTemplateService.update(request); } diff --git a/backend/src/main/java/io/metersphere/controller/TestCaseTemplateController.java b/backend/src/main/java/io/metersphere/controller/TestCaseTemplateController.java index 4c9efaa091..b3109fb8f5 100644 --- a/backend/src/main/java/io/metersphere/controller/TestCaseTemplateController.java +++ b/backend/src/main/java/io/metersphere/controller/TestCaseTemplateController.java @@ -29,7 +29,7 @@ public class TestCaseTemplateController { private TestCaseTemplateService testCaseTemplateService; @PostMapping("/add") - @MsAuditLog(module = "workspace_template_settings", type = OperLogConstants.CREATE, content = "#msClass.getLogDetails(#request.id)", msClass = TestCaseTemplateService.class) + @MsAuditLog(module = "workspace_template_settings_case", type = OperLogConstants.CREATE, content = "#msClass.getLogDetails(#request.id)", msClass = TestCaseTemplateService.class) public void add(@RequestBody UpdateCaseFieldTemplateRequest request) { testCaseTemplateService.add(request); } @@ -41,13 +41,13 @@ public class TestCaseTemplateController { } @GetMapping("/delete/{id}") - @MsAuditLog(module = "workspace_template_settings", type = OperLogConstants.DELETE, beforeEvent = "#msClass.getLogDetails(#id)", msClass = TestCaseTemplateService.class) + @MsAuditLog(module = "workspace_template_settings_case", type = OperLogConstants.DELETE, beforeEvent = "#msClass.getLogDetails(#id)", msClass = TestCaseTemplateService.class) public void delete(@PathVariable(value = "id") String id) { testCaseTemplateService.delete(id); } @PostMapping("/update") - @MsAuditLog(module = "workspace_template_settings", type = OperLogConstants.UPDATE, beforeEvent = "#msClass.getLogDetails(#request.id)", content = "#msClass.getLogDetails(#request.id)", msClass = TestCaseTemplateService.class) + @MsAuditLog(module = "workspace_template_settings_case", type = OperLogConstants.UPDATE, beforeEvent = "#msClass.getLogDetails(#request.id)", content = "#msClass.getLogDetails(#request.id)", msClass = TestCaseTemplateService.class) public void update(@RequestBody UpdateCaseFieldTemplateRequest request) { testCaseTemplateService.update(request); } diff --git a/backend/src/main/resources/i18n/messages_en_US.properties b/backend/src/main/resources/i18n/messages_en_US.properties index 2d95166199..9104f87d65 100644 --- a/backend/src/main/resources/i18n/messages_en_US.properties +++ b/backend/src/main/resources/i18n/messages_en_US.properties @@ -257,7 +257,9 @@ project_project_member=Project member organization_service_integration=Organization service integration organization_message_settings=Organization message settings workspace_member=Workspace member -workspace_template_settings=Workspace template settings +workspace_template_settings_field=Workspace template settings field +workspace_template_settings_case=Workspace template settings case +workspace_template_settings_issue=Workspace template settings issue project_project_manager=Project project manager project_project_jar=Project project jar project_environment_setting=Project environment setting diff --git a/backend/src/main/resources/i18n/messages_zh_CN.properties b/backend/src/main/resources/i18n/messages_zh_CN.properties index 69040f45cc..88a3ac1e21 100644 --- a/backend/src/main/resources/i18n/messages_zh_CN.properties +++ b/backend/src/main/resources/i18n/messages_zh_CN.properties @@ -255,7 +255,9 @@ organization_workspace=组织-工作空间 organization_service_integration=组织-服务集成 organization_message_settings=组织-消息设置 workspace_member=工作空间-成员 -workspace_template_settings=工作空间-模版设置 +workspace_template_settings_field=工作空间-模版设置-自定义字段 +workspace_template_settings_case=工作空间-模版设置-用例模版 +workspace_template_settings_issue=工作空间-模版设置-缺陷模版 project_project_manager=项目-项目管理 project_project_member=项目-成员 project_project_jar=項目-JAR包管理 diff --git a/backend/src/main/resources/i18n/messages_zh_TW.properties b/backend/src/main/resources/i18n/messages_zh_TW.properties index 017e01e110..a3bb77efa6 100644 --- a/backend/src/main/resources/i18n/messages_zh_TW.properties +++ b/backend/src/main/resources/i18n/messages_zh_TW.properties @@ -247,7 +247,7 @@ performance_test_report=性能測試報告 system_user=系统-用户 system_organization=系統-組織 system_workspace=系统-工作空间 -system_test_resource=工作空間 +system_test_resource=系统-測試資源池 system_parameter_setting=系统-系統參數設置 system_quota_management=系统-配額管理 system_authorization_management=系统-授權管理 @@ -256,7 +256,9 @@ organization_workspace=組織-工作空間 organization_service_integration=組織-服務集成 organization_message_settings=組織-消息設置 workspace_member=工作空間-成員 -workspace_template_settings=工作空間-模版設置 +workspace_template_settings_field=工作空間-模版設置-自定義字段 +workspace_template_settings_case=工作空間-模版設置-用例模版 +workspace_template_settings_issue=工作空間-模版設置-缺陷模版 project_project_manager=項目-項目管理 project_project_member=項目-成員 project_project_jar=項目-JAR包管理 diff --git a/frontend/src/business/components/settings/operatinglog/OperatingLog.vue b/frontend/src/business/components/settings/operatinglog/OperatingLog.vue index b1d6a031aa..b8e60359d9 100644 --- a/frontend/src/business/components/settings/operatinglog/OperatingLog.vue +++ b/frontend/src/business/components/settings/operatinglog/OperatingLog.vue @@ -6,7 +6,8 @@ {{ $t('operating_log.title') }}
- + @@ -113,7 +114,8 @@ - + @@ -121,60 +123,39 @@