From d0af80d3f0c668a78434a1823f575f35f8e12079 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 17 Jun 2020 17:40:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E7=82=B9=E4=BF=9D=E5=AD=98=E5=90=8E=E7=8A=B6=E6=80=81=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=B8=8D=E5=8F=8A=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan/view/comonents/TestPlanTestCaseEdit.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 ed584bdca3..8feac18a12 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue @@ -289,9 +289,21 @@ param.issues = JSON.stringify(this.testCase.issues); this.$post('/test/plan/case/edit', param, () => { this.$success(this.$t('commons.save_success')); + this.updateTestCases(param); this.setPlanStatus(this.testCase.planId); }); }, + updateTestCases(param) { + for (let i = 0; i < this.testCases.length; i++) { + let testCase = this.testCases[i]; + if (testCase.id === param.id) { + testCase.results = param.results; + testCase.issues = param.issues; + testCase.status = param.status; + return; + } + } + }, handleNext() { this.index++; this.getTestCase(this.index);