fix: 打标签
This commit is contained in:
parent
3f79553892
commit
2175995964
|
@ -4,7 +4,8 @@
|
||||||
<review-comment-item v-for="(comment,index) in comments"
|
<review-comment-item v-for="(comment,index) in comments"
|
||||||
:key="index"
|
:key="index"
|
||||||
:comment="comment"
|
:comment="comment"
|
||||||
@refresh="refresh"/>
|
@refresh="refresh"
|
||||||
|
:review-status="reviewStatus"/>
|
||||||
<div v-if="comments.length === 0" style="text-align: center">
|
<div v-if="comments.length === 0" style="text-align: center">
|
||||||
<i class="el-icon-chat-line-square" style="font-size: 15px;color: #8a8b8d;">
|
<i class="el-icon-chat-line-square" style="font-size: 15px;color: #8a8b8d;">
|
||||||
<span style="font-size: 15px; color: #8a8b8d;">
|
<span style="font-size: 15px; color: #8a8b8d;">
|
||||||
|
@ -44,7 +45,8 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
caseId: String,
|
caseId: String,
|
||||||
comments: Array,
|
comments: Array,
|
||||||
reviewId:String,
|
reviewId: String,
|
||||||
|
reviewStatus: String,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -10,6 +10,14 @@
|
||||||
<span style="color: #8a8b8d; margin-left: 8px; font-size: 12px">
|
<span style="color: #8a8b8d; margin-left: 8px; font-size: 12px">
|
||||||
{{ comment.createTime | timestampFormatDate }}
|
{{ comment.createTime | timestampFormatDate }}
|
||||||
</span>
|
</span>
|
||||||
|
<span>
|
||||||
|
<el-button v-if="reviewStatus === 'UnPass'" type="danger" size="mini" round>
|
||||||
|
{{ $t('test_track.review.un_pass') }}
|
||||||
|
</el-button>
|
||||||
|
<el-button v-if="reviewStatus === 'Pass'" type="success" size="mini">
|
||||||
|
{{ $t('test_track.review.pass') }}
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
<span class="comment-delete">
|
<span class="comment-delete">
|
||||||
<el-link icon="el-icon-edit" style="font-size: 9px;margin-right: 6px;" @click="openEdit" :disabled="readOnly"/>
|
<el-link icon="el-icon-edit" style="font-size: 9px;margin-right: 6px;" @click="openEdit" :disabled="readOnly"/>
|
||||||
<el-link icon="el-icon-close" @click="deleteComment" :disabled="readOnly"/>
|
<el-link icon="el-icon-close" @click="deleteComment" :disabled="readOnly"/>
|
||||||
|
@ -54,7 +62,8 @@ export default {
|
||||||
readOnly: {
|
readOnly: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
}
|
},
|
||||||
|
reviewStatus: String,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -144,4 +153,8 @@ pre {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/deep/ .el-button--mini, .el-button--mini.is-round {
|
||||||
|
padding: 4px 9px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
style="margin-left:10px;font-size: 14px; cursor: pointer"/>
|
style="margin-left:10px;font-size: 14px; cursor: pointer"/>
|
||||||
</template>
|
</template>
|
||||||
<review-comment :comments="comments" :case-id="testCase.caseId" :review-id="testCase.reviewId"
|
<review-comment :comments="comments" :case-id="testCase.caseId" :review-id="testCase.reviewId"
|
||||||
@getComments="getComments" ref="reviewComment"/>
|
@getComments="getComments" :review-status="testCase.reviewStatus" ref="reviewComment"/>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</div>
|
</div>
|
||||||
|
@ -274,6 +274,18 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.$refs.reviewComment.inputLight();
|
this.$refs.reviewComment.inputLight();
|
||||||
this.$warning(this.$t('test_track.comment.description_is_null'));
|
this.$warning(this.$t('test_track.comment.description_is_null'));
|
||||||
|
this.$post('/test/review/case/edit', param, () => {
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$post('/test/review/case/edit', param, () => {
|
this.$post('/test/review/case/edit', param, () => {
|
||||||
|
|
Loading…
Reference in New Issue