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"> + + +