issue列表排序-增加按悬赏金额排序的项

This commit is contained in:
caishi 2023-03-10 16:15:48 +08:00
parent 445b97b2e8
commit 845bc3d356
3 changed files with 8 additions and 4 deletions

View File

@ -8,7 +8,9 @@ const array =[
{id:3,name:"最新更新"},
{id:4,name:"最早更新"},
{id:5,name:"高优先级"},
{id:6,name:"低优先级"}
{id:6,name:"低优先级"},
{id:7,name:"高悬赏金额"},
{id:8,name:"低悬赏金额"}
]
function AllMenus({owner,projectsId,chooseFunc,update,defaultNames,defaultIds},ref){

View File

@ -99,7 +99,7 @@ function List(props){
function getDirection(id){
if(!id) return undefined;
if(id === "1" || id === "3" || id === "5"){
if(id === "1" || id === "3" || id === "5"|| id === "7"){
return "desc"
}else{
return "asc"
@ -111,8 +111,10 @@ function List(props){
return "issues.created_on"
}else if(id === "3" || id === "4"){
return "issues.updated_on"
}else{
}else if(id === "5" || id === "6"){
return "issue_priorities.position"
}else{
return "issues.blockchain_token_num"
}
}

View File

@ -697,7 +697,7 @@
box-shadow:0px 0px 10px rgba(24, 54, 181, 0.17);
background-color: #fff;
.ant-menu{
max-height: 288px;
max-height: 305px;
overflow-y: auto;
li{
height: 38px;