refactor(测试跟踪): 测试用例列表支持按优先级排序
This commit is contained in:
parent
4e221441c8
commit
b6edbd9dfe
|
@ -235,6 +235,9 @@
|
||||||
<when test="order.name == 'custom_num'">
|
<when test="order.name == 'custom_num'">
|
||||||
test_case.num ${order.type}, test_case.custom_num ${order.type}
|
test_case.num ${order.type}, test_case.custom_num ${order.type}
|
||||||
</when>
|
</when>
|
||||||
|
<when test="order.name == 'priority'">
|
||||||
|
test_case.priority ${order.type}
|
||||||
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
test_plan_test_case.${order.name} ${order.type}
|
test_plan_test_case.${order.name} ${order.type}
|
||||||
</otherwise>
|
</otherwise>
|
||||||
|
|
|
@ -185,6 +185,9 @@
|
||||||
<when test="order.name == 'custom_num'">
|
<when test="order.name == 'custom_num'">
|
||||||
test_case.num ${order.type}, test_case.custom_num ${order.type}
|
test_case.num ${order.type}, test_case.custom_num ${order.type}
|
||||||
</when>
|
</when>
|
||||||
|
<when test="order.name == 'priority'">
|
||||||
|
test_case.priority ${order.type}
|
||||||
|
</when>
|
||||||
<otherwise>
|
<otherwise>
|
||||||
test_case_review_test_case.${order.name} ${order.type}
|
test_case_review_test_case.${order.name} ${order.type}
|
||||||
</otherwise>
|
</otherwise>
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
:label="$t('commons.id')"
|
:label="$t('commons.id')"
|
||||||
:key="index"
|
:key="index"
|
||||||
width="80"
|
min-width="80"
|
||||||
show-overflow-tooltip>
|
show-overflow-tooltip>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
sortable="custom"
|
sortable="custom"
|
||||||
:label="$t('commons.id')"
|
:label="$t('commons.id')"
|
||||||
:key="index"
|
:key="index"
|
||||||
width="80"
|
min-width="80"
|
||||||
show-overflow-tooltip>
|
show-overflow-tooltip>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
:label="$t('commons.name')"
|
:label="$t('commons.name')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:key="index"
|
:key="index"
|
||||||
width="120"
|
min-width="120"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -67,10 +67,10 @@
|
||||||
prop="priority"
|
prop="priority"
|
||||||
:filters="priorityFilters"
|
:filters="priorityFilters"
|
||||||
column-key="priority"
|
column-key="priority"
|
||||||
min-width="100px"
|
sortable="custom"
|
||||||
|
min-width="120px"
|
||||||
:label="$t('test_track.case.priority')"
|
:label="$t('test_track.case.priority')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="100"
|
|
||||||
:key="index">
|
:key="index">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<priority-table-item :value="scope.row.priority"/>
|
<priority-table-item :value="scope.row.priority"/>
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
<el-table-column fixed="right" min-width="150">
|
<el-table-column fixed="right" min-width="120">
|
||||||
<template slot="header">
|
<template slot="header">
|
||||||
<header-label-operate @exec="customHeader"/>
|
<header-label-operate @exec="customHeader"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -74,7 +74,8 @@
|
||||||
prop="priority"
|
prop="priority"
|
||||||
:filters="priorityFilters"
|
:filters="priorityFilters"
|
||||||
column-key="priority"
|
column-key="priority"
|
||||||
min-width="100px"
|
sortable="custom"
|
||||||
|
min-width="120px"
|
||||||
:key="index"
|
:key="index"
|
||||||
:label="$t('test_track.case.priority')">
|
:label="$t('test_track.case.priority')">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
|
|
|
@ -68,7 +68,8 @@
|
||||||
prop="priority"
|
prop="priority"
|
||||||
:filters="priorityFilters"
|
:filters="priorityFilters"
|
||||||
column-key="priority"
|
column-key="priority"
|
||||||
min-width="100"
|
sortable="custom"
|
||||||
|
min-width="120px"
|
||||||
:label="$t('test_track.case.priority')"
|
:label="$t('test_track.case.priority')"
|
||||||
:key="index">
|
:key="index">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
|
|
Loading…
Reference in New Issue