From 882c1d3b17167609ee0f3266c09fc11bf8fe8899 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 3 Dec 2020 16:27:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B6=88=E6=81=AF=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E9=9D=A2=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/components/MsScheduleEdit.vue | 26 +++--- .../components/DefectTaskNotification.vue | 30 +++--- .../components/JenkinsNotification.vue | 92 +++++++++---------- .../components/ScheduleTaskNotification.vue | 59 ++++++------ .../components/TestPlanTaskNotification.vue | 42 +++++---- .../components/TestReviewNotification.vue | 42 +++++---- 6 files changed, 145 insertions(+), 146 deletions(-) diff --git a/frontend/src/business/components/common/components/MsScheduleEdit.vue b/frontend/src/business/components/common/components/MsScheduleEdit.vue index 9cb5eed4a8..75e854aba6 100644 --- a/frontend/src/business/components/common/components/MsScheduleEdit.vue +++ b/frontend/src/business/components/common/components/MsScheduleEdit.vue @@ -31,7 +31,8 @@ - + @@ -40,20 +41,19 @@ diff --git a/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue b/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue index 2dbe6148c8..5509ffdbd8 100644 --- a/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue +++ b/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue @@ -11,7 +11,7 @@ {{ $t('commons.cancel') }} { - this.form.reviewTask = response.data; - this.form.reviewTask.forEach(planTask => { + this.reviewTask = response.data; + this.reviewTask.forEach(planTask => { this.handleReviewReceivers(planTask); }); }) @@ -176,7 +171,7 @@ export default { Task.isSet = true; Task.identification = ''; Task.taskType = TASK_TYPE - this.form.reviewTask.push(Task) + this.reviewTask.push(Task) }, handleAddTask(index, data) { @@ -242,6 +237,13 @@ export default { } row.reviewReceiverOptions = reviewReceiverOptions; } + }, + watch: { + reviewReceiverOptions(value) { + if (value && value.length > 0) { + this.initForm(); + } + } } }