refactor(消息通知): 修改测试计划通知配置候选人列表默认值
--bug=1010614 --user=刘瑞斌 【消息通知】github#10357,消息通知模块里的 测试计划 通知,选 新建 事件,接收人 出现了执行人,选执行完成事件,反而没有 执行人可以选 https://www.tapd.cn/55049933/s/1110386 Closes #10357
This commit is contained in:
parent
c5362a6286
commit
9b8c16bbd9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue