refactor(缺陷管理): 删除增加二次提醒
--story=1005998 --user=李玉号 删除增加二次提醒功能 https://www.tapd.cn/55049933/s/1112045
This commit is contained in:
parent
02fbadf5be
commit
9ebde184e9
|
@ -0,0 +1,40 @@
|
|||
<template>
|
||||
<el-dialog
|
||||
title=""
|
||||
:visible.sync="dialogVisible"
|
||||
width="25%">
|
||||
<span>{{ $t('test_track.issue.delete_tip') }}{{issue.title}} ?</span>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false" size="medium">{{$t('commons.cancel')}}</el-button>
|
||||
<el-button type="primary" @click="confirm" size="medium">{{$t('commons.confirm')}}</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "IssueDeleteConfirm",
|
||||
data() {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
issue: {
|
||||
title: ""
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
open(issue) {
|
||||
this.issue = issue;
|
||||
this.dialogVisible = true;
|
||||
},
|
||||
confirm() {
|
||||
this.$emit('delete', this.issue);
|
||||
this.dialogVisible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -149,6 +149,7 @@
|
|||
:total="page.total"/>
|
||||
|
||||
<issue-edit @refresh="getIssues" ref="issueEdit"/>
|
||||
<issue-delete-confirm @delete="_handleDelete" ref="issueDeleteConfirm"/>
|
||||
|
||||
</el-card>
|
||||
</ms-main-container>
|
||||
|
@ -180,10 +181,12 @@ import MsMainContainer from "@/business/components/common/components/MsMainConta
|
|||
import {getCurrentProjectID, getCurrentWorkspaceId} from "@/common/js/utils";
|
||||
import {getProjectMember} from "@/network/user";
|
||||
import {LOCAL} from "@/common/js/constants";
|
||||
import IssueDeleteConfirm from "@/business/components/track/issue/IssueDeleteConfirm";
|
||||
|
||||
export default {
|
||||
name: "IssueList",
|
||||
components: {
|
||||
IssueDeleteConfirm,
|
||||
MsMainContainer,
|
||||
MsContainer,
|
||||
IssueEdit,
|
||||
|
@ -312,6 +315,9 @@ export default {
|
|||
this.$refs.issueEdit.open(copyData, 'copy');
|
||||
},
|
||||
handleDelete(data) {
|
||||
this.$refs.issueDeleteConfirm.open(data);
|
||||
},
|
||||
_handleDelete(data) {
|
||||
this.page.result = this.$get('issues/delete/' + data.id, () => {
|
||||
this.$success(this.$t('commons.delete_success'));
|
||||
this.getIssues();
|
||||
|
|
|
@ -2353,6 +2353,7 @@ export default {
|
|||
update_third_party_bugs: "Update the defects of third-party platforms",
|
||||
sync_bugs: "Synchronization Issue",
|
||||
save_before_open_comment: "Please save issue before comment",
|
||||
delete_tip: "Confirm Delete Issue:"
|
||||
},
|
||||
report: {
|
||||
name: "Test Plan Report",
|
||||
|
|
|
@ -2358,6 +2358,7 @@ export default {
|
|||
update_third_party_bugs: "更新第三方平台的缺陷",
|
||||
sync_bugs: "同步缺陷",
|
||||
save_before_open_comment: "请先保存缺陷再添加评论",
|
||||
delete_tip: "确认删除缺陷:"
|
||||
},
|
||||
report: {
|
||||
name: "测试计划报告",
|
||||
|
|
|
@ -2357,6 +2357,7 @@ export default {
|
|||
update_third_party_bugs: "更新第三方平臺的缺陷",
|
||||
sync_bugs: "同步缺陷",
|
||||
save_before_open_comment: "請先保存缺陷再添加評論",
|
||||
delete_tip: "確認刪除缺陷:"
|
||||
},
|
||||
report: {
|
||||
name: "測試計劃報告",
|
||||
|
|
Loading…
Reference in New Issue