diff --git a/backend/framework/sdk/src/main/resources/i18n/commons.properties b/backend/framework/sdk/src/main/resources/i18n/commons.properties index 30d2ff1d61..abd278f4d3 100644 --- a/backend/framework/sdk/src/main/resources/i18n/commons.properties +++ b/backend/framework/sdk/src/main/resources/i18n/commons.properties @@ -439,6 +439,7 @@ project=项目 add=添加 delete=删除 update=更新 +recover=恢复 project_is_not_exist=项目不存在 #permission diff --git a/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties b/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties index 9406e02b93..a5a40df763 100644 --- a/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties +++ b/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties @@ -447,6 +447,7 @@ project=Project add=Add delete=Delete update=Update +recover=Recover project_is_not_exist=Project is not exist #permission diff --git a/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties b/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties index d51940ccd9..93e00ff14b 100644 --- a/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties +++ b/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties @@ -446,6 +446,7 @@ project=项目 add=添加 delete=删除 update=更新 +recover=恢复 project_is_not_exist=项目不存在 #permission diff --git a/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties b/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties index 02d9f23254..4dd48f036f 100644 --- a/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties +++ b/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties @@ -444,6 +444,7 @@ project=項目 add=添加 delete=删除 update=更新 +recover=恢復 project_is_not_exist=項目不存在 #permission diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugHistoryService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugHistoryService.java index d66f973e62..d25acb87fc 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugHistoryService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugHistoryService.java @@ -64,6 +64,8 @@ public class BugHistoryService { dto.setType(Translator.get("update")); } else if (StringUtils.equals(dto.getType(), OperationLogType.DELETE.name())) { dto.setType(Translator.get("delete")); + } else if (StringUtils.equals(dto.getType(), OperationLogType.RECOVER.name())) { + dto.setType(Translator.get("recover")); } dto.setLatest(latestVersionId != null && latestVersionId.longValue() == dto.getId().longValue()); return dto; diff --git a/frontend/src/views/api-test/management/components/moduleTree.vue b/frontend/src/views/api-test/management/components/moduleTree.vue index 0079aaacbd..5dc930c9ff 100644 --- a/frontend/src/views/api-test/management/components/moduleTree.vue +++ b/frontend/src/views/api-test/management/components/moduleTree.vue @@ -203,7 +203,7 @@ import { useI18n } from '@/hooks/useI18n'; import useModal from '@/hooks/useModal'; import useAppStore from '@/store/modules/app'; - import { mapTree } from '@/utils'; + import { characterLimit, mapTree } from '@/utils'; import { hasAllPermission, hasAnyPermission } from '@/utils/permission'; import { ApiDefinitionGetModuleParams } from '@/models/apiTest/management'; @@ -517,8 +517,8 @@ type: 'error', title: node.type === 'API' - ? t('apiTestDebug.deleteDebugTipTitle', { name: node.name }) - : t('apiTestDebug.deleteFolderTipTitle', { name: node.name }), + ? t('apiTestDebug.deleteDebugTipTitle', { name: characterLimit(node.name) }) + : t('apiTestDebug.deleteFolderTipTitle', { name: characterLimit(node.name) }), content: node.type === 'API' ? t('apiTestDebug.deleteDebugTipContent') : t('apiTestDebug.deleteFolderTipContent'), okText: t('apiTestDebug.deleteConfirm'), okButtonProps: { diff --git a/frontend/src/views/bug-management/components/bugCaseTab.vue b/frontend/src/views/bug-management/components/bugCaseTab.vue index deebf49722..0d1b4d8adc 100644 --- a/frontend/src/views/bug-management/components/bugCaseTab.vue +++ b/frontend/src/views/bug-management/components/bugCaseTab.vue @@ -64,7 +64,6 @@ ([]); - const currentSelectCase = ref('API'); + const currentSelectCase = ref('FUNCTIONAL'); const modulesTreeParams = ref({}); @@ -236,12 +234,8 @@ const caseTypeOptions = ref<{ label: string; value: string }[]>([ { - value: 'API', - label: t('caseManagement.featureCase.apiCase'), - }, - { - value: 'SCENARIO', - label: t('caseManagement.featureCase.sceneCase'), + label: 'menu.caseManagement.featureCase', + value: 'FUNCTIONAL', }, ]);