From ed76c92ce3a0d823df597685c9179e23c98b9730 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 11 Jul 2022 17:09:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=8E=A5=E5=8F=A3=E6=80=A7?= =?UTF-8?q?=E8=83=BD=E7=94=A8=E4=BE=8B=E6=94=AF=E6=8C=81=E7=82=B9=E5=87=BB?= =?UTF-8?q?id=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1008184 --user=陈建星 测试计划优化 https://www.tapd.cn/55049933/s/1198664 --- .../comonents/api/TestPlanApiCaseList.vue | 31 +++++++++++++++++-- .../comonents/api/TestPlanApiScenarioList.vue | 25 +++++++++++++-- .../comonents/load/TestPlanLoadCaseList.vue | 29 +++++++++++++++-- 3 files changed, 78 insertions(+), 7 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue index 5138cf43c0..a968219e8b 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue @@ -32,9 +32,20 @@ @filter="search" ref="table"> - + sortable + label="ID" + prop="num" + min-width="80"> + + @@ -188,7 +199,7 @@ import MsContainer from "../../../../../common/components/MsContainer"; import MsBottomContainer from "../../../../../api/definition/components/BottomContainer"; import BatchEdit from "@/business/components/track/case/components/BatchEdit"; import {API_METHOD_COLOUR, CASE_PRIORITY, RESULT_MAP} from "../../../../../api/definition/model/JsonData"; -import {getCurrentProjectID, hasLicense, strMapToObj} from "@/common/js/utils"; +import {getCurrentProjectID, getCurrentWorkspaceId, hasLicense, strMapToObj} from "@/common/js/utils"; import PriorityTableItem from "../../../../common/tableItems/planview/PriorityTableItem"; import {getUUID} from "../../../../../../../common/js/utils"; import TestPlanCaseListHeader from "./TestPlanCaseListHeader"; @@ -676,6 +687,20 @@ export default { }); } }, + openApiById(item) { + let definitionData = this.$router.resolve({ + name: 'ApiDefinitionWithQuery', + params: { + redirectID: getUUID(), + dataType: "apiTestCase", + dataSelectRange: 'single:' + item.caseId, + projectId: getCurrentProjectID(), + type: item.protocol, + workspaceId: getCurrentWorkspaceId(), + } + }); + window.open(definitionData.href, '_blank'); + }, }, }; diff --git a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiScenarioList.vue b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiScenarioList.vue index d334ab382d..c59fd3aebf 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiScenarioList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiScenarioList.vue @@ -35,7 +35,15 @@ sortable prop="customNum" min-width="80px" - label="ID"/> + label="ID"> + + diff --git a/frontend/src/business/components/track/plan/view/comonents/load/TestPlanLoadCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/load/TestPlanLoadCaseList.vue index 9060803798..472d480aa0 100644 --- a/frontend/src/business/components/track/plan/view/comonents/load/TestPlanLoadCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/load/TestPlanLoadCaseList.vue @@ -37,7 +37,16 @@ prop="num" sortable min-width="80" - label="ID"/> + label="ID"> + + +