refactor(项目设置): 修改消息通知mock类型接收人不加关注人

--user=郭雨琦
https://www.tapd.cn/55049933/prong/stories/view/1155049933001009922
This commit is contained in:
guoyuqi 2022-10-27 15:03:55 +08:00 committed by 刘瑞斌
parent 0882a51c97
commit d79016eda0
1 changed files with 15 additions and 8 deletions

View File

@ -422,18 +422,15 @@ export default {
}
break;
case "MOCK_CREATE":
receiverOptions.unshift({id: 'FOLLOW_PEOPLE', name: this.$t('api_test.automation.follow_people')});
receiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')});
if (row.isSet) {
if (i < 0) {
row.userIds.unshift('FOLLOW_PEOPLE');
if (i2 > -1) {
row.userIds.splice(i2, 1);
}
if (i > -1) {
row.userIds.splice(i, 1);
}
break;
case "UPDATE":
case "CASE_UPDATE":
case "MOCK_UPDATE":
case "MOCK_DELETE":
receiverOptions.unshift({id: 'FOLLOW_PEOPLE', name: this.$t('api_test.automation.follow_people')});
receiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')});
if (row.isSet) {
@ -445,6 +442,16 @@ export default {
}
}
break;
case "MOCK_UPDATE":
case "MOCK_DELETE":
receiverOptions.unshift({id: 'FOLLOW_PEOPLE', name: this.$t('api_test.automation.follow_people')});
receiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')});
if (row.isSet) {
if (i2 < 0) {
row.userIds.unshift('CREATOR');
}
}
break;
case "DELETE":
case "CASE_DELETE":
case "EXECUTE_SUCCESSFUL":