refactor(测试跟踪): 测试用例列表支持按优先级排序

This commit is contained in:
BugKing 2021-05-11 12:53:29 +08:00 committed by jianxing
parent 02e4299454
commit 4ba5a9a648
5 changed files with 16 additions and 8 deletions

View File

@ -235,6 +235,9 @@
<when test="order.name == 'custom_num'">
test_case.num ${order.type}, test_case.custom_num ${order.type}
</when>
<when test="order.name == 'priority'">
test_case.priority ${order.type}
</when>
<otherwise>
test_plan_test_case.${order.name} ${order.type}
</otherwise>

View File

@ -185,6 +185,9 @@
<when test="order.name == 'custom_num'">
test_case.num ${order.type}, test_case.custom_num ${order.type}
</when>
<when test="order.name == 'priority'">
test_case.priority ${order.type}
</when>
<otherwise>
test_case_review_test_case.${order.name} ${order.type}
</otherwise>

View File

@ -41,7 +41,7 @@
sortable="custom"
:label="$t('commons.id')"
:key="index"
width="80"
min-width="80"
show-overflow-tooltip>
</el-table-column>
<el-table-column
@ -50,7 +50,7 @@
sortable="custom"
:label="$t('commons.id')"
:key="index"
width="80"
min-width="80"
show-overflow-tooltip>
</el-table-column>
<el-table-column
@ -59,7 +59,7 @@
:label="$t('commons.name')"
show-overflow-tooltip
:key="index"
width="120"
min-width="120"
>
</el-table-column>
<el-table-column
@ -67,10 +67,10 @@
prop="priority"
:filters="priorityFilters"
column-key="priority"
min-width="100px"
sortable="custom"
min-width="120px"
:label="$t('test_track.case.priority')"
show-overflow-tooltip
width="100"
:key="index">
<template v-slot:default="scope">
<priority-table-item :value="scope.row.priority"/>
@ -117,7 +117,7 @@
</template>
</el-table-column>
</template>
<el-table-column fixed="right" min-width="150">
<el-table-column fixed="right" min-width="120">
<template slot="header">
<header-label-operate @exec="customHeader"/>
</template>

View File

@ -74,7 +74,8 @@
prop="priority"
:filters="priorityFilters"
column-key="priority"
min-width="100px"
sortable="custom"
min-width="120px"
:key="index"
:label="$t('test_track.case.priority')">
<template v-slot:default="scope">

View File

@ -68,7 +68,8 @@
prop="priority"
:filters="priorityFilters"
column-key="priority"
min-width="100"
sortable="custom"
min-width="120px"
:label="$t('test_track.case.priority')"
:key="index">
<template v-slot:default="scope">