增加功能:菜单管理页面菜单序号排序方式调整 closed #ISZHB
This commit is contained in:
parent
f774e9b20c
commit
58daf5ad89
|
@ -60,7 +60,7 @@ namespace Bootstrap.Admin.Query
|
||||||
data = Order == "asc" ? data.OrderBy(t => t.ParentName) : data.OrderByDescending(t => t.ParentName);
|
data = Order == "asc" ? data.OrderBy(t => t.ParentName) : data.OrderByDescending(t => t.ParentName);
|
||||||
break;
|
break;
|
||||||
case "Order":
|
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;
|
break;
|
||||||
case "CategoryName":
|
case "CategoryName":
|
||||||
data = Order == "asc" ? data.OrderBy(t => t.CategoryName) : data.OrderByDescending(t => t.CategoryName);
|
data = Order == "asc" ? data.OrderBy(t => t.CategoryName) : data.OrderByDescending(t => t.CategoryName);
|
||||||
|
@ -74,8 +74,6 @@ namespace Bootstrap.Admin.Query
|
||||||
case "Application":
|
case "Application":
|
||||||
data = Order == "asc" ? data.OrderBy(t => t.Application) : data.OrderByDescending(t => t.Application);
|
data = Order == "asc" ? data.OrderBy(t => t.Application) : data.OrderByDescending(t => t.Application);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
ret.rows = data.Skip(Offset).Take(Limit).Select(p => new
|
ret.rows = data.Skip(Offset).Take(Limit).Select(p => new
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue