From 46a633e54249a76962d7fe77383d2bee19735ea5 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Fri, 3 Mar 2017 15:28:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=80=E5=B1=9E=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=88=97=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Models/QueryMenuOption.cs | 3 +++ Bootstrap.Admin/Scripts/Menus.js | 4 ++++ 2 files changed, 7 insertions(+) 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(); + } } ] });