fix(测试跟踪): 用例库移除用例提示优化

--bug=1023636 --user=陈建星 【测试跟踪】公共用例库-当前用户对无项目权限的用例进行操作-问题汇总 https://www.tapd.cn/55049933/s/1341205
This commit is contained in:
chenjianxing 2023-02-22 19:06:22 +08:00 committed by jianxing
parent 691d69f66c
commit a7301f0e32
5 changed files with 19 additions and 8 deletions

View File

@ -337,7 +337,6 @@ public class TestCaseController {
}
@PostMapping("/batch/movePublic/deleteToGc")
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_CASE_READ_DELETE)
@MsAuditLog(module = OperLogModule.TRACK_TEST_CASE, type = OperLogConstants.BATCH_DEL, beforeEvent = "#msClass.getLogDetails(#request.ids)", msClass = TestCaseService.class)
@SendNotice(taskType = NoticeConstants.TaskType.TRACK_TEST_CASE_TASK, target = "#targetClass.findByBatchRequest(#request)", targetClass = TestCaseService.class,
event = NoticeConstants.Event.DELETE, subject = "测试用例通知")

View File

@ -478,8 +478,8 @@ export default {
//
this.$refs.apiDeleteConfirm.open(testCase, this.$t('test_track.case.delete_confirm'));
} else {
let title = this.$t('test_track.case.case_delete_confirm') + ": " + testCase.name + "?";
this.$confirm(this.$t('test_track.case.batch_delete_tip'), title, {
let title = this.$t('case.public.remove') + ": " + testCase.name + "?";
this.$confirm(title, '', {
cancelButtonText: this.$t("commons.cancel"),
confirmButtonText: this.$t("commons.delete"),
customClass: 'custom-confirm-delete',
@ -556,8 +556,8 @@ export default {
this.$emit('refreshAll');
},
handleDeleteBatchToPublic() {
let title = this.$t('test_track.case.batch_delete_confirm', [this.$refs.table.selectIds.length]);
this.$confirm(this.$t('test_track.case.batch_delete_tip'), title, {
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"),
customClass: 'custom-confirm-delete',

View File

@ -147,7 +147,11 @@ const message = {
cancel_relate_case_tips_title: "Confirm cancel?",
cancel_relate_case_tips_content: "Cancel it will affect the test plan statistics. Sure?",
back_tips: "TestCase is not saved, Are you sure to quit?",
dependency_remove_confirm: "Is dependency release confirmed?"
dependency_remove_confirm: "Is dependency release confirmed?",
public: {
remove: 'Whether to remove the use case ',
batch_remove_confirm: "Confirm remove {0} item use case?",
}
},
attachment: {
preview: "Preview",

View File

@ -147,7 +147,11 @@ const message = {
cancel_relate_case_tips_title: "确定取消关联关系吗?",
cancel_relate_case_tips_content: "取消关联会影响测试计划相关统计, 确定取消吗?",
back_tips: "你填写的信息未保存, 确定退出吗?",
dependency_remove_confirm: "确定解除依赖吗?"
dependency_remove_confirm: "确定解除依赖吗?",
public: {
remove: '是否移除用例',
batch_remove_confirm: "确定移除{0}项用例?",
}
},
attachment: {
preview: "预览",

View File

@ -147,7 +147,11 @@ const message = {
cancel_relate_case_tips_title: "確定取消關聯關係嗎?",
cancel_relate_case_tips_content: "取消關聯會影響測試計劃相關統計, 確定取消嗎?",
back_tips: "你填寫的信息未保存, 確定退出嗎?",
dependency_remove_confirm: "確定解除依賴嗎?"
dependency_remove_confirm: "確定解除依賴嗎?",
public: {
remove: '是否移除用例',
batch_remove_confirm: "確定移除{0}項用例?",
}
},
attachment: {
preview: "預覽",