From 14be65e84b113d3fb9ca5f04a39124b7b636a071 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 11 Oct 2022 18:59:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=98=BE=E7=A4=BA=E6=B5=8B=E8=AF=95=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/common/tableItems/plan/PlanStageTableItem.vue | 7 ++++++- .../frontend/src/business/plan/components/TestPlanList.vue | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/test-track/frontend/src/business/common/tableItems/plan/PlanStageTableItem.vue b/test-track/frontend/src/business/common/tableItems/plan/PlanStageTableItem.vue index 9a5304f4d9..700a97bcd9 100644 --- a/test-track/frontend/src/business/common/tableItems/plan/PlanStageTableItem.vue +++ b/test-track/frontend/src/business/common/tableItems/plan/PlanStageTableItem.vue @@ -16,7 +16,12 @@ stage: { type: String }, - option: [] + option: { + type:Array, + default() { + return []; + } + } } } diff --git a/test-track/frontend/src/business/plan/components/TestPlanList.vue b/test-track/frontend/src/business/plan/components/TestPlanList.vue index 222f8ec2cc..3678b8b742 100644 --- a/test-track/frontend/src/business/plan/components/TestPlanList.vue +++ b/test-track/frontend/src/business/plan/components/TestPlanList.vue @@ -492,8 +492,8 @@ export default { this.hasEditPermission = hasPermission('PROJECT_TRACK_PLAN:READ+EDIT'); this.hasSchedulePermission = hasPermission('PROJECT_TRACK_PLAN:READ+SCHEDULE'); this.condition.orders = getLastTableSortField(this.tableHeaderKey); - getPlanStageOption((data) => { - this.stageOption = data; + getPlanStageOption().then(r => { + this.stageOption = r.data; this.setAdvSearchStageOption(); if (this.stageOption.length > 0) { this.stageFilters = this.stageOption;