From 9b8c16bbd979820891e65b81d1755f81776514a2 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 25 Feb 2022 16:05:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5):?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E9=85=8D=E7=BD=AE=E5=80=99=E9=80=89=E4=BA=BA?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010614 --user=刘瑞斌 【消息通知】github#10357,消息通知模块里的 测试计划 通知,选 新建 事件,接收人 出现了执行人,选执行完成事件,反而没有 执行人可以选 https://www.tapd.cn/55049933/s/1110386 Closes #10357 --- .../workspace/components/track/TestPlanTaskNotification.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/business/components/settings/workspace/components/track/TestPlanTaskNotification.vue b/frontend/src/business/components/settings/workspace/components/track/TestPlanTaskNotification.vue index 94ad94d7ec..c5730934e5 100644 --- a/frontend/src/business/components/settings/workspace/components/track/TestPlanTaskNotification.vue +++ b/frontend/src/business/components/settings/workspace/components/track/TestPlanTaskNotification.vue @@ -359,6 +359,7 @@ export default { let testPlanReceivers = JSON.parse(JSON.stringify(this.testPlanReceiverOptions)); let i = row.userIds.indexOf('FOLLOW_PEOPLE'); let i2 = row.userIds.indexOf('CREATOR'); + let i3 = row.userIds.indexOf('EXECUTOR'); switch (row.event) { case "CREATE": testPlanReceivers.unshift({id: 'EXECUTOR', name: this.$t('test_track.plan_view.executor')}); @@ -375,6 +376,7 @@ export default { case "COMPLETE": testPlanReceivers.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); testPlanReceivers.unshift({id: 'FOLLOW_PEOPLE', name: this.$t('api_test.automation.follow_people')}); + testPlanReceivers.unshift({id: 'EXECUTOR', name: this.$t('test_track.plan_view.executor')}); if (row.isSet) { if (i2 < 0) { @@ -383,6 +385,9 @@ export default { if (i < 0) { row.userIds.unshift('FOLLOW_PEOPLE'); } + if (i3 < 0) { + row.userIds.unshift('EXECUTOR'); + } } break; default: