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 18aae36b7c..9eceb2a941 100644 --- a/frontend/src/views/api-test/scenario/locale/en-US.ts +++ b/frontend/src/views/api-test/scenario/locale/en-US.ts @@ -196,8 +196,12 @@ export default { // 回收站 'api_scenario.recycle.recover': 'Recover', + 'api_scenario.recycle.recoveredSuccessfully': 'Recover success', 'api_scenario.recycle.list': 'Recycle list', 'api_scenario.recycle.batchCleanOut': 'Delete', + 'api_scenario.recycle.completedDeleteCaseTitle': 'Are you sure you want to completely delete {name}?', + 'api_scenario.recycle.cleanOutDeleteOnRecycleTip': + 'After deletion, the scene cannot be restored, please operate with caution!', 'api_scenario.table.searchPlaceholder': 'Search by ID/Name/Tag', 'apiScenario.quoteTreeNoData': 'There is currently no reference data. You can switch projects to obtain data.', 'apiScenario.quoteTreeSearchTip': 'Enter module name to search', 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 953e3bdfe5..c0e7944cfc 100644 --- a/frontend/src/views/api-test/scenario/locale/zh-CN.ts +++ b/frontend/src/views/api-test/scenario/locale/zh-CN.ts @@ -201,8 +201,11 @@ export default { // 回收站 'api_scenario.recycle.recover': '恢复', + 'api_scenario.recycle.recoveredSuccessfully': '恢复成功', 'api_scenario.recycle.list': '回收站列表', 'api_scenario.recycle.batchCleanOut': '彻底删除', + 'api_scenario.recycle.completedDeleteCaseTitle': '确认彻底删除 {name} 吗?', + 'api_scenario.recycle.cleanOutDeleteOnRecycleTip': '删除后,场景无法恢复,请谨慎操作!', 'apiScenario.quoteTreeNoData': '暂无可引用数据,可切换项目获取数据', 'apiScenario.quoteTreeSearchTip': '输入模块名称搜索', 'apiScenario.quoteTableSearchTip': '通过路径或名称搜索', diff --git a/frontend/src/views/api-test/scenario/recycle/recycleTable.vue b/frontend/src/views/api-test/scenario/recycle/recycleTable.vue index 9991df7f8a..605553b473 100644 --- a/frontend/src/views/api-test/scenario/recycle/recycleTable.vue +++ b/frontend/src/views/api-test/scenario/recycle/recycleTable.vue @@ -329,6 +329,7 @@ { title: 'apiScenario.table.columns.createUser', dataIndex: 'createUserName', + showTooltip: true, titleSlotName: 'createUser', width: 109, showDrag: true, @@ -336,6 +337,7 @@ { title: 'apiScenario.table.columns.updateUser', dataIndex: 'updateUserName', + showTooltip: true, titleSlotName: 'updateUser', width: 109, showDrag: true, @@ -343,6 +345,7 @@ { title: 'apiScenario.table.columns.operation', dataIndex: 'deleteUserName', + showTooltip: true, titleSlotName: 'deleteUser', width: 109, showDrag: true, @@ -475,7 +478,7 @@ await recoverScenario(record?.id as string); } - Message.success(t('common.revokeSuccess')); + Message.success(t('api_scenario.recycle.recoveredSuccessfully')); tableSelected.value = []; resetSelector(); loadScenarioList(true); @@ -489,7 +492,7 @@ * 删除接口 */ function deleteOperation(record?: ApiScenarioTableItem, isBatch?: boolean, params?: BatchActionQueryParams) { - let title = t('api_scenario.table.deleteScenarioTipTitle', { name: record?.name }); + let title = t('api_scenario.recycle.completedDeleteCaseTitle', { name: record?.name }); let selectIds = [record?.id || '']; if (isBatch) { title = t('api_scenario.table.batchDeleteScenarioTip', { @@ -500,7 +503,7 @@ openModal({ type: 'error', title, - content: t('api_scenario.table.deleteScenarioTip'), + content: t('api_scenario.recycle.cleanOutDeleteOnRecycleTip'), okText: t('common.confirmDelete'), cancelText: t('common.cancel'), okButtonProps: {