diff --git a/frontend/src/business/components/settings/organization/components/api/ApiAutomationNotification.vue b/frontend/src/business/components/settings/organization/components/api/ApiAutomationNotification.vue index 59ff2694c8..d3d411cc56 100644 --- a/frontend/src/business/components/settings/organization/components/api/ApiAutomationNotification.vue +++ b/frontend/src/business/components/settings/organization/components/api/ApiAutomationNotification.vue @@ -288,23 +288,36 @@ export default { handleReceivers(row) { let receiverOptions = JSON.parse(JSON.stringify(this.receiverOptions)); let i = row.userIds.indexOf('FOLLOW_PEOPLE'); + 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": 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.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); - } - if (row.userIds.indexOf('FOLLOW_PEOPLE') < 0) { - row.userIds.unshift('FOLLOW_PEOPLE'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } + if (i < 0) { + row.userIds.unshift('FOLLOW_PEOPLE'); + } } break; case "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.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } if (i > -1) { row.userIds.splice(i, 1); diff --git a/frontend/src/business/components/settings/organization/components/api/ApiDefinitionNotification.vue b/frontend/src/business/components/settings/organization/components/api/ApiDefinitionNotification.vue index c421b4432f..e30700c9f5 100644 --- a/frontend/src/business/components/settings/organization/components/api/ApiDefinitionNotification.vue +++ b/frontend/src/business/components/settings/organization/components/api/ApiDefinitionNotification.vue @@ -206,7 +206,7 @@ export default { this.result = this.$get('/notice/search/message/type/' + TASK_TYPE, response => { this.defectTask = response.data; // 上报通知数 - this.$emit("noticeSize", {module: 'api', data: this.defectTask, taskType:TASK_TYPE}); + this.$emit("noticeSize", {module: 'api', data: this.defectTask, taskType: TASK_TYPE}); this.defectTask.forEach(planTask => { this.handleReceivers(planTask); }); @@ -291,15 +291,17 @@ export default { handleReceivers(row) { let receiverOptions = JSON.parse(JSON.stringify(this.receiverOptions)); let i = row.userIds.indexOf('FOLLOW_PEOPLE'); + let i2 = row.userIds.indexOf('CREATOR'); + switch (row.event) { case "UPDATE": case "CASE_UPDATE": 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.userIds.indexOf('CREATOR') < 0) { + if (i2 < 0) { row.userIds.unshift('CREATOR'); } - if (row.userIds.indexOf('FOLLOW_PEOPLE') < 0) { + if (i < 0) { row.userIds.unshift('FOLLOW_PEOPLE'); } break; @@ -307,7 +309,7 @@ export default { case "CASE_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.userIds.indexOf('CREATOR') < 0) { + if (i2 < 0) { row.userIds.unshift('CREATOR'); } if (i > -1) { diff --git a/frontend/src/business/components/settings/organization/components/api/ApiHomeNotification.vue b/frontend/src/business/components/settings/organization/components/api/ApiHomeNotification.vue index d2a414bac0..2389878406 100644 --- a/frontend/src/business/components/settings/organization/components/api/ApiHomeNotification.vue +++ b/frontend/src/business/components/settings/organization/components/api/ApiHomeNotification.vue @@ -289,11 +289,15 @@ export default { }, handleReceivers(row) { let receiverOptions = JSON.parse(JSON.stringify(this.receiverOptions)); + let i2 = row.userIds.indexOf('CREATOR'); + switch (row.event) { case "CLOSE_SCHEDULE": receiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } break; default: diff --git a/frontend/src/business/components/settings/organization/components/api/ApiReportNotification.vue b/frontend/src/business/components/settings/organization/components/api/ApiReportNotification.vue index fa08e5b3e1..fc5b9c53b0 100644 --- a/frontend/src/business/components/settings/organization/components/api/ApiReportNotification.vue +++ b/frontend/src/business/components/settings/organization/components/api/ApiReportNotification.vue @@ -285,11 +285,15 @@ export default { }, handleReceivers(row) { let receiverOptions = JSON.parse(JSON.stringify(this.receiverOptions)); + let i2 = row.userIds.indexOf('CREATOR'); + switch (row.event) { case "DELETE": receiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } break; default: diff --git a/frontend/src/business/components/settings/organization/components/performance/PerformanceReportNotification.vue b/frontend/src/business/components/settings/organization/components/performance/PerformanceReportNotification.vue index 6b1d0a1f11..0b60b70385 100644 --- a/frontend/src/business/components/settings/organization/components/performance/PerformanceReportNotification.vue +++ b/frontend/src/business/components/settings/organization/components/performance/PerformanceReportNotification.vue @@ -201,7 +201,7 @@ export default { this.result = this.$get('/notice/search/message/type/' + TASK_TYPE, response => { this.defectTask = response.data; // 上报通知数 - this.$emit("noticeSize", {module: 'performance', data: this.defectTask, taskType:TASK_TYPE}); + this.$emit("noticeSize", {module: 'performance', data: this.defectTask, taskType: TASK_TYPE}); this.defectTask.forEach(planTask => { this.handleReceivers(planTask); }); @@ -285,11 +285,14 @@ export default { }, handleReceivers(row) { let receiverOptions = JSON.parse(JSON.stringify(this.receiverOptions)); + let i2 = row.userIds.indexOf('CREATOR'); switch (row.event) { case "DELETE": receiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } break; default: diff --git a/frontend/src/business/components/settings/organization/components/performance/PerformanceTestNotification.vue b/frontend/src/business/components/settings/organization/components/performance/PerformanceTestNotification.vue index 87e933f551..c05c4a13ef 100644 --- a/frontend/src/business/components/settings/organization/components/performance/PerformanceTestNotification.vue +++ b/frontend/src/business/components/settings/organization/components/performance/PerformanceTestNotification.vue @@ -288,23 +288,35 @@ export default { handleReceivers(row) { let receiverOptions = JSON.parse(JSON.stringify(this.receiverOptions)); let i = row.userIds.indexOf('FOLLOW_PEOPLE'); - + 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": 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.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); - } - if (row.userIds.indexOf('FOLLOW_PEOPLE') < 0) { - row.userIds.unshift('FOLLOW_PEOPLE'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } + if (i < 0) { + row.userIds.unshift('FOLLOW_PEOPLE'); + } } break; case "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.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } if (i > -1) { row.userIds.splice(i, 1); 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 517b8578ef..3b68122007 100644 --- a/frontend/src/business/components/settings/organization/components/track/DefectTaskNotification.vue +++ b/frontend/src/business/components/settings/organization/components/track/DefectTaskNotification.vue @@ -8,21 +8,21 @@ {{ $t('organization.message.create_new_notification') }} + placement="right-end" + title="示例" + width="600" + trigger="click"> {{ $t('organization.message.mail_template_example') }} + placement="right-end" + title="示例" + width="400" + trigger="click" + :content="robotTitle"> {{ $t('organization.message.robot_template') }} @@ -33,11 +33,11 @@ @@ -59,10 +59,10 @@ :placeholder="$t('commons.please_select')" style="width: 100%;" :disabled="!row.isSet"> + v-for="item in row.defectReceiverOptions" + :key="item.id" + :label="item.name" + :value="item.id"> @@ -73,10 +73,10 @@ size="mini" :disabled="!scope.row.isSet" @change="handleEdit(scope.$index, scope.row)"> + v-for="item in receiveTypeOptions" + :key="item.value" + :label="item.label" + :value="item.value"> @@ -90,48 +90,48 @@ @@ -169,17 +169,17 @@ export default { return { modes: ['text', 'html'], title: "\n" + - "\n" + - "\n" + - " \n" + - " MeterSphere\n" + - "\n" + - "\n" + - "
\n" + - "

${creator}发起了一个缺陷:${issuesName},请跟进

\n" + - "
\n" + - "\n" + - "", + "\n" + + "\n" + + " \n" + + " MeterSphere\n" + + "\n" + + "\n" + + "
\n" + + "

${creator}发起了一个缺陷:${issuesName},请跟进

\n" + + "
\n" + + "\n" + + "", robotTitle: "【任务通知】:${creator}发起了一个缺陷:${issuesName},请跟进", defectTask: [{ taskType: "defectTask", @@ -287,22 +287,39 @@ 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.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); - } - if (row.userIds.indexOf('PROCESSOR') < 0) { - row.userIds.unshift('PROCESSOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } + if (i < 0) { + row.userIds.unshift('PROCESSOR'); + } } break; case "DELETE": testPlanReceivers.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } + } + if (i > -1) { + row.userIds.splice(i, 1); } break; default: diff --git a/frontend/src/business/components/settings/organization/components/track/TestCaseNotification.vue b/frontend/src/business/components/settings/organization/components/track/TestCaseNotification.vue index a77fdf9a69..a1aecc8dc8 100644 --- a/frontend/src/business/components/settings/organization/components/track/TestCaseNotification.vue +++ b/frontend/src/business/components/settings/organization/components/track/TestCaseNotification.vue @@ -8,21 +8,21 @@ {{ $t('organization.message.create_new_notification') }}
+ placement="right-end" + title="示例" + width="600" + trigger="click"> {{ $t('organization.message.mail_template_example') }} + placement="right-end" + title="示例" + width="400" + trigger="click" + :content="robotTitle"> {{ $t('organization.message.robot_template') }} @@ -33,11 +33,11 @@ @@ -59,10 +59,10 @@ :placeholder="$t('commons.please_select')" style="width: 100%;" :disabled="!row.isSet"> + v-for="item in row.receiverOptions" + :key="item.id" + :label="item.name" + :value="item.id"> @@ -73,10 +73,10 @@ size="mini" :disabled="!scope.row.isSet" @change="handleEdit(scope.$index, scope.row)"> + v-for="item in receiveTypeOptions" + :key="item.value" + :label="item.label" + :value="item.value"> @@ -90,48 +90,48 @@ @@ -169,17 +169,17 @@ export default { return { modes: ['text', 'html'], title: "\n" + - "\n" + - "\n" + - " \n" + - " MeterSphere\n" + - "\n" + - "\n" + - "
\n" + - "

${creator}创建了测试用例

\n" + - "
\n" + - "\n" + - "", + "\n" + + "\n" + + " \n" + + " MeterSphere\n" + + "\n" + + "\n" + + "
\n" + + "

${creator}创建了测试用例

\n" + + "
\n" + + "\n" + + "", robotTitle: "【任务通知】:${creator}创建了测试用例", defectTask: [{ taskType: "defectTask", @@ -289,24 +289,29 @@ export default { handleReceivers(row) { let receiverOptions = JSON.parse(JSON.stringify(this.receiverOptions)); let i = row.userIds.indexOf('FOLLOW_PEOPLE'); + let i2 = row.userIds.indexOf('CREATOR'); switch (row.event) { case "UPDATE": case "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.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); - } - if (i < 0) { - row.userIds.unshift('FOLLOW_PEOPLE'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } + if (i < 0) { + row.userIds.unshift('FOLLOW_PEOPLE'); + } } break; case "COMMENT": 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.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } if (i > -1) { row.userIds.splice(i, 1); diff --git a/frontend/src/business/components/settings/organization/components/track/TestPlanTaskNotification.vue b/frontend/src/business/components/settings/organization/components/track/TestPlanTaskNotification.vue index 7086a62d94..b3b9c92ab4 100644 --- a/frontend/src/business/components/settings/organization/components/track/TestPlanTaskNotification.vue +++ b/frontend/src/business/components/settings/organization/components/track/TestPlanTaskNotification.vue @@ -291,6 +291,7 @@ export default { }, handleTestPlanReceivers(row) { let testPlanReceivers = JSON.parse(JSON.stringify(this.testPlanReceiverOptions)); + let i2 = row.userIds.indexOf('CREATOR'); switch (row.event) { case "CREATE": testPlanReceivers.unshift({id: 'EXECUTOR', name: this.$t('test_track.plan_view.executor')}); @@ -300,8 +301,10 @@ export default { case "COMMENT": case "COMPLETE": testPlanReceivers.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } break; default: diff --git a/frontend/src/business/components/settings/organization/components/track/TestReviewNotification.vue b/frontend/src/business/components/settings/organization/components/track/TestReviewNotification.vue index fd1b049b88..1a9a10bb23 100644 --- a/frontend/src/business/components/settings/organization/components/track/TestReviewNotification.vue +++ b/frontend/src/business/components/settings/organization/components/track/TestReviewNotification.vue @@ -8,20 +8,20 @@ {{ $t('organization.message.create_new_notification') }}
+ placement="right-end" + title="示例" + width="600" + trigger="click"> {{ $t('organization.message.mail_template_example') }} + placement="right-end" + title="示例" + width="600" + trigger="click"> {{ $t('organization.message.robot_template') }} @@ -32,11 +32,11 @@ @@ -58,10 +58,10 @@ :placeholder="$t('commons.please_select')" style="width: 100%;" :disabled="!row.isSet"> + v-for="item in row.reviewReceiverOptions" + :key="item.id" + :label="item.name" + :value="item.id"> @@ -72,10 +72,10 @@ size="mini" :disabled="!scope.row.isSet" @change="handleEdit(scope.$index, scope.row)"> + v-for="item in receiveTypeOptions" + :key="item.value" + :label="item.label" + :value="item.value"> @@ -89,48 +89,48 @@ @@ -168,25 +168,25 @@ export default { return { modes: ['text', 'html'], title: "\n" + - "\n" + - "\n" + - " \n" + - " MeterSphere\n" + - "\n" + - "\n" + - "
\n" + - "

${creator} 创建的:
\n" + - " ${reviewName}待开始
\n" + - " 计划开始时间是:${start}
\n" + - " 计划结束时间为:${end}
\n" + - " 请跟进!/${status}
\n" + - " 点击下面链接进入评审页面进行审核

\n" + - " ${url}/#/track/review/view/${id}\n" + - "
\n" + - "\n" + - "", + "\n" + + "\n" + + " \n" + + " MeterSphere\n" + + "\n" + + "\n" + + "
\n" + + "

${creator} 创建的:
\n" + + " ${reviewName}待开始
\n" + + " 计划开始时间是:${start}
\n" + + " 计划结束时间为:${end}
\n" + + " 请跟进!/${status}
\n" + + " 点击下面链接进入评审页面进行审核

\n" + + " ${url}/#/track/review/view/${id}\n" + + "
\n" + + "\n" + + "", robotTitle: "【任务通知】:${creator} 创建的:${reviewName}待开始,计划开始时间是:${start}," + - "计划结束时间是:${end}请跟进!/ ${status}!点击下面链接进入测试评审页面${url}/#/track/review/view/${id}", + "计划结束时间是:${end}请跟进!/ ${status}!点击下面链接进入测试评审页面${url}/#/track/review/view/${id}", reviewTask: [{ taskType: "reviewTask", event: "", @@ -289,21 +289,26 @@ export default { }, handleReviewReceivers(row) { let reviewReceiverOptions = JSON.parse(JSON.stringify(this.reviewReceiverOptions)); - + let i = row.userIds.indexOf('FOLLOW_PEOPLE'); + let i2 = row.userIds.indexOf('CREATOR'); switch (row.event) { case "CREATE": reviewReceiverOptions.unshift({id: 'EXECUTOR', name: this.$t('test_track.review.reviewer')}); break; case "UPDATE": reviewReceiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } break; case "DELETE": reviewReceiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } break; case "COMMENT": @@ -311,8 +316,10 @@ export default { break; case "COMPLETE": reviewReceiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } break; default: diff --git a/frontend/src/business/components/settings/organization/components/track/TrackHomeNotification.vue b/frontend/src/business/components/settings/organization/components/track/TrackHomeNotification.vue index fafc31afea..dce4f98848 100644 --- a/frontend/src/business/components/settings/organization/components/track/TrackHomeNotification.vue +++ b/frontend/src/business/components/settings/organization/components/track/TrackHomeNotification.vue @@ -8,21 +8,21 @@ {{ $t('organization.message.create_new_notification') }}
+ placement="right-end" + title="示例" + width="600" + trigger="click"> {{ $t('organization.message.mail_template_example') }} + placement="right-end" + title="示例" + width="400" + trigger="click" + :content="robotTitle"> {{ $t('organization.message.robot_template') }} @@ -33,11 +33,11 @@ @@ -59,10 +59,10 @@ :placeholder="$t('commons.please_select')" style="width: 100%;" :disabled="!row.isSet"> + v-for="item in row.receiverOptions" + :key="item.id" + :label="item.name" + :value="item.id"> @@ -73,10 +73,10 @@ size="mini" :disabled="!scope.row.isSet" @change="handleEdit(scope.$index, scope.row)"> + v-for="item in receiveTypeOptions" + :key="item.value" + :label="item.label" + :value="item.value"> @@ -90,48 +90,48 @@ @@ -169,17 +169,17 @@ export default { return { modes: ['text', 'html'], title: "\n" + - "\n" + - "\n" + - " \n" + - " MeterSphere\n" + - "\n" + - "\n" + - "
\n" + - "

${operator}关闭了定时任务

\n" + - "
\n" + - "\n" + - "", + "\n" + + "\n" + + " \n" + + " MeterSphere\n" + + "\n" + + "\n" + + "
\n" + + "

${operator}关闭了定时任务

\n" + + "
\n" + + "\n" + + "", robotTitle: "【任务通知】:${operator}发起了一个缺陷:${name},请跟进", defectTask: [{ taskType: "defectTask", @@ -289,11 +289,14 @@ export default { }, handleReceivers(row) { let receiverOptions = JSON.parse(JSON.stringify(this.receiverOptions)); + let i2 = row.userIds.indexOf('CREATOR'); switch (row.event) { case "CLOSE_SCHEDULE": receiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } break; default: diff --git a/frontend/src/business/components/settings/organization/components/track/TrackReportNotification.vue b/frontend/src/business/components/settings/organization/components/track/TrackReportNotification.vue index da671960a2..8070cae306 100644 --- a/frontend/src/business/components/settings/organization/components/track/TrackReportNotification.vue +++ b/frontend/src/business/components/settings/organization/components/track/TrackReportNotification.vue @@ -285,11 +285,14 @@ export default { }, handleReceivers(row) { let receiverOptions = JSON.parse(JSON.stringify(this.receiverOptions)); + let i2 = row.userIds.indexOf('CREATOR'); switch (row.event) { case "DELETE": receiverOptions.unshift({id: 'CREATOR', name: this.$t('commons.create_user')}); - if (row.userIds.indexOf('CREATOR') < 0) { - row.userIds.unshift('CREATOR'); + if (row.isSet) { + if (i2 < 0) { + row.userIds.unshift('CREATOR'); + } } break; default: