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: "普通登錄",