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; } } }