增加功能:菜单管理页面菜单序号排序方式调整 closed #ISZHB

This commit is contained in:
Argo Zhang 2019-03-08 12:12:32 +08:00
parent f774e9b20c
commit 58daf5ad89
1 changed files with 1 additions and 3 deletions

View File

@ -60,7 +60,7 @@ namespace Bootstrap.Admin.Query
data = Order == "asc" ? data.OrderBy(t => t.ParentName) : data.OrderByDescending(t => t.ParentName);
break;
case "Order":
data = Order == "asc" ? data.OrderBy(t => t.Order) : data.OrderByDescending(t => t.Order);
data = Order == "asc" ? data.OrderBy(t => t.Application).ThenBy(t => t.ParentId).ThenBy(t => t.Order) : data.OrderBy(t => t.Application).ThenBy(t => t.ParentId).ThenByDescending(t => t.Order);
break;
case "CategoryName":
data = Order == "asc" ? data.OrderBy(t => t.CategoryName) : data.OrderByDescending(t => t.CategoryName);
@ -74,8 +74,6 @@ namespace Bootstrap.Admin.Query
case "Application":
data = Order == "asc" ? data.OrderBy(t => t.Application) : data.OrderByDescending(t => t.Application);
break;
default:
break;
}
ret.rows = data.Skip(Offset).Take(Limit).Select(p => new
{