refactor(测试跟踪): 第三方平台缺陷删除提示优化

--bug=1027329 --user=陈建星 【测试跟踪】缺陷管理-批量删除缺陷提示警告,这里删除之后第三方平台也同步被删了。。。可能会很严重。 https://www.tapd.cn/55049933/s/1385627
This commit is contained in:
jianxing 2023-06-25 17:26:57 +08:00 committed by fit2-zhao
parent ac8d8c32d9
commit 7c46e47274
4 changed files with 13 additions and 2 deletions

View File

@ -582,6 +582,7 @@ export default {
import_bugs: "Import Issue",
export_bugs: "Export Issue",
save_before_open_comment: "Please save issue before comment",
delete_third_part_tip: "This operation will delete third-party platform defects synchronously",
delete_tip: "Confirm Delete Issue",
batch_delete_tip: "Confirm Batch Delete Issue",
check_id_exist: "Check",

View File

@ -550,6 +550,7 @@ export default {
import_bugs: "导入缺陷",
export_bugs: "导出缺陷",
save_before_open_comment: "请先保存缺陷再添加评论",
delete_third_part_tip: "该操作将同步删除第三方平台缺陷",
delete_tip: "确认删除缺陷:",
batch_delete_tip: "确认批量删除缺陷",
check_id_exist: "检查",

View File

@ -549,6 +549,7 @@ export default {
import_bugs: "導入缺陷",
export_bugs: "導出缺陷",
save_before_open_comment: "請先保存缺陷再添加評論",
delete_third_part_tip: "該操作將同步刪除第三方平台缺陷",
delete_tip: "確認刪除缺陷:",
batch_delete_tip: "確認批量刪除缺陷",
check_id_exist: "檢查",

View File

@ -524,7 +524,11 @@ export default {
this.$refs.issueEdit.open(copyData, 'copy');
},
handleDelete(data) {
this.$alert(this.$t('test_track.issue.delete_tip') + ' ' + data.title + " ", '', {
let tip = this.$t('test_track.issue.delete_tip') + ' ' + data.title + " ";
if (this.isThirdPart) {
tip = this.$t('test_track.issue.delete_third_part_tip') + ", " + tip;
}
this.$alert(tip, '', {
confirmButtonText: this.$t('commons.confirm'),
callback: (action) => {
if (action === 'confirm') {
@ -540,7 +544,11 @@ export default {
})
},
handleBatchDelete() {
this.$alert(this.$t('test_track.issue.batch_delete_tip') + " ", '', {
let tip = this.$t('test_track.issue.batch_delete_tip') + " ";
if (this.isThirdPart) {
tip = this.$t('test_track.issue.delete_third_part_tip') + ", " + tip;
}
this.$alert(tip, '', {
confirmButtonText: this.$t('commons.confirm'),
callback: (action) => {
if (action === 'confirm') {