From 336e845a61e09f8154ad7a8f5d4f9fa87fa7b5fa Mon Sep 17 00:00:00 2001 From: teukkk Date: Tue, 8 Oct 2024 15:14:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=9B=9E=E6=94=B6=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=95=B4=E8=A1=8C=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1016239 --user=吕梦园 https://www.tapd.cn/55049933/prong/stories/view/1155049933001016239 --- .../api-test/management/components/moduleTree.vue | 2 +- frontend/src/views/api-test/management/index.vue | 14 +++++--------- frontend/src/views/api-test/scenario/index.vue | 8 ++++---- .../src/views/api-test/scenario/locale/en-US.ts | 1 - .../src/views/api-test/scenario/locale/zh-CN.ts | 1 - .../caseManagementFeature/index.vue | 6 +++--- .../caseManagementFeature/locale/en-US.ts | 1 - .../caseManagementFeature/locale/zh-CN.ts | 1 - 8 files changed, 13 insertions(+), 21 deletions(-) diff --git a/frontend/src/views/api-test/management/components/moduleTree.vue b/frontend/src/views/api-test/management/components/moduleTree.vue index ef29ba2501..d17627f621 100644 --- a/frontend/src/views/api-test/management/components/moduleTree.vue +++ b/frontend/src/views/api-test/management/components/moduleTree.vue @@ -260,7 +260,7 @@ }; } return { - height: 'calc(100vh - 250px)', + height: 'calc(100vh - 273px)', threshold: 200, fixedSize: true, buffer: 15, // 缓冲区默认 10 的时候,虚拟滚动的底部 padding 计算有问题 diff --git a/frontend/src/views/api-test/management/index.vue b/frontend/src/views/api-test/management/index.vue index bb8e3e5d3f..a6fed9a066 100644 --- a/frontend/src/views/api-test/management/index.vue +++ b/frontend/src/views/api-test/management/index.vue @@ -3,7 +3,7 @@ diff --git a/frontend/src/views/api-test/scenario/locale/en-US.ts b/frontend/src/views/api-test/scenario/locale/en-US.ts index 42fe6f698a..9cb3b5ac59 100644 --- a/frontend/src/views/api-test/scenario/locale/en-US.ts +++ b/frontend/src/views/api-test/scenario/locale/en-US.ts @@ -5,7 +5,6 @@ export default { 'apiScenario.importScenario': 'Import Scenario', 'apiScenario.tree.selectorPlaceholder': 'Please enter module name', 'apiScenario.tree.folder.allScenario': 'All Scenarios', - 'apiScenario.tree.recycleBin': 'Recycle Bin', 'apiScenario.tree.noMatchModule': 'No matching module found', 'apiScenario.createSubModule': 'Create Submodule', 'apiScenario.module.deleteTipTitle': 'Delete Module {name}?', diff --git a/frontend/src/views/api-test/scenario/locale/zh-CN.ts b/frontend/src/views/api-test/scenario/locale/zh-CN.ts index e60427bdc1..31b4e47d70 100644 --- a/frontend/src/views/api-test/scenario/locale/zh-CN.ts +++ b/frontend/src/views/api-test/scenario/locale/zh-CN.ts @@ -5,7 +5,6 @@ export default { 'apiScenario.importScenario': '导入场景', 'apiScenario.tree.selectorPlaceholder': '请输入模块名称进行搜索', 'apiScenario.tree.folder.allScenario': '全部场景', - 'apiScenario.tree.recycleBin': '回收站', 'apiScenario.tree.noMatchModule': '暂无匹配的模块', 'apiScenario.createSubModule': '新建子模块', 'apiScenario.module.deleteTipTitle': '是否删除 {name} 模块?', diff --git a/frontend/src/views/case-management/caseManagementFeature/index.vue b/frontend/src/views/case-management/caseManagementFeature/index.vue index 74dd80a533..ee282d137e 100644 --- a/frontend/src/views/case-management/caseManagementFeature/index.vue +++ b/frontend/src/views/case-management/caseManagementFeature/index.vue @@ -67,10 +67,10 @@
-
-
+
+
-
{{ t('caseManagement.featureCase.recycle') }}
+
{{ t('common.recycle') }}
{{ recycleModulesCount.all || 0 }}
diff --git a/frontend/src/views/case-management/caseManagementFeature/locale/en-US.ts b/frontend/src/views/case-management/caseManagementFeature/locale/en-US.ts index a78865ef40..09b3a0a7db 100644 --- a/frontend/src/views/case-management/caseManagementFeature/locale/en-US.ts +++ b/frontend/src/views/case-management/caseManagementFeature/locale/en-US.ts @@ -11,7 +11,6 @@ export default { 'No use case data yet, please click the button above to create or import', 'caseManagement.featureCase.addSubModule': 'Add submodules', 'caseManagement.featureCase.rename': 'rename', - 'caseManagement.featureCase.recycle': 'Recycle', 'caseManagement.featureCase.versionPlaceholder': 'The default is the latest version', 'caseManagement.featureCase.searchByNameAndId': 'Search by ID, name, or tag', 'caseManagement.featureCase.searchByIdAndName': 'Search by ID or name', diff --git a/frontend/src/views/case-management/caseManagementFeature/locale/zh-CN.ts b/frontend/src/views/case-management/caseManagementFeature/locale/zh-CN.ts index 644bce0542..690f9109aa 100644 --- a/frontend/src/views/case-management/caseManagementFeature/locale/zh-CN.ts +++ b/frontend/src/views/case-management/caseManagementFeature/locale/zh-CN.ts @@ -11,7 +11,6 @@ export default { 'caseManagement.featureCase.caseEmptyRecycle': '暂无用例数据', 'caseManagement.featureCase.addSubModule': '添加子模块', 'caseManagement.featureCase.rename': '重命名', - 'caseManagement.featureCase.recycle': '回收站', 'caseManagement.featureCase.versionPlaceholder': '默认为最新版本', 'caseManagement.featureCase.searchByNameAndId': '通过 ID/名称/标签搜索', 'caseManagement.featureCase.searchByIdAndName': '通过 ID/名称搜索',