客户单Menus脚本增加系统菜单/外部菜单分别显示功能
This commit is contained in:
parent
c822e452e5
commit
7e549ddc56
|
@ -120,6 +120,8 @@
|
|||
$('.menu-content button:last').data('type', 'parent');
|
||||
$('.menu-content').show();
|
||||
$('div.dd3-content :checkbox').hide();
|
||||
$('div.dd > ol.dd-list > li.dd-item').hide();
|
||||
$('div.dd > ol.dd-list > li[data-category="' + $('#category').selectpicker('val') + '"]').show();
|
||||
$('div.dd3-content :radio').show();
|
||||
});
|
||||
|
||||
|
@ -130,12 +132,6 @@
|
|||
$('#dialogNew div.modal-dialog').show();
|
||||
});
|
||||
|
||||
//$('.dd3-content label').click(function (e) {
|
||||
// var c = $(this).parents('div').children('label').children('input:not(:hidden)');
|
||||
// if (c.length == 1) c.get(0).click();
|
||||
// window.console.log($(this).html());
|
||||
//});
|
||||
|
||||
$('.menu-content button:last').click(function () {
|
||||
var type = $('.menu-content button:last').data('type');
|
||||
switch (type) {
|
||||
|
|
|
@ -103,5 +103,5 @@
|
|||
@section customModal {
|
||||
@Html.Partial("RoleConfig")
|
||||
@Html.Partial("IconView")
|
||||
@Html.Partial("MenuTree", Model.Navigations)
|
||||
@Html.Partial("MenuTree", Model.Navigations.Union(Model.Menus))
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<ol class="dd-list">
|
||||
@foreach (var menu in Model)
|
||||
{
|
||||
<li class="dd-item dd3-item" data-id="@menu.ID">
|
||||
<li class="dd-item dd3-item" data-id="@menu.ID" data-category="@menu.Category">
|
||||
<div class="dd-handle dd3-handle"></div>
|
||||
<div class="dd3-content"><label><input name="menuParent" type="checkbox" value="@menu.ID" /><input type="radio" name="menu" value="@menu.ID" /><span>@menu.Name</span></label></div>
|
||||
@if (menu.Menus.Count() > 0)
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<add namespace="System.Web.Mvc.Ajax" />
|
||||
<add namespace="System.Web.Mvc.Html" />
|
||||
<add namespace="System.Web.Routing" />
|
||||
<add namespace="System.Linq" />
|
||||
<add namespace="Bootstrap.Admin" />
|
||||
<add namespace="Bootstrap.DataAccess" />
|
||||
<add namespace="Bootstrap.Admin.Models" />
|
||||
|
|
Loading…
Reference in New Issue