From 4f954a1f848213545f38f007b7c4b6179d8df404 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 17 Feb 2023 22:17:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023154 --user=陈建星 【测试跟踪】功能用例-编辑页面-修改用例等级和版本后未更新 https://www.tapd.cn/55049933/s/1337368 --- .../controller/TestCaseController.java | 5 + .../metersphere/service/TestCaseService.java | 4 + test-track/frontend/src/api/testCase.js | 4 + .../frontend/src/business/case/TestCase.vue | 214 +----------------- .../business/case/components/TestCaseEdit.vue | 46 ++-- .../business/case/components/TestCaseList.vue | 2 +- .../case/components/case/CaseBaseInfo.vue | 6 - .../components/public/PublicTestCaseList.vue | 2 +- .../frontend/src/business/case/test-case.js | 8 +- .../src/business/head/TrackHeaderMenus.vue | 2 + .../TestReviewTestCaseEditHeaderBar.vue | 2 +- .../frontend/src/router/modules/track.js | 4 +- .../src/business/component/CaseTableList.vue | 17 +- .../dashboard/components/MyCaseCard.vue | 2 +- 14 files changed, 64 insertions(+), 254 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java b/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java index 0a77b49d69..6345bce839 100644 --- a/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java +++ b/test-track/backend/src/main/java/io/metersphere/controller/TestCaseController.java @@ -174,6 +174,11 @@ public class TestCaseController { return testCaseService.getTestCaseStep(testCaseId); } + @GetMapping("/get/simple/{testCaseId}") + public TestCaseWithBLOBs getSimpleCase(@PathVariable String testCaseId) { + return testCaseService.getSimpleCase(testCaseId); + } + @GetMapping("/project/{testCaseId}") public Project getProjectByTestCaseId(@PathVariable String testCaseId) { trackCheckPermissionService.checkTestCaseOwner(testCaseId); diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index 2837865844..88b3e71116 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -3150,4 +3150,8 @@ public class TestCaseService { return new ArrayList<>(0); } } + + public TestCaseWithBLOBs getSimpleCase(String testCaseId) { + return testCaseMapper.selectByPrimaryKey(testCaseId); + } } diff --git a/test-track/frontend/src/api/testCase.js b/test-track/frontend/src/api/testCase.js index 4143709fb5..e3aa1347c2 100644 --- a/test-track/frontend/src/api/testCase.js +++ b/test-track/frontend/src/api/testCase.js @@ -22,6 +22,10 @@ export function getTestCase(id) { return get(BASE_URL + `get/${id}`); } +export function getSimpleTestCase(id) { + return get(BASE_URL + `get/simple/${id}`); +} + export function getTestCaseByVersionId(refId, versionId) { return get(BASE_URL + `get/version/${refId}/${versionId}`); } diff --git a/test-track/frontend/src/business/case/TestCase.vue b/test-track/frontend/src/business/case/TestCase.vue index ad031c19bf..91112c302a 100644 --- a/test-track/frontend/src/business/case/TestCase.vue +++ b/test-track/frontend/src/business/case/TestCase.vue @@ -1,7 +1,7 @@