From f98e0ab9c1012ed9a6174433fe6aade6e8b1e560 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Fri, 11 Jun 2021 13:27:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=89=8D=E7=AB=AF=E4=BC=A0?= =?UTF-8?q?=E5=85=A5projectid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/automation/scenario/testplan/TestPlanList.vue | 1 + .../business/components/track/plan/components/TestPlanList.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue b/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue index adfec6c57d..100ab722ae 100644 --- a/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue +++ b/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue @@ -270,6 +270,7 @@ export default { this.$warning(this.$t('commons.check_project_tip')); return; } + this.condition.projectId = getCurrentProjectID(); this.result = this.$post(this.buildPagePath(this.queryPath), this.condition, response => { let data = response.data; this.total = data.itemCount; diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index 1a87f998f8..5183f9d04b 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -328,6 +328,7 @@ export default { if (!this.projectId) { return; } + this.condition.projectId = getCurrentProjectID(); this.cardResult = this.$post(this.buildPagePath(this.queryPath), this.condition, response => { let data = response.data; this.total = data.itemCount;