From 24cf530815482f585c8c421b18cd162eb95fb10b Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Mon, 23 Aug 2021 14:20:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=BC=BA=E9=99=B7=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=80=9A=E7=9F=A5=E5=88=9B=E5=BB=BA=E4=BA=BA=20--bug?= =?UTF-8?q?=3D1006001=20--user=3D=E5=88=98=E7=91=9E=E6=96=8C=20=E3=80=90?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5=E3=80=91=E7=BC=BA=E9=99=B7?= =?UTF-8?q?-=E6=9B=B4=E6=96=B0...=20https://www.tapd.cn/55049933/s/1037696?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/track/DefectTaskNotification.vue | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/frontend/src/business/components/settings/organization/components/track/DefectTaskNotification.vue b/frontend/src/business/components/settings/organization/components/track/DefectTaskNotification.vue index 6a7d7562af..884e0221f0 100644 --- a/frontend/src/business/components/settings/organization/components/track/DefectTaskNotification.vue +++ b/frontend/src/business/components/settings/organization/components/track/DefectTaskNotification.vue @@ -287,28 +287,20 @@ export default { }, handleReceivers(row) { let testPlanReceivers = JSON.parse(JSON.stringify(this.defectReceiverOptions)); - let i = row.userIds.indexOf('PROCESSOR'); let i2 = row.userIds.indexOf('CREATOR'); switch (row.event) { case "CREATE": if (i2 > -1) { row.userIds.splice(i2, 1); } - if (i > -1) { - row.userIds.splice(i, 1); - } break; case "UPDATE": case "STATUS_CHANGE": - testPlanReceivers.unshift({id: 'PROCESSOR', name: '处理人'}); testPlanReceivers.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); if (row.isSet) { if (i2 < 0) { row.userIds.unshift('CREATOR'); } - if (i < 0) { - row.userIds.unshift('PROCESSOR'); - } } break; case "DELETE": @@ -318,9 +310,6 @@ export default { row.userIds.unshift('CREATOR'); } } - if (i > -1) { - row.userIds.splice(i, 1); - } break; default: break;