refactor: 修复单选场景无法关联到测试计划的缺陷

修复单选场景无法关联到测试计划的缺陷
This commit is contained in:
song-tianyang 2021-05-07 10:48:42 +08:00 committed by 刘瑞斌
parent 9109c81968
commit 05cdbabf11
1 changed files with 5 additions and 1 deletions

View File

@ -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;