diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml
index 19cbffeb3b..37143332d5 100644
--- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml
+++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanTestCaseMapper.xml
@@ -27,6 +27,9 @@
and test_case.name like CONCAT('%', #{request.name},'%')
+
+ and test_case.id = #{request.id}
+
and test_case.node_id in
diff --git a/backend/src/main/java/io/metersphere/track/controller/TestPlanTestCaseController.java b/backend/src/main/java/io/metersphere/track/controller/TestPlanTestCaseController.java
index 2faa0d92f0..a0b240cc58 100644
--- a/backend/src/main/java/io/metersphere/track/controller/TestPlanTestCaseController.java
+++ b/backend/src/main/java/io/metersphere/track/controller/TestPlanTestCaseController.java
@@ -27,6 +27,11 @@ public class TestPlanTestCaseController {
return PageUtils.setPageInfo(page, testPlanTestCaseService.list(request));
}
+ @GetMapping("/get/{caseId}")
+ public TestPlanCaseDTO getTestPlanCases(@PathVariable String caseId){
+ return testPlanTestCaseService.get(caseId);
+ }
+
@PostMapping("recent/{count}")
public List getRecentTestCases(@PathVariable int count, @RequestBody QueryTestPlanCaseRequest request){
return testPlanTestCaseService.getRecentTestCases(request, count);
diff --git a/backend/src/main/java/io/metersphere/track/dto/TestPlanCaseDTO.java b/backend/src/main/java/io/metersphere/track/dto/TestPlanCaseDTO.java
index 6d7b1747cf..66831d2cac 100644
--- a/backend/src/main/java/io/metersphere/track/dto/TestPlanCaseDTO.java
+++ b/backend/src/main/java/io/metersphere/track/dto/TestPlanCaseDTO.java
@@ -7,9 +7,10 @@ import lombok.Setter;
@Getter
@Setter
public class TestPlanCaseDTO extends TestCaseWithBLOBs {
-
private String executor;
private String executorName;
private String status;
private String results;
+ private String planId;
+ private String caseId;
}
diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanTestCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanTestCaseService.java
index 30fe81b8ad..9e66e3e470 100644
--- a/backend/src/main/java/io/metersphere/track/service/TestPlanTestCaseService.java
+++ b/backend/src/main/java/io/metersphere/track/service/TestPlanTestCaseService.java
@@ -97,4 +97,9 @@ public class TestPlanTestCaseService {
request.setExecutor(user.getId());
}
+ public TestPlanCaseDTO get(String caseId) {
+ QueryTestPlanCaseRequest request = new QueryTestPlanCaseRequest();
+ request.setId(caseId);
+ return extTestPlanTestCaseMapper.list(request).get(0);
+ }
}
diff --git a/frontend/src/business/components/common/router/router.js b/frontend/src/business/components/common/router/router.js
index 01771f46ac..2be39981df 100644
--- a/frontend/src/business/components/common/router/router.js
+++ b/frontend/src/business/components/common/router/router.js
@@ -218,6 +218,11 @@ const router = new VueRouter({
name: "planView",
component: TestPlanView
},
+ {
+ path: "plan/view/edit/:caseId",
+ name: "planViewEdit",
+ component: TestPlanView
+ },
{
path: "project/:type",
name: "trackProject",
diff --git a/frontend/src/business/components/track/home/TrackHome.vue b/frontend/src/business/components/track/home/TrackHome.vue
index 2c0bee5ab4..438459044a 100644
--- a/frontend/src/business/components/track/home/TrackHome.vue
+++ b/frontend/src/business/components/track/home/TrackHome.vue
@@ -8,10 +8,10 @@
-
+
-
+
@@ -21,12 +21,11 @@
diff --git a/frontend/src/business/components/track/home/components/RecentTestCaseList.vue b/frontend/src/business/components/track/home/components/RecentTestCaseList.vue
deleted file mode 100644
index 523058117c..0000000000
--- a/frontend/src/business/components/track/home/components/RecentTestCaseList.vue
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/frontend/src/business/components/track/home/components/PendingTestCaseList.vue b/frontend/src/business/components/track/home/components/TestCaseSideList.vue
similarity index 52%
rename from frontend/src/business/components/track/home/components/PendingTestCaseList.vue
rename to frontend/src/business/components/track/home/components/TestCaseSideList.vue
index b278e1ec42..be0df399f7 100644
--- a/frontend/src/business/components/track/home/components/PendingTestCaseList.vue
+++ b/frontend/src/business/components/track/home/components/TestCaseSideList.vue
@@ -1,9 +1,10 @@
-
+