refactor: 列表可按照名称排序#1002980

--story=1002980 --user=lyh 8.列表名字列增加排序,最好全局搜下,目前我发现的这两个
https://www.tapd.cn/55049933/s/1043970
This commit is contained in:
shiziyuan9527 2021-09-06 15:22:11 +08:00 committed by 刘瑞斌
parent ca95b0cb99
commit 63ff712c63
4 changed files with 8 additions and 0 deletions

View File

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

View File

@ -120,6 +120,9 @@
<when test="order.name == 'priority'"> <when test="order.name == 'priority'">
test_case.priority ${order.type} test_case.priority ${order.type}
</when> </when>
<when test="order.name == 'name'">
test_case.name ${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>

View File

@ -47,6 +47,7 @@
<ms-table-column <ms-table-column
prop="name" prop="name"
sortable="custom"
:field="item" :field="item"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:label="$t('commons.name')" :label="$t('commons.name')"

View File

@ -45,6 +45,7 @@
<ms-table-column <ms-table-column
prop="name" prop="name"
:field="item" :field="item"
sortable="custom"
:fields-width="fieldsWidth" :fields-width="fieldsWidth"
:label="$t('commons.name')" :label="$t('commons.name')"
min-width="120px"/> min-width="120px"/>