From cd0bbd24c44f587019dece3e97dac97b9e054671 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Thu, 4 Aug 2022 18:16:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=94=A8=E4=BE=8B=E6=A8=A1=E7=89=88=E5=92=8C?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E6=A8=A1=E7=89=88=E6=B2=A1=E6=9C=89=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E5=88=A0=E9=99=A4=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015666 --user=李玉号 【项目设置】删除用例模板和缺陷模块没有二次提醒 https://www.tapd.cn/55049933/s/1219616 --- .../project/template/IssuesTemplateList.vue | 13 +++++++++++-- .../project/template/TestCaseTemplateList.vue | 13 +++++++++++-- frontend/src/i18n/en-US.js | 3 ++- frontend/src/i18n/zh-CN.js | 3 ++- frontend/src/i18n/zh-TW.js | 3 ++- 5 files changed, 28 insertions(+), 7 deletions(-) diff --git a/frontend/src/business/components/project/template/IssuesTemplateList.vue b/frontend/src/business/components/project/template/IssuesTemplateList.vue index 3594ce2e5f..722e2bf694 100644 --- a/frontend/src/business/components/project/template/IssuesTemplateList.vue +++ b/frontend/src/business/components/project/template/IssuesTemplateList.vue @@ -70,7 +70,7 @@ :total="total"/> - + @@ -86,6 +86,7 @@ import MsTableColumn from "@/business/components/common/components/table/MsTable import MsTable from "@/business/components/common/components/table/MsTable"; import TestCaseReportTemplate from "@/business/components/project/template/TestCaseReportTemplate"; import IssueTemplateEdit from "@/business/components/project/template/IssueTemplateEdit"; +import MsDeleteConfirm from "@/business/components/common/components/MsDeleteConfirm"; export default { name: "IssuesTemplateList", @@ -93,7 +94,12 @@ export default { IssueTemplateEdit, TestCaseReportTemplate, MsTableHeader, - MsTablePagination, MsTableButton, MsTableOperators, MsTableColumn, MsTable + MsTablePagination, + MsTableButton, + MsTableOperators, + MsTableColumn, + MsTable, + MsDeleteConfirm }, data() { return { @@ -166,6 +172,9 @@ export default { this.$refs.templateEdit.open(copyData, true); }, handleDelete(data) { + this.$refs.deleteConfirm.open(data); + }, + _handleDelete(data) { this.result = this.$get('field/template/issue/delete/' + data.id, () => { this.$success(this.$t('commons.delete_success')); this.initTableData(); diff --git a/frontend/src/business/components/project/template/TestCaseTemplateList.vue b/frontend/src/business/components/project/template/TestCaseTemplateList.vue index eee2bb1129..3034ff460e 100644 --- a/frontend/src/business/components/project/template/TestCaseTemplateList.vue +++ b/frontend/src/business/components/project/template/TestCaseTemplateList.vue @@ -84,7 +84,7 @@ :total="total"/> - + @@ -100,6 +100,7 @@ import MsTableColumn from "@/business/components/common/components/table/MsTable import MsTable from "@/business/components/common/components/table/MsTable"; import TestCaseReportTemplate from "@/business/components/project/template/TestCaseReportTemplate"; import TestCaseTemplateEdit from "@/business/components/project/template/TestCaseTemplateEdit"; +import MsDeleteConfirm from "@/business/components/common/components/MsDeleteConfirm"; export default { name: "TestCaseTemplateList", @@ -107,7 +108,12 @@ export default { TestCaseTemplateEdit, TestCaseReportTemplate, MsTableHeader, - MsTablePagination, MsTableButton, MsTableOperators, MsTableColumn, MsTable + MsTablePagination, + MsTableButton, + MsTableOperators, + MsTableColumn, + MsTable, + MsDeleteConfirm }, data() { return { @@ -176,6 +182,9 @@ export default { this.$refs.templateEdit.open(copyData, true); }, handleDelete(data) { + this.$refs.deleteConfirm.open(data); + }, + _handleDelete(data) { this.result = this.$get('field/template/case/delete/' + data.id, () => { this.$success(this.$t('commons.delete_success')); this.initTableData(); diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 3ff2380951..8c34d5e5b0 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -467,7 +467,8 @@ export default { api_scenario: 'default', ui_element: 'default', ui_scenario: 'default' - } + }, + template_delete: "Template delete" }, login: { normal_Login: "Normal Login", diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index c8fab1cd98..0d17ad3cc8 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -469,7 +469,8 @@ export default { api_scenario: '未规划场景', ui_element: '未规划元素', ui_scenario: '未规划场景' - } + }, + template_delete: "模版删除" }, login: { normal_Login: "普通登录", diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index a9141f83d2..12922edde2 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -469,7 +469,8 @@ export default { api_scenario: '未規劃場景', ui_element: '未規劃元素', ui_scenario: '未規劃場景' - } + }, + template_delete: "模版刪除" }, login: { normal_Login: "普通登錄",