refactor(测试跟踪): 修改评审状态名称
This commit is contained in:
parent
2795345786
commit
1681f634f2
|
@ -0,0 +1,25 @@
|
|||
<template>
|
||||
<span>
|
||||
<ms-tag v-if="value === 'Prepare'" type="info" :content="$t('test_track.case.status_prepare')"/>
|
||||
<ms-tag v-if="value === 'Pass'" type="success" :content="$t('test_track.case.status_pass')"/>
|
||||
<ms-tag v-if="value === 'UnPass'" type="danger" :content="$t('test_track.case.status_un_pass')"/>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MsTag from "@/business/components/common/components/MsTag";
|
||||
|
||||
export default {
|
||||
name: "ReviewStatus",
|
||||
components: {MsTag},
|
||||
props: {
|
||||
value: {
|
||||
type: String
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
|
@ -107,7 +107,7 @@
|
|||
:label="$t('test_track.case.status')">
|
||||
<template v-slot:default="scope">
|
||||
<span class="el-dropdown-link">
|
||||
<status-table-item :value="scope.row.reviewStatus"/>
|
||||
<review-status :value="scope.row.reviewStatus"/>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -174,6 +174,7 @@
|
|||
import {LIST_CHANGE, TrackEvent} from "@/business/components/common/head/ListEvent";
|
||||
import StatusTableItem from "@/business/components/track/common/tableItems/planview/StatusTableItem";
|
||||
import TestCaseDetail from "./TestCaseDetail";
|
||||
import ReviewStatus from "@/business/components/track/case/components/ReviewStatus";
|
||||
export default {
|
||||
name: "TestCaseList",
|
||||
components: {
|
||||
|
@ -192,7 +193,8 @@
|
|||
ShowMoreBtn,
|
||||
BatchEdit,
|
||||
StatusTableItem,
|
||||
TestCaseDetail
|
||||
TestCaseDetail,
|
||||
ReviewStatus
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -222,9 +224,9 @@
|
|||
{text: this.$t('commons.api'), value: 'api'}
|
||||
],
|
||||
statusFilters: [
|
||||
{text: this.$t('test_track.plan.plan_status_prepare'), value: 'Prepare'},
|
||||
{text: this.$t('test_track.plan_view.pass'), value: 'Pass'},
|
||||
{text: '未通过', value: 'UnPass'},
|
||||
{text: this.$t('test_track.case.status_prepare'), value: 'Prepare'},
|
||||
{text: this.$t('test_track.case.status_pass'), value: 'Pass'},
|
||||
{text: this.$t('test_track.case.status_un_pass'), value: 'UnPass'},
|
||||
],
|
||||
showMore: false,
|
||||
buttons: [
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
:label="$t('test_track.case.status')"
|
||||
show-overflow-tooltip>
|
||||
<template v-slot:default="scope">
|
||||
<status-table-item :value="scope.row.reviewStatus"/>
|
||||
<review-status :value="scope.row.reviewStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
@ -101,6 +101,7 @@ import SwitchProject from "../../../case/components/SwitchProject";
|
|||
import {TEST_CASE_CONFIGS} from "../../../../common/components/search/search-components";
|
||||
import {_filter} from "../../../../../../common/js/utils";
|
||||
import StatusTableItem from "@/business/components/track/common/tableItems/planview/StatusTableItem";
|
||||
import ReviewStatus from "@/business/components/track/case/components/ReviewStatus";
|
||||
|
||||
export default {
|
||||
name: "TestReviewRelevance",
|
||||
|
@ -113,7 +114,8 @@ export default {
|
|||
MsTableAdvSearchBar,
|
||||
MsTableHeader,
|
||||
SwitchProject,
|
||||
StatusTableItem
|
||||
StatusTableItem,
|
||||
ReviewStatus
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
:label="$t('test_track.review_view.execute_result')">
|
||||
<template v-slot:default="scope">
|
||||
<span class="el-dropdown-link">
|
||||
<status-table-item :value="scope.row.reviewStatus"/>
|
||||
<review-status :value="scope.row.reviewStatus"/>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -169,6 +169,7 @@ import {_filter, _sort, checkoutTestManagerOrTestUser, hasRoles} from "../../../
|
|||
import {TEST_CASE_CONFIGS} from "../../../../common/components/search/search-components";
|
||||
import {ROLE_TEST_MANAGER, ROLE_TEST_USER} from "../../../../../../common/js/constants";
|
||||
import TestReviewTestCaseEdit from "./TestReviewTestCaseEdit";
|
||||
import ReviewStatus from "@/business/components/track/case/components/ReviewStatus";
|
||||
|
||||
export default {
|
||||
name: "TestReviewTestCaseList",
|
||||
|
@ -176,7 +177,7 @@ export default {
|
|||
MsTableOperatorButton, MsTableOperator, MethodTableItem, TypeTableItem,
|
||||
StatusTableItem, PriorityTableItem, StatusEdit,
|
||||
ExecutorEdit, MsTipButton, TestReviewTestCaseEdit, MsTableHeader,
|
||||
NodeBreadcrumb, MsTableButton, ShowMoreBtn, BatchEdit, MsTablePagination
|
||||
NodeBreadcrumb, MsTableButton, ShowMoreBtn, BatchEdit, MsTablePagination, ReviewStatus
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
|
@ -714,8 +714,8 @@ export default {
|
|||
batch_delete_case: 'Batch delete',
|
||||
batch_unlink: 'Batch Unlink',
|
||||
project_name: "Project",
|
||||
status: 'Status',
|
||||
status_prepare: 'Prepare',
|
||||
status: 'Review Status',
|
||||
status_prepare: 'Not reviewed',
|
||||
status_pass: 'Pass',
|
||||
status_un_pass: 'UnPass',
|
||||
cancel_relevance_project: "Disassociating the project will also cancel the associated test cases under the project",
|
||||
|
|
|
@ -716,8 +716,8 @@ export default {
|
|||
batch_delete_case: '批量删除用例',
|
||||
batch_unlink: '批量取消关联',
|
||||
project_name: '所属项目',
|
||||
status: '状态',
|
||||
status_prepare: '未开始',
|
||||
status: '评审状态',
|
||||
status_prepare: '未评审',
|
||||
status_pass: '通过',
|
||||
status_un_pass: '未通过',
|
||||
cancel_relevance_project: "取消项目关联会同时取消该项目下已关联的测试用例",
|
||||
|
|
|
@ -716,8 +716,8 @@ export default {
|
|||
batch_delete_case: '批量刪除用例',
|
||||
batch_unlink: '批量取消關聯',
|
||||
project_name: '所屬項目',
|
||||
status: '狀態',
|
||||
status_prepare: '未開始',
|
||||
status: '評審狀態',
|
||||
status_prepare: '未評審',
|
||||
status_pass: '通過',
|
||||
status_un_pass: '未通過',
|
||||
cancel_relevance_project: "取消項目關聯會同時取消該項目下已關聯的測試用例",
|
||||
|
|
Loading…
Reference in New Issue