diff --git a/frontend/src/business/components/common/router/router.js b/frontend/src/business/components/common/router/router.js
index 0dac4ad4af5a1168f4159da0e4f9c612e04bcc02..7a70a42f388637c3f61b708042969604a6b0fb76 100644
--- a/frontend/src/business/components/common/router/router.js
+++ b/frontend/src/business/components/common/router/router.js
@@ -214,7 +214,7 @@ const router = new VueRouter({
component: TestCase,
},
{
- path: "plan/:projectId",
+ path: "plan/:type",
name: "testPlan",
component: TestPlan
},
diff --git a/frontend/src/business/components/track/case/TestCase.vue b/frontend/src/business/components/track/case/TestCase.vue
index ca53e6415b55c6fbae3992521b2a4401ec63111c..f92670db70622e6dc9268369c93579ca2970c257 100644
--- a/frontend/src/business/components/track/case/TestCase.vue
+++ b/frontend/src/business/components/track/case/TestCase.vue
@@ -88,6 +88,7 @@
}
if (path.indexOf("/track/case/edit") >= 0){
this.openRecentTestCaseEditDialog();
+ this.$router.push('/track/case/all');
}
}
},
diff --git a/frontend/src/business/components/track/head/TrackHeaderMenus.vue b/frontend/src/business/components/track/head/TrackHeaderMenus.vue
index 3dd23233a38457dcb2a9302589eeb0b24abb055e..4bc6e8cfe402a8a838c1268b1729b44ae8ac827f 100644
--- a/frontend/src/business/components/track/head/TrackHeaderMenus.vue
+++ b/frontend/src/business/components/track/head/TrackHeaderMenus.vue
@@ -31,9 +31,6 @@
{{$t('test_track.case_list')}}
-
-
-
= 0){
+ this.openTestPlanEditDialog();
+ this.$router.push('/track/plan/all');
+ }
+ },
+ watch: {
+ '$route'(to, from) {
+ if (to.path.indexOf("/track/plan/create") >= 0){
+ this.openTestPlanEditDialog();
+ this.$router.push('/track/plan/all');
+ }
+ }
+ },
methods: {
openTestPlanEditDialog(data) {
this.$refs.testPlanEditDialog.openTestPlanEditDialog(data);
diff --git a/frontend/src/business/components/track/plan/TestPlanView.vue b/frontend/src/business/components/track/plan/TestPlanView.vue
index 180034012d83f4baa08e8df07a59c0068f3e3cf8..a1d5afe8c4ee98472b175e2095370d2af5a3dd91 100644
--- a/frontend/src/business/components/track/plan/TestPlanView.vue
+++ b/frontend/src/business/components/track/plan/TestPlanView.vue
@@ -13,19 +13,20 @@
+ @refresh="refresh">
@@ -65,7 +66,8 @@
},
methods: {
refresh() {
-
+ this.getPlanCases();
+ this.getNodeTreeByPlanId();
},
getPlanCases(nodeIds) {
this.$refs.testCasePlanList.initTableData(nodeIds);
diff --git a/frontend/src/business/components/track/plan/components/TestCasePlanList.vue b/frontend/src/business/components/track/plan/components/TestCasePlanList.vue
index f6795c47ad54df378ebcbe1720db7fd252741d85..66eb50b8719c8bc9d533ce8deb38c51bcabedddb 100644
--- a/frontend/src/business/components/track/plan/components/TestCasePlanList.vue
+++ b/frontend/src/business/components/track/plan/components/TestCasePlanList.vue
@@ -211,6 +211,7 @@
let testCaseId = testCase.id;
this.$post('/test/plan/case/delete/' + testCaseId, {}, () => {
this.initTableData();
+ this.$emit("refresh");
this.$message({
message: this.$t('commons.delete_success'),
type: 'success'