From 2636d594ee07d79828c97271912a19484f74798a Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 11 Oct 2022 17:18:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA=E9=A6=96=E9=A1=B5top10?= =?UTF-8?q?=E6=97=A0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1017720 --user=陈建星 【测试跟踪】首页过去7天测试计划失败用例TOP10没有数据产生 https://www.tapd.cn/55049933/s/1258643 --- .../controller/remote/TrackApiTestController.java | 3 ++- test-track/frontend/src/api/remote/api/api-home.js | 7 +++++++ .../home/components/FailureTestCaseList.vue | 14 ++++++++------ 3 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 test-track/frontend/src/api/remote/api/api-home.js diff --git a/test-track/backend/src/main/java/io/metersphere/controller/remote/TrackApiTestController.java b/test-track/backend/src/main/java/io/metersphere/controller/remote/TrackApiTestController.java index 62fc42e793..e274bdd290 100644 --- a/test-track/backend/src/main/java/io/metersphere/controller/remote/TrackApiTestController.java +++ b/test-track/backend/src/main/java/io/metersphere/controller/remote/TrackApiTestController.java @@ -19,7 +19,8 @@ import javax.servlet.http.HttpServletRequest; "/api/automation/module", "/api/project", "/test/case/relevance/api", - "/test/case/relevance/scenario" + "/test/case/relevance/scenario", + "home" }) public class TrackApiTestController { @Resource diff --git a/test-track/frontend/src/api/remote/api/api-home.js b/test-track/frontend/src/api/remote/api/api-home.js new file mode 100644 index 0000000000..5324d01949 --- /dev/null +++ b/test-track/frontend/src/api/remote/api/api-home.js @@ -0,0 +1,7 @@ +import {post, get} from "@/business/utils/sdk-utils"; + +const BASE_URL = '/home/'; + +export function homeTestPlanFailureCaseGet(projectId, selectFunctionCase, limitNumber) { + return get(BASE_URL + `failure/case/about/plan/${projectId}/${selectFunctionCase}/${limitNumber}`); +} diff --git a/test-track/frontend/src/business/home/components/FailureTestCaseList.vue b/test-track/frontend/src/business/home/components/FailureTestCaseList.vue index 96ea94ee08..e5540bd215 100644 --- a/test-track/frontend/src/business/home/components/FailureTestCaseList.vue +++ b/test-track/frontend/src/business/home/components/FailureTestCaseList.vue @@ -1,5 +1,5 @@