diff --git a/api-test/frontend/src/business/automation/schedule/ScheduleNotification.vue b/api-test/frontend/src/business/automation/schedule/ScheduleNotification.vue index dbc3a6afa1..c1d3d4f185 100644 --- a/api-test/frontend/src/business/automation/schedule/ScheduleNotification.vue +++ b/api-test/frontend/src/business/automation/schedule/ScheduleNotification.vue @@ -10,12 +10,14 @@ - + @@ -47,6 +49,7 @@ export default { }, data() { return { + loading: false, modes: ['text', 'html'], robotTitle: "${operator}执行接口测试成功: ${name}, 报告: ${reportUrl}", scheduleTask: [{ @@ -210,8 +213,11 @@ export default { }, methods: { initForm() { - this.result = getMessageById(this.testId).then(response => { + this.loading = getMessageById(this.testId).then(response => { this.scheduleTask = response.data; + this.scheduleTask.forEach(task => { + this.handleReceivers(task); + }); }); }, handleAddTaskModel() { diff --git a/api-test/frontend/src/business/commons/ScheduleNotification.vue b/api-test/frontend/src/business/commons/ScheduleNotification.vue index 6d40a4f893..08301fa528 100644 --- a/api-test/frontend/src/business/commons/ScheduleNotification.vue +++ b/api-test/frontend/src/business/commons/ScheduleNotification.vue @@ -10,12 +10,14 @@ - + @@ -48,6 +50,7 @@ export default { }, data() { return { + loading: false, modes: ['text', 'html'], robotTitle: "${operator}执行接口测试成功: ${name}, 报告: ${reportUrl}", scheduleTask: [{ @@ -211,8 +214,11 @@ export default { }, methods: { initForm() { - this.result = getMessageById(this.testId).then(response => { + this.loading = getMessageById(this.testId).then(response => { this.scheduleTask = response.data; + this.scheduleTask.forEach(task => { + this.handleReceivers(task); + }); }); }, handleAddTaskModel() { diff --git a/api-test/frontend/src/business/definition/components/import/SwaggerTaskNotification.vue b/api-test/frontend/src/business/definition/components/import/SwaggerTaskNotification.vue index b349197769..03944abf8f 100644 --- a/api-test/frontend/src/business/definition/components/import/SwaggerTaskNotification.vue +++ b/api-test/frontend/src/business/definition/components/import/SwaggerTaskNotification.vue @@ -10,12 +10,14 @@ - + @@ -47,6 +49,7 @@ export default { }, data() { return { + loading: false, modes: ['text', 'html'], robotTitle: "swagger:${url}导入成功", @@ -80,8 +83,11 @@ export default { }, methods: { initForm() { - this.result = getMessageById(this.apiTestId).then(response => { + this.loading = getMessageById(this.apiTestId).then(response => { this.scheduleTask = response.data; + this.scheduleTask.forEach(task => { + this.handleReceivers(task); + }); }); }, handleAddTaskModel() {