From 5ab6aa8dd77665ecab3811e711e276d1675cd8e0 Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Wed, 23 Nov 2016 13:31:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG=EF=BC=9A=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E9=A1=B5=E9=9D=A2=E7=82=B9=E5=87=BB=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=90=8E=E7=88=B6=E7=BA=A7=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=82=B9=E5=BC=80=E5=90=8E=E5=A4=96=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=85=A8=E9=83=A8=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/Menus.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Bootstrap.Admin/Scripts/Menus.js b/Bootstrap.Admin/Scripts/Menus.js index 0b234a28..bec1a9b7 100644 --- a/Bootstrap.Admin/Scripts/Menus.js +++ b/Bootstrap.Admin/Scripts/Menus.js @@ -83,12 +83,20 @@ html += $.format('
  • ', menu.ID, menu.Icon, menu.Name, menu.Category); } else { - html = $.format('
    1. {4}
    ', menu.ID, menu.Icon, menu.Name, menu.Category, cascadeMenu(menu.Menus)); + html += $.format('
    1. {4}
    ', menu.ID, menu.Icon, menu.Name, menu.Category, cascadeSubMenu(menu.Menus)); } }); return html; }; + var cascadeSubMenu = function (menus) { + var html = "" + $.each(menus, function (index, menu) { + html += $.format('
  • ', menu.ID, menu.Icon, menu.Name, menu.Category); + }); + return html; + } + $('table').smartTable({ url: Menu.url, //请求后台的URL(*) sortName: 'Order',