diff --git a/Bootstrap.Admin/Models/QueryMenuOption.cs b/Bootstrap.Admin/Models/QueryMenuOption.cs index eaa6a8b5..8b0681b9 100644 --- a/Bootstrap.Admin/Models/QueryMenuOption.cs +++ b/Bootstrap.Admin/Models/QueryMenuOption.cs @@ -64,6 +64,9 @@ namespace Bootstrap.Admin.Models case "IsResource": data = Order == "asc" ? data.OrderBy(t => t.IsResource) : data.OrderByDescending(t => t.IsResource); break; + case "ApplicationCode": + data = Order == "asc" ? data.OrderBy(t => t.ApplicationCode) : data.OrderByDescending(t => t.ApplicationCode); + break; default: break; } diff --git a/Bootstrap.Admin/Scripts/Menus.js b/Bootstrap.Admin/Scripts/Menus.js index aaa1d40d..4df42fdb 100644 --- a/Bootstrap.Admin/Scripts/Menus.js +++ b/Bootstrap.Admin/Scripts/Menus.js @@ -121,6 +121,10 @@ title: "菜单类型", field: "IsResource", sortable: true, formatter: function (value, row, index) { return value == 0 ? "菜单" : "资源"; } + }, { + title: "所属应用", field: "ApplicationCode", sortable: true, formatter: function (value, row, index) { + return $('#app').next().find('[data-val="' + value + '"]:first').text(); + } } ] });