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:
parent
eac5002a99
commit
e155d4b02c
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue