From dd6d7c770ad7a1dd17846d98eaca4a7b140c4cc3 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 13 Jun 2022 14:58:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E7=BC=BA=E9=99=B7=E4=BC=9A=E5=85=B3=E8=81=94?= =?UTF-8?q?=E4=B8=8A=E6=9D=A1=E7=BC=96=E8=BE=91=E7=9A=84=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E6=89=80=E5=85=B3=E8=81=94=E7=9A=84=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013978 --user=陈建星 【测试跟踪】github#14662 缺陷管理里面连续多条缺陷关联用例,关联的用例会重复 https://www.tapd.cn/55049933/s/1179786 --- .../src/business/components/track/issue/IssueEditDetail.vue | 3 +++ .../src/business/components/track/issue/TestCaseIssueList.vue | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/frontend/src/business/components/track/issue/IssueEditDetail.vue b/frontend/src/business/components/track/issue/IssueEditDetail.vue index 8c9ee342cf..dadc4c9205 100644 --- a/frontend/src/business/components/track/issue/IssueEditDetail.vue +++ b/frontend/src/business/components/track/issue/IssueEditDetail.vue @@ -289,6 +289,9 @@ export default { this.result.loading = true; this.type = type; this.richTextDefaultOpen = this.type === 'edit' ? 'preview' : 'edit'; + if (this.$refs.testCaseIssueList) { + this.$refs.testCaseIssueList.clear(); + } this.$nextTick(() => { getIssuePartTemplateWithProject((template, project) => { this.currentProject = project; diff --git a/frontend/src/business/components/track/issue/TestCaseIssueList.vue b/frontend/src/business/components/track/issue/TestCaseIssueList.vue index e699c4ec86..f325262134 100644 --- a/frontend/src/business/components/track/issue/TestCaseIssueList.vue +++ b/frontend/src/business/components/track/issue/TestCaseIssueList.vue @@ -91,6 +91,10 @@ export default { this.tableData.splice(index, 1); this.deleteIds.add(item.id); }, + clear() { + this.addIds.clear(); + this.deleteIds.clear(); + }, initTableData() { this.tableData = []; let condition = {