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',