fix(测试跟踪): 修改公共用例删除的文案

--bug=1024037 --user=王孝刚 【测试跟踪】公共用例库,标题为超长文本时,删除的提示信息显示有误
https://www.tapd.cn/55049933/s/1346416
This commit is contained in:
wxg0103 2023-03-07 19:35:03 +08:00 committed by wxg0103
parent 3ed362c068
commit 39c4b1dfe8
4 changed files with 11 additions and 5 deletions

View File

@ -107,6 +107,8 @@ export default {
batch_delete_confirm: "Confirm delete {0} case?",
batch_delete_completely_confirm: "Confirm delete {0} case completely?",
batch_delete_tip: "It cannot be recovered after delete, please delete carefully",
public_batch_delete_tip: "It cannot be restored after deletion, please proceed with caution.",
public_remove:"Remove",
batch_delete_soft_tip: "The test case will be put into trash",
save_create_continue: "Save and create continue",
save_add_public: "Save and add public",

View File

@ -99,6 +99,8 @@ export default {
batch_delete_confirm: "确定删除{0}项用例?",
batch_delete_completely_confirm: "确定彻底删除{0}项用例?",
batch_delete_tip: "删除后将无法恢复, 请谨慎操作。",
public_batch_delete_tip: "移除后将无法恢复, 请谨慎操作。",
public_remove:"移除",
batch_delete_soft_tip: "删除的内容将进入回收站",
delete: "删除用例",
save_create_continue: "保存并继续创建",

View File

@ -100,6 +100,8 @@ export default {
batch_delete_confirm: "確定刪除{0}項用例?",
batch_delete_completely_confirm: "確定徹底刪除{0}項用例",
batch_delete_tip: "刪除後將無法恢復, 請謹慎操作。",
public_batch_delete_tip: "移除後將無法恢復, 請謹慎操作。",
public_remove:"移除",
batch_delete_soft_tip: "刪除的內容將進入回收站",
save_create_continue: "保存併繼續創建",
save_add_public: "保存併添加到公共用例庫",

View File

@ -301,7 +301,7 @@ export default {
permissions: ['PROJECT_TRACK_CASE:READ+BATCH_COPY']
},
{
name: this.$t('test_track.case.batch_delete_btn'),
name: this.$t('test_track.case.public_remove'),
handleClick: this.handleDeleteBatchToPublic,
permissions: ['PROJECT_TRACK_CASE:READ+BATCH_DELETE'],
isDelete: true
@ -330,7 +330,7 @@ export default {
permissions: ['PROJECT_TRACK_CASE:READ+COPY']
},
{
tip: this.$t('commons.delete'), icon: "el-icon-delete",
tip: this.$t('test_track.case.public_remove'), icon: "el-icon-delete",
exec: this.handleDeleteToGc,
permissions: ['PROJECT_TRACK_CASE:READ+DELETE'],
isDisable: !this.isOwner,
@ -480,9 +480,9 @@ export default {
this.$refs.apiDeleteConfirm.open(testCase, this.$t('test_track.case.delete_confirm'));
} else {
let title = this.$t('case.public.remove') + ": " + testCase.name + "?";
this.$confirm(title, '', {
this.$confirm(this.$t('test_track.case.public_batch_delete_tip'), title, {
cancelButtonText: this.$t("commons.cancel"),
confirmButtonText: this.$t("commons.delete"),
confirmButtonText: this.$t("test_track.case.public_remove"),
customClass: 'custom-confirm-delete',
callback: action => {
if (action === "confirm") {
@ -560,7 +560,7 @@ export default {
let title = this.$t('case.public.batch_remove_confirm', [this.$refs.table.selectIds.length]);
this.$confirm(title, '', {
cancelButtonText: this.$t("commons.cancel"),
confirmButtonText: this.$t("commons.delete"),
confirmButtonText: this.$t("test_track.case.public_remove"),
customClass: 'custom-confirm-delete',
callback: action => {
if (action === "confirm") {