From 797c9f07766626fe9c6e1ae7d58694584a12d8fb Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 12 Oct 2020 17:35:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E7=BB=93=E6=9E=9C=E4=B8=BA?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E6=97=B6=E8=87=AA=E5=8A=A8=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=B0=E4=B8=8B=E4=B8=80=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/io/metersphere/xpack | 2 +- .../track/plan/view/comonents/TestPlanTestCaseEdit.vue | 5 +++++ frontend/src/business/components/xpack | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index cf6b065263..ee74568be0 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit cf6b06526324326a563d933e07118fac014a63b4 +Subproject commit ee74568be0beba46da19616f5832e83f9164c688 diff --git a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue index e67919c705..ebb61a8568 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue @@ -374,6 +374,7 @@ export default { }, statusChange(status) { this.testCase.status = status; + this.saveCase(); }, saveCase() { let param = {}; @@ -398,6 +399,10 @@ export default { this.$success(this.$t('commons.save_success')); this.updateTestCases(param); this.setPlanStatus(this.testCase.planId); + // 结果为Pass时 自动跳转到下一用例 + if (this.testCase.status === 'Pass' && this.index < this.testCases.length - 1) { + this.handleNext(); + } }); }, updateTestCases(param) { diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 06d935cd1d..cc38137a69 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 06d935cd1d22ab36f09763745c2aff8ad3fb08c1 +Subproject commit cc38137a69a0f20fadece9c0f9f50a9468c4ace9