mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
fix(测试跟踪): 用例评审状态修复及去掉功能用例编辑返回按钮
This commit is contained in:
parent
71abe6a72a
commit
17dd9c0730
@ -6,7 +6,8 @@ public enum TestReviewCaseStatus {
|
||||
UnPass("execute_not_pass", 2),
|
||||
Underway("test_case_review_status_underway", 3),
|
||||
Again("test_case_status_again", 4),
|
||||
Prepare("test_case_status_prepare", 5);
|
||||
Prepare("test_case_status_prepare", 5),
|
||||
Rereview("test_case_review_status_re_review", 6);
|
||||
|
||||
private String i18nKey;
|
||||
private Integer order;
|
||||
|
@ -548,11 +548,13 @@ public class TestCaseReviewService {
|
||||
TestCaseReview testCaseReview = new TestCaseReview();
|
||||
testCaseReview.setId(reviewId);
|
||||
|
||||
if (statusList.contains(TestReviewCaseStatus.Prepare.name()) || statusList.contains(TestReviewCaseStatus.Again.name())) {
|
||||
if (statusList.contains(TestReviewCaseStatus.Prepare.name()) || statusList.contains(TestReviewCaseStatus.Again.name()) ||
|
||||
statusList.contains(TestReviewCaseStatus.Underway.name()) || statusList.contains(TestReviewCaseStatus.Rereview.name())) {
|
||||
testCaseReview.setStatus(TestCaseReviewStatus.Underway.name());
|
||||
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
|
||||
return;
|
||||
} else if (statusList.contains(TestReviewCaseStatus.UnPass.name())) {
|
||||
}
|
||||
if (statusList.contains(TestReviewCaseStatus.UnPass.name())) {
|
||||
testCaseReview.setStatus(TestCaseReviewStatus.Finished.name());
|
||||
testCaseReviewMapper.updateByPrimaryKeySelective(testCaseReview);
|
||||
return;
|
||||
|
@ -5,9 +5,6 @@
|
||||
<!-- 创建 or 编辑用例 -->
|
||||
<div class="edit-header-container">
|
||||
<div class="header-content-row">
|
||||
<div class="back" @click="back" v-if="!isPublicShow">
|
||||
<img src="/assets/module/figma/icon_arrow-left_outlined.svg" alt="" />
|
||||
</div>
|
||||
<div :class="'case-name'">
|
||||
{{ !editable ? form.name : $t('test_track.case.create_case') }}
|
||||
</div>
|
||||
|
@ -177,19 +177,19 @@ export default {
|
||||
uhPassCommentOpen() {
|
||||
this.isCommentRequire = true;
|
||||
this.commentTitle = this.$t('review.un_pass_review_confirm');
|
||||
this.commentTip = this.$t('review.please_input_review_comment');
|
||||
this.commentTip = this.$t('review.please_input_review_comment') + this.$t('review.comment_require');
|
||||
this.addCommentOpen('UnPass');
|
||||
},
|
||||
passCommentOpen() {
|
||||
this.isCommentRequire = false;
|
||||
this.commentTitle = this.$t('review.pass_review_confirm');
|
||||
this.commentTip = this.$t('review.please_input_review_comment');
|
||||
this.commentTip = this.$t('review.please_input_review_comment') + this.$t('review.comment_not_require');
|
||||
this.addCommentOpen('Pass');
|
||||
},
|
||||
commentOpen() {
|
||||
this.isCommentRequire = true;
|
||||
this.commentTitle = this.$t('case.comment');
|
||||
this.commentTip = this.$t('commons.input_content');
|
||||
this.commentTip = this.$t('commons.input_content') + this.$t('review.comment_not_require');
|
||||
this.addCommentOpen();
|
||||
},
|
||||
}
|
||||
|
@ -79,6 +79,8 @@ const message = {
|
||||
un_pass_review_confirm: "Are you sure you don't pass this review",
|
||||
please_input_review_comment: "Please enter the review comments",
|
||||
pass_review_confirm: "Are you sure to pass this review",
|
||||
comment_require: "(require)",
|
||||
comment_not_require: "(not_require)"
|
||||
},
|
||||
case: {
|
||||
all_case_content: "All case",
|
||||
|
@ -79,6 +79,8 @@ const message = {
|
||||
un_pass_review_confirm: "确定不通过此评审吗",
|
||||
please_input_review_comment: "请输入评审意见",
|
||||
pass_review_confirm: "确定通过此评审吗",
|
||||
comment_require: "(必填)",
|
||||
comment_not_require: "(选填)"
|
||||
},
|
||||
case: {
|
||||
all_case_content: "全部用例",
|
||||
|
@ -79,6 +79,8 @@ const message = {
|
||||
un_pass_review_confirm: "確定不通過此評審嗎",
|
||||
please_input_review_comment: "請輸入評審意見",
|
||||
pass_review_confirm: "確定通過此評審嗎",
|
||||
comment_require: "(必填)",
|
||||
comment_not_require: "(選填)"
|
||||
},
|
||||
case: {
|
||||
all_case_content: "全部用例",
|
||||
|
Loading…
Reference in New Issue
Block a user