fix(项目设置): 删除用例模版和缺陷模版没有确认删除提醒
--bug=1015666 --user=李玉号 【项目设置】删除用例模板和缺陷模块没有二次提醒 https://www.tapd.cn/55049933/s/1219616
This commit is contained in:
parent
473aa26e60
commit
cd0bbd24c4
|
@ -70,7 +70,7 @@
|
|||
:total="total"/>
|
||||
|
||||
<issue-template-edit ref="templateEdit" @refresh="initTableData"/>
|
||||
|
||||
<ms-delete-confirm :title="$t('commons.template_delete')" @delete="_handleDelete" ref="deleteConfirm"/>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
|
@ -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();
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
:total="total"/>
|
||||
|
||||
<test-case-template-edit ref="templateEdit" @refresh="initTableData"/>
|
||||
|
||||
<ms-delete-confirm :title="$t('commons.template_delete')" @delete="_handleDelete" ref="deleteConfirm"/>
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
|
@ -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();
|
||||
|
|
|
@ -467,7 +467,8 @@ export default {
|
|||
api_scenario: 'default',
|
||||
ui_element: 'default',
|
||||
ui_scenario: 'default'
|
||||
}
|
||||
},
|
||||
template_delete: "Template delete"
|
||||
},
|
||||
login: {
|
||||
normal_Login: "Normal Login",
|
||||
|
|
|
@ -469,7 +469,8 @@ export default {
|
|||
api_scenario: '未规划场景',
|
||||
ui_element: '未规划元素',
|
||||
ui_scenario: '未规划场景'
|
||||
}
|
||||
},
|
||||
template_delete: "模版删除"
|
||||
},
|
||||
login: {
|
||||
normal_Login: "普通登录",
|
||||
|
|
|
@ -469,7 +469,8 @@ export default {
|
|||
api_scenario: '未規劃場景',
|
||||
ui_element: '未規劃元素',
|
||||
ui_scenario: '未規劃場景'
|
||||
}
|
||||
},
|
||||
template_delete: "模版刪除"
|
||||
},
|
||||
login: {
|
||||
normal_Login: "普通登錄",
|
||||
|
|
Loading…
Reference in New Issue