From e155d4b02c1361e0170d1ec523f25f45c4babf9b Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Wed, 19 Oct 2022 10:21:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1=E7=8A=B6=E6=80=81=E8=AF=84?= =?UTF-8?q?=E5=AE=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018322 --user=宋昌昌 【测试跟踪】用例评审-开始评审-评论-评审结果状态不对 https://www.tapd.cn/55049933/s/1266289 Co-authored-by: song-cc-rock --- .../review/view/components/TestReviewTestCaseEdit.vue | 4 ++-- .../review/view/components/TestReviewTestCaseExecute.vue | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue index 72f55e5e0b..f15f408191 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue @@ -292,7 +292,7 @@ export default { param.caseId = this.testCase.caseId; param.reviewId = this.testCase.reviewId; param.comment = this.testCase.comment; - param.status = this.testCase.status; + param.status = this.testCase.reviewStatus; editTestReviewTestCase(param) .then(() => { this.$success(this.$t('commons.save_success')); @@ -302,7 +302,7 @@ export default { // 修改当前用例在整个用例列表的状态 this.testCases[this.index].status = this.testCase.status; // 切换状态后需要修改旧的状态 - this.oldReviewStatus = this.testCase.status; + this.oldReviewStatus = this.testCase.reviewStatus; if (this.testCase.comment) { this.$refs.comment.getComments(); diff --git a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseExecute.vue b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseExecute.vue index dda062f0fd..26d64f3545 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseExecute.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseExecute.vue @@ -2,13 +2,13 @@
{{ $t('test_track.review.pass') }} {{ $t('test_track.review.un_pass') }} @@ -43,14 +43,14 @@ export default { methods: { saveCase() { // 从其他状态改成失败才需要写评论 - if (this.testCase.status === 'UnPass' && this.originStatus !== 'UnPass' && !this.testCase.comment) { + if (this.testCase.reviewStatus === 'UnPass' && this.originStatus !== 'UnPass' && !this.testCase.comment) { this.$refs.comment.inputLight(); } else { this.$emit('saveCase'); } }, changeStatus(status) { - this.testCase.status = status; + this.testCase.reviewStatus = status; } } }