fix(项目设置): 删除用例模版和缺陷模版没有确认删除提醒
--bug=1015666 --user=李玉号 【项目设置】删除用例模板和缺陷模块没有二次提醒 https://www.tapd.cn/55049933/s/1219616
This commit is contained in:
parent
76f1edc7b8
commit
b7284701fc
|
@ -70,7 +70,7 @@
|
||||||
:total="total"/>
|
:total="total"/>
|
||||||
|
|
||||||
<issue-template-edit ref="templateEdit" @refresh="initTableData"/>
|
<issue-template-edit ref="templateEdit" @refresh="initTableData"/>
|
||||||
|
<ms-delete-confirm :title="$t('commons.template_delete')" @delete="_handleDelete" ref="deleteConfirm"/>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -86,6 +86,7 @@ import MsTableColumn from "@/business/components/common/components/table/MsTable
|
||||||
import MsTable 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 TestCaseReportTemplate from "@/business/components/project/template/TestCaseReportTemplate";
|
||||||
import IssueTemplateEdit from "@/business/components/project/template/IssueTemplateEdit";
|
import IssueTemplateEdit from "@/business/components/project/template/IssueTemplateEdit";
|
||||||
|
import MsDeleteConfirm from "@/business/components/common/components/MsDeleteConfirm";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "IssuesTemplateList",
|
name: "IssuesTemplateList",
|
||||||
|
@ -93,7 +94,12 @@ export default {
|
||||||
IssueTemplateEdit,
|
IssueTemplateEdit,
|
||||||
TestCaseReportTemplate,
|
TestCaseReportTemplate,
|
||||||
MsTableHeader,
|
MsTableHeader,
|
||||||
MsTablePagination, MsTableButton, MsTableOperators, MsTableColumn, MsTable
|
MsTablePagination,
|
||||||
|
MsTableButton,
|
||||||
|
MsTableOperators,
|
||||||
|
MsTableColumn,
|
||||||
|
MsTable,
|
||||||
|
MsDeleteConfirm
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -166,6 +172,9 @@ export default {
|
||||||
this.$refs.templateEdit.open(copyData, true);
|
this.$refs.templateEdit.open(copyData, true);
|
||||||
},
|
},
|
||||||
handleDelete(data) {
|
handleDelete(data) {
|
||||||
|
this.$refs.deleteConfirm.open(data);
|
||||||
|
},
|
||||||
|
_handleDelete(data) {
|
||||||
this.result = this.$get('field/template/issue/delete/' + data.id, () => {
|
this.result = this.$get('field/template/issue/delete/' + data.id, () => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
:total="total"/>
|
:total="total"/>
|
||||||
|
|
||||||
<test-case-template-edit ref="templateEdit" @refresh="initTableData"/>
|
<test-case-template-edit ref="templateEdit" @refresh="initTableData"/>
|
||||||
|
<ms-delete-confirm :title="$t('commons.template_delete')" @delete="_handleDelete" ref="deleteConfirm"/>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -100,6 +100,7 @@ import MsTableColumn from "@/business/components/common/components/table/MsTable
|
||||||
import MsTable 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 TestCaseReportTemplate from "@/business/components/project/template/TestCaseReportTemplate";
|
||||||
import TestCaseTemplateEdit from "@/business/components/project/template/TestCaseTemplateEdit";
|
import TestCaseTemplateEdit from "@/business/components/project/template/TestCaseTemplateEdit";
|
||||||
|
import MsDeleteConfirm from "@/business/components/common/components/MsDeleteConfirm";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TestCaseTemplateList",
|
name: "TestCaseTemplateList",
|
||||||
|
@ -107,7 +108,12 @@ export default {
|
||||||
TestCaseTemplateEdit,
|
TestCaseTemplateEdit,
|
||||||
TestCaseReportTemplate,
|
TestCaseReportTemplate,
|
||||||
MsTableHeader,
|
MsTableHeader,
|
||||||
MsTablePagination, MsTableButton, MsTableOperators, MsTableColumn, MsTable
|
MsTablePagination,
|
||||||
|
MsTableButton,
|
||||||
|
MsTableOperators,
|
||||||
|
MsTableColumn,
|
||||||
|
MsTable,
|
||||||
|
MsDeleteConfirm
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -176,6 +182,9 @@ export default {
|
||||||
this.$refs.templateEdit.open(copyData, true);
|
this.$refs.templateEdit.open(copyData, true);
|
||||||
},
|
},
|
||||||
handleDelete(data) {
|
handleDelete(data) {
|
||||||
|
this.$refs.deleteConfirm.open(data);
|
||||||
|
},
|
||||||
|
_handleDelete(data) {
|
||||||
this.result = this.$get('field/template/case/delete/' + data.id, () => {
|
this.result = this.$get('field/template/case/delete/' + data.id, () => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.initTableData();
|
this.initTableData();
|
||||||
|
|
|
@ -467,7 +467,8 @@ export default {
|
||||||
api_scenario: 'default',
|
api_scenario: 'default',
|
||||||
ui_element: 'default',
|
ui_element: 'default',
|
||||||
ui_scenario: 'default'
|
ui_scenario: 'default'
|
||||||
}
|
},
|
||||||
|
template_delete: "Template delete"
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
normal_Login: "Normal Login",
|
normal_Login: "Normal Login",
|
||||||
|
|
|
@ -469,7 +469,8 @@ export default {
|
||||||
api_scenario: '未规划场景',
|
api_scenario: '未规划场景',
|
||||||
ui_element: '未规划元素',
|
ui_element: '未规划元素',
|
||||||
ui_scenario: '未规划场景'
|
ui_scenario: '未规划场景'
|
||||||
}
|
},
|
||||||
|
template_delete: "模版删除"
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
normal_Login: "普通登录",
|
normal_Login: "普通登录",
|
||||||
|
|
|
@ -469,7 +469,8 @@ export default {
|
||||||
api_scenario: '未規劃場景',
|
api_scenario: '未規劃場景',
|
||||||
ui_element: '未規劃元素',
|
ui_element: '未規劃元素',
|
||||||
ui_scenario: '未規劃場景'
|
ui_scenario: '未規劃場景'
|
||||||
}
|
},
|
||||||
|
template_delete: "模版刪除"
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
normal_Login: "普通登錄",
|
normal_Login: "普通登錄",
|
||||||
|
|
Loading…
Reference in New Issue