fix:测试跟踪,测试用例表头显示和设置的不一样

This commit is contained in:
wenyann 2021-03-19 17:19:12 +08:00
parent 88c2073002
commit afc0cfbde5
2 changed files with 36 additions and 11 deletions

View File

@ -5,12 +5,17 @@ export const Track_Test_Case = [
{id: 'num', label: i18n.t('commons.id')},
{id: 'name', label: i18n.t('commons.name')},
{id: 'priority', label: i18n.t('test_track.case.priority')},
{id: 'type', label: i18n.t('test_track.case.type')},
{id: 'method', label: i18n.t('test_track.case.method')},
/*
{id: 'type', label: i18n.t('test_track.case.type')},
*/
/*
{id: 'method', label: i18n.t('test_track.case.method')},
*/
{id: 'reviewStatus', label: i18n.t('test_track.case.status')},
{id: 'tags', label: i18n.t('commons.tag')},
{id: 'nodePath', label: i18n.t('test_track.case.module')},
{id: 'updateTime', label: i18n.t('commons.update_time')},
{id: 'status', label: i18n.t('commons.status')}
]
//用例评审-测试用例
export const Test_Case_Review = [

View File

@ -102,18 +102,31 @@
</el-table-column>-->
<el-table-column
v-if="item.id=='status'"
:filters="statusFilters"
column-key="status"
min-width="100px"
:label="$t('test_track.case.status')"
:key="index">
v-if="item.id=='reviewStatus'"
:filters="reviewStatusFilters"
column-key="reviewStatus"
min-width="100px"
:label="$t('test_track.case.status')"
:key="index">
<template v-slot:default="scope">
<span class="el-dropdown-link">
<review-status :value="scope.row.reviewStatus"/>
</span>
</template>
</el-table-column>
<el-table-column
v-if="item.id=='status'"
:filters="statusFilters"
column-key="status"
min-width="100px"
:label="$t('commons.status')"
:key="index">
<template v-slot:default="scope">
<span class="el-dropdown-link">
<plan-status-table-item :value="scope.row.status"></plan-status-table-item>
</span>
</template>
</el-table-column>
<el-table-column v-if="item.id=='tags'" prop="tags" :label="$t('commons.tag')" :key="index">
<template v-slot:default="scope">
@ -123,8 +136,8 @@
</el-table-column>
<el-table-column
v-if="item.id=='nodePath'"
prop="nodePath"
v-if="item.id=='nodePath'"
prop="nodePath"
:label="$t('test_track.case.module')"
min-width="150px"
show-overflow-tooltip
@ -213,10 +226,12 @@ import {Track_Test_Case} from "@/business/components/common/model/JsonData";
import HeaderCustom from "@/business/components/common/head/HeaderCustom";
import i18n from "@/i18n/i18n";
import HeaderLabelOperate from "@/business/components/common/head/HeaderLabelOperate";
import PlanStatusTableItem from "@/business/components/track/common/tableItems/plan/PlanStatusTableItem";
export default {
name: "TestCaseList",
components: {
PlanStatusTableItem,
HeaderLabelOperate,
HeaderCustom,
BatchMove,
@ -270,11 +285,16 @@ export default {
{text: this.$t('commons.performance'), value: 'performance'},
{text: this.$t('commons.api'), value: 'api'}
],
statusFilters: [
reviewStatusFilters: [
{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'},
],
statusFilters: [
{text: '未开始', value: 'Prepare'},
{text: '进行中', value: 'Underway'},
{text: '已完成', value: 'Completed'},
],
showMore: false,
buttons: [
{