From 05cdbabf1104e63e57cef13e61483a37c2f63341 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Fri, 7 May 2021 10:48:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E5=A4=8D=E5=8D=95?= =?UTF-8?q?=E9=80=89=E5=9C=BA=E6=99=AF=E6=97=A0=E6=B3=95=E5=85=B3=E8=81=94?= =?UTF-8?q?=E5=88=B0=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复单选场景无法关联到测试计划的缺陷 --- .../api/automation/scenario/testplan/TestPlanList.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 18ff36d3fc..41d2eea14e 100644 --- a/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue +++ b/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue @@ -144,7 +144,7 @@ import MsTableOperatorButton from "../../../../common/components/MsTableOperator import MsTableOperator from "../../../../common/components/MsTableOperator"; import PlanStatusTableItem from "../../../../track/common/tableItems/plan/PlanStatusTableItem"; import PlanStageTableItem from "../../../../track/common/tableItems/plan/PlanStageTableItem"; -import {checkoutTestManagerOrTestUser, strMapToObj} from "@/common/js/utils"; +import {checkoutTestManagerOrTestUser} from "@/common/js/utils"; import TestReportTemplateList from "../../../../track/plan/view/comonents/TestReportTemplateList"; import TestCaseReportView from "../../../../track/plan/view/comonents/report/TestCaseReportView"; import MsDeleteConfirm from "../../../../common/components/MsDeleteConfirm"; @@ -239,6 +239,10 @@ export default { this.map.clear(); if (this.scenarioCondition != null) { let params = {}; + params.ids = []; + rows.forEach(row => { + params.ids.push(row.id); + }); params.condition = this.scenarioCondition; this.$post('/api/automation/getApiScenarioProjectIdByConditions', params, res => { let data = res.data;