fix(用例评审):用例评审状态展示错乱(去掉代码中的注释)

--bug=1010120 --user=李敏 [测试跟踪]github #10249用例评审评论展示错乱 https://www.tapd.cn/55049933/s/1108872
This commit is contained in:
limin-fit2 2022-02-23 16:19:40 +08:00 committed by xiaomeinvG
parent 0b2c492d05
commit 44bf144594
1 changed files with 0 additions and 12 deletions

View File

@ -289,7 +289,6 @@ export default {
param.caseId = this.testCase.caseId;
param.reviewId = this.testCase.reviewId;
param.status = status;
//reviewComment
if (status === 'UnPass') {
if ((this.testCase.reviewStatus === 'Pass' || this.testCase.reviewStatus === 'Prepare') && this.$refs.reviewComment.form.description.length < 1) {
this.oldReviewStatus = this.testCase.reviewStatus;
@ -306,9 +305,6 @@ export default {
this.$success(this.$t('commons.save_success'));
this.updateTestCases(param);
this.setReviewStatus(this.testCase.reviewId);
// //
// this.testCase.reviewStatus = status;
//
this.testCases[this.index].reviewStatus = status;
if (this.index < this.testCases.length - 1) {
this.handleNext();
@ -323,9 +319,7 @@ export default {
this.$success(this.$t('commons.save_success'));
this.updateTestCases(param);
this.setReviewStatus(this.testCase.reviewId);
//
this.testCase.reviewStatus = status;
//
this.testCases[this.index].reviewStatus = status;
if (this.index < this.testCases.length - 1) {
this.handleNext();
@ -343,8 +337,6 @@ export default {
this.$post('/test/review/case/edit', param, () => {
this.updateTestCases(param);
this.setReviewStatus(this.testCase.reviewId);
//
//
this.oldReviewStatus = status;
this.testCases[this.index].reviewStatus = status;
if (this.index < this.testCases.length - 1) {
@ -400,14 +392,10 @@ export default {
this.isCustomFiledActive = true;
this.testCase = item;
if (!this.testCase.actualResult) {
// ,使
this.testCase.actualResult = this.testCaseTemplate.actualResult;
}
// this.getRelatedTest();
this.getComments(item);
this.$refs.reviewComment.resetInputLight();
/* this.initTest();*/
//this.getFileMetaData(data);
})
},