fix(接口管理):修复接口场景回收站弹窗文字提示不对问题
--bug=1038414 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038414
This commit is contained in:
parent
ac8c349daf
commit
218e13b582
|
@ -196,8 +196,12 @@ export default {
|
||||||
|
|
||||||
// 回收站
|
// 回收站
|
||||||
'api_scenario.recycle.recover': 'Recover',
|
'api_scenario.recycle.recover': 'Recover',
|
||||||
|
'api_scenario.recycle.recoveredSuccessfully': 'Recover success',
|
||||||
'api_scenario.recycle.list': 'Recycle list',
|
'api_scenario.recycle.list': 'Recycle list',
|
||||||
'api_scenario.recycle.batchCleanOut': 'Delete',
|
'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',
|
'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.quoteTreeNoData': 'There is currently no reference data. You can switch projects to obtain data.',
|
||||||
'apiScenario.quoteTreeSearchTip': 'Enter module name to search',
|
'apiScenario.quoteTreeSearchTip': 'Enter module name to search',
|
||||||
|
|
|
@ -201,8 +201,11 @@ export default {
|
||||||
|
|
||||||
// 回收站
|
// 回收站
|
||||||
'api_scenario.recycle.recover': '恢复',
|
'api_scenario.recycle.recover': '恢复',
|
||||||
|
'api_scenario.recycle.recoveredSuccessfully': '恢复成功',
|
||||||
'api_scenario.recycle.list': '回收站列表',
|
'api_scenario.recycle.list': '回收站列表',
|
||||||
'api_scenario.recycle.batchCleanOut': '彻底删除',
|
'api_scenario.recycle.batchCleanOut': '彻底删除',
|
||||||
|
'api_scenario.recycle.completedDeleteCaseTitle': '确认彻底删除 {name} 吗?',
|
||||||
|
'api_scenario.recycle.cleanOutDeleteOnRecycleTip': '删除后,场景无法恢复,请谨慎操作!',
|
||||||
'apiScenario.quoteTreeNoData': '暂无可引用数据,可切换项目获取数据',
|
'apiScenario.quoteTreeNoData': '暂无可引用数据,可切换项目获取数据',
|
||||||
'apiScenario.quoteTreeSearchTip': '输入模块名称搜索',
|
'apiScenario.quoteTreeSearchTip': '输入模块名称搜索',
|
||||||
'apiScenario.quoteTableSearchTip': '通过路径或名称搜索',
|
'apiScenario.quoteTableSearchTip': '通过路径或名称搜索',
|
||||||
|
|
|
@ -329,6 +329,7 @@
|
||||||
{
|
{
|
||||||
title: 'apiScenario.table.columns.createUser',
|
title: 'apiScenario.table.columns.createUser',
|
||||||
dataIndex: 'createUserName',
|
dataIndex: 'createUserName',
|
||||||
|
showTooltip: true,
|
||||||
titleSlotName: 'createUser',
|
titleSlotName: 'createUser',
|
||||||
width: 109,
|
width: 109,
|
||||||
showDrag: true,
|
showDrag: true,
|
||||||
|
@ -336,6 +337,7 @@
|
||||||
{
|
{
|
||||||
title: 'apiScenario.table.columns.updateUser',
|
title: 'apiScenario.table.columns.updateUser',
|
||||||
dataIndex: 'updateUserName',
|
dataIndex: 'updateUserName',
|
||||||
|
showTooltip: true,
|
||||||
titleSlotName: 'updateUser',
|
titleSlotName: 'updateUser',
|
||||||
width: 109,
|
width: 109,
|
||||||
showDrag: true,
|
showDrag: true,
|
||||||
|
@ -343,6 +345,7 @@
|
||||||
{
|
{
|
||||||
title: 'apiScenario.table.columns.operation',
|
title: 'apiScenario.table.columns.operation',
|
||||||
dataIndex: 'deleteUserName',
|
dataIndex: 'deleteUserName',
|
||||||
|
showTooltip: true,
|
||||||
titleSlotName: 'deleteUser',
|
titleSlotName: 'deleteUser',
|
||||||
width: 109,
|
width: 109,
|
||||||
showDrag: true,
|
showDrag: true,
|
||||||
|
@ -475,7 +478,7 @@
|
||||||
await recoverScenario(record?.id as string);
|
await recoverScenario(record?.id as string);
|
||||||
}
|
}
|
||||||
|
|
||||||
Message.success(t('common.revokeSuccess'));
|
Message.success(t('api_scenario.recycle.recoveredSuccessfully'));
|
||||||
tableSelected.value = [];
|
tableSelected.value = [];
|
||||||
resetSelector();
|
resetSelector();
|
||||||
loadScenarioList(true);
|
loadScenarioList(true);
|
||||||
|
@ -489,7 +492,7 @@
|
||||||
* 删除接口
|
* 删除接口
|
||||||
*/
|
*/
|
||||||
function deleteOperation(record?: ApiScenarioTableItem, isBatch?: boolean, params?: BatchActionQueryParams) {
|
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 || ''];
|
let selectIds = [record?.id || ''];
|
||||||
if (isBatch) {
|
if (isBatch) {
|
||||||
title = t('api_scenario.table.batchDeleteScenarioTip', {
|
title = t('api_scenario.table.batchDeleteScenarioTip', {
|
||||||
|
@ -500,7 +503,7 @@
|
||||||
openModal({
|
openModal({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
title,
|
title,
|
||||||
content: t('api_scenario.table.deleteScenarioTip'),
|
content: t('api_scenario.recycle.cleanOutDeleteOnRecycleTip'),
|
||||||
okText: t('common.confirmDelete'),
|
okText: t('common.confirmDelete'),
|
||||||
cancelText: t('common.cancel'),
|
cancelText: t('common.cancel'),
|
||||||
okButtonProps: {
|
okButtonProps: {
|
||||||
|
|
Loading…
Reference in New Issue