From 81f4f6952cc7e9c5155bce67f6511331b14844f4 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 21 Feb 2022 15:26:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A4=B1=E8=B4=A5=E7=94=A8=E4=BE=8BTOP10?= =?UTF-8?q?=E6=89=80=E5=B1=9E=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/track/home/TrackHome.vue | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/frontend/src/business/components/track/home/TrackHome.vue b/frontend/src/business/components/track/home/TrackHome.vue index c77abb2664..2d0f7d2705 100644 --- a/frontend/src/business/components/track/home/TrackHome.vue +++ b/frontend/src/business/components/track/home/TrackHome.vue @@ -25,7 +25,7 @@ - + @@ -54,7 +54,7 @@ import BugCountCard from "@/business/components/track/home/components/BugCountCa import ReviewList from "@/business/components/track/home/components/ReviewList"; import MsRunningTaskList from "@/business/components/track/home/components/RunningTaskList"; import MsFailureTestCaseList from "@/business/components/api/homepage/components/FailureTestCaseList"; -import {getCurrentProjectID} from "@/common/js/utils"; +import {getCurrentProjectID, getUUID} from "@/common/js/utils"; require('echarts/lib/component/legend'); export default { @@ -161,18 +161,26 @@ export default { }; this.caseOption = option; }, - redirectPage(page, dataType, selectType) { - //test_plan 页面跳转 - // this.$router.push('/track/plan/view/'+selectType); + redirectPage(page, dataType, selectType, title) { + //api页面跳转 + //传入UUID是为了进行页面重新加载判断 + let uuid = getUUID(); switch (page) { - case "case": + case "api": this.$router.push({ - name: 'testCase', - params: { - dataType: dataType, dataSelectRange: selectType, projectId: this.projectId - } + name: 'ApiDefinition', + params: {redirectID: uuid, dataType: dataType, dataSelectRange: selectType} }); break; + case "scenario": + this.$router.push({ + name: 'ApiAutomation', + params: {redirectID: uuid, dataType: dataType, dataSelectRange: selectType} + }); + break; + case "testPlanEdit": + this.$router.push('/track/plan/view/' + selectType) + break; } } }