fix(测试跟踪): 用例评审状态评审问题

--bug=1018322 --user=宋昌昌 【测试跟踪】用例评审-开始评审-评论-评审结果状态不对 https://www.tapd.cn/55049933/s/1266289

Co-authored-by: song-cc-rock <changchang.song@fit2cloud.com>
This commit is contained in:
MeterSphere Bot 2022-10-19 10:21:10 +08:00 committed by GitHub
parent eac5002a99
commit e155d4b02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -2,13 +2,13 @@
<el-card class="executeCard">
<div class="status-bnt">
<el-button type="success" size="mini"
:disabled="isReadOnly" :icon="testCase.status === 'Pass' ? 'el-icon-check' : ''"
:disabled="isReadOnly" :icon="testCase.reviewStatus === 'Pass' ? 'el-icon-check' : ''"
@click="changeStatus('Pass')">
{{ $t('test_track.review.pass') }}
</el-button>
<el-button type="danger" size="mini"
:disabled="isReadOnly"
:icon="testCase.status === 'UnPass' ? 'el-icon-check' : ''"
:icon="testCase.reviewStatus === 'UnPass' ? 'el-icon-check' : ''"
@click="changeStatus('UnPass')">
{{ $t('test_track.review.un_pass') }}
</el-button>
@ -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;
}
}
}