From b82ffef3cfff5e66c68f50c2157f839a1c20cf3e Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 25 Aug 2020 18:18:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=90=E7=BC=BA=E9=99=B7=E6=97=B6?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=BC=BA=E9=99=B7=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/comonents/TestPlanTestCaseEdit.vue | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) 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 93a3fe1322..85baa228a4 100644 --- a/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue +++ b/frontend/src/business/components/track/plan/view/comonents/TestPlanTestCaseEdit.vue @@ -402,6 +402,7 @@ }, openTestCaseEdit(testCase) { this.showDialog = true; + this.issuesSwitch = false; this.activeTab = 'detail'; listenGoBack(this.handleClose); this.initData(testCase); @@ -459,18 +460,18 @@ } }, issuesChange() { - // if (this.testCase.issues.hasIssues) { - // let desc = this.addPLabel('[' + this.$t('test_track.plan_view.operate_step') + ']'); - // let result = this.addPLabel('[' + this.$t('test_track.case.expected_results') + ']'); - // let executeResult = this.addPLabel('[' + this.$t('test_track.plan_view.actual_result') + ']'); - // this.testCase.steps.forEach(step => { - // let stepPrefix = this.$t('test_track.plan_view.step') + step.num + ':'; - // desc += this.addPLabel(stepPrefix + (step.desc == undefined ? '' : step.desc)); - // result += this.addPLabel(stepPrefix + (step.result == undefined ? '' : step.result)); - // executeResult += this.addPLabel(stepPrefix + (step.executeResult == undefined ? '' : step.executeResult)); - // }); - // this.testCase.issues.content = desc + this.addPLabel('') + result + this.addPLabel('') + executeResult + this.addPLabel(''); - // } + if (this.issuesSwitch) { + let desc = this.addPLabel('[' + this.$t('test_track.plan_view.operate_step') + ']'); + let result = this.addPLabel('[' + this.$t('test_track.case.expected_results') + ']'); + let executeResult = this.addPLabel('[' + this.$t('test_track.plan_view.actual_result') + ']'); + this.testCase.steps.forEach(step => { + let stepPrefix = this.$t('test_track.plan_view.step') + step.num + ':'; + desc += this.addPLabel(stepPrefix + (step.desc == undefined ? '' : step.desc)); + result += this.addPLabel(stepPrefix + (step.result == undefined ? '' : step.result)); + executeResult += this.addPLabel(stepPrefix + (step.executeResult == undefined ? '' : step.executeResult)); + }); + this.testCase.issues.content = desc + this.addPLabel('') + result + this.addPLabel('') + executeResult + this.addPLabel(''); + } }, addPLabel(str) { return "

" + str + "

";