2016-10-28 14:45:09 +08:00
|
|
|
@model NavigatorBarModel
|
|
|
|
@{
|
|
|
|
ViewBag.Title = "菜单管理";
|
|
|
|
Layout = "~/Views/Shared/_Default.cshtml";
|
|
|
|
}
|
|
|
|
@section css {
|
|
|
|
<link href="~/Content/css/fa.css" rel="stylesheet" />
|
2016-11-04 11:31:04 +08:00
|
|
|
<link href="~/Content/css/fa.responsive.css" rel="stylesheet" />
|
2016-11-03 11:19:40 +08:00
|
|
|
<link href="~/Content/css/jquery.nestable.css" rel="stylesheet" />
|
2016-10-28 14:45:09 +08:00
|
|
|
}
|
|
|
|
@section Javascript {
|
2016-11-03 11:19:40 +08:00
|
|
|
<script src="~/Content/js/jquery.nestable.js"></script>
|
2016-10-28 14:45:09 +08:00
|
|
|
<script src="~/scripts/Menus.js"></script>
|
|
|
|
}
|
|
|
|
@section header {
|
|
|
|
@Html.Partial("Header", Model)
|
|
|
|
}
|
|
|
|
@section navigator {
|
|
|
|
@Html.Partial("Navigator", Model)
|
|
|
|
}
|
|
|
|
@section query {
|
|
|
|
<form class="form-inline" role="form">
|
|
|
|
<div class="form-group col-lg-5">
|
|
|
|
<label class="control-label" for="txt_menus_name">菜单名称</label>
|
|
|
|
<input type="text" class="form-control" id="txt_menus_name" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-5">
|
|
|
|
<label class="control-label" for="txt_menus_category">菜单类别</label>
|
2016-11-03 21:29:32 +08:00
|
|
|
<input type="text" class="form-control hide" id="txt_menus_category" />
|
|
|
|
<div class="btn-group">
|
|
|
|
<button type="button" class="btn btn-default">未选择</button>
|
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<span class="caret"></span>
|
|
|
|
<span class="sr-only">下拉按钮</span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
<li><a href="#" data-val="">未选择</a></li>
|
|
|
|
<li><a href="#" data-val="0">系统菜单</a></li>
|
|
|
|
<li><a href="#" data-val="1">自定义菜单</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-10-28 14:45:09 +08:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-2">
|
|
|
|
<button type="button" id="btn_query" class="btn btn-primary"><span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
}
|
|
|
|
@section toolbar {
|
|
|
|
<button id="btn_assignRole" type="button" class="btn btn-info">
|
|
|
|
<span class="fa fa-sitemap" aria-hidden="true"></span>指派角色
|
|
|
|
</button>
|
|
|
|
}
|
|
|
|
@section modal {
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
2016-10-29 13:18:43 +08:00
|
|
|
<h4 class="modal-title" id="myModalLabel">菜单编辑窗口</h4>
|
2016-10-28 14:45:09 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-inline" id="dataForm" name="dataForm" role="form">
|
|
|
|
<div class="form-group col-lg-6">
|
2016-11-03 16:28:05 +08:00
|
|
|
<label class="control-label" for="parentId">父级菜单</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" class="form-control hide" id="parentId" name="parentId" />
|
|
|
|
<input type="text" class="form-control disabled" disabled id="parentName" />
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button id="btnMenuParent" class="btn btn-default" type="button">选择</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
2016-10-28 14:45:09 +08:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="control-label" for="name">菜单名称</label>
|
|
|
|
<input type="text" class="form-control" id="name" name="name" maxlength="50" />
|
|
|
|
<input type="text" class="form-control hide" id="menuID" name="menuID" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="control-label" for="icon">菜单图标</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" class="form-control disabled" disabled id="icon" name="icon" maxlength="50" />
|
|
|
|
<span class="input-group-btn">
|
2016-11-04 09:19:03 +08:00
|
|
|
<button id="btnIcon" class="btn btn-default" type="button">选择</button>
|
2016-10-28 14:45:09 +08:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="control-label" for="url">路径</label>
|
|
|
|
<input type="text" class="form-control" id="url" name="url" maxlength="50" />
|
2016-11-04 09:19:03 +08:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="control-label" for="order">菜单序号</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" class="form-control" id="order" name="order" />
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button id="btnMenuOrder" class="btn btn-default" type="button">调整</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
2016-10-28 14:45:09 +08:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="control-label" for="category">类别</label>
|
2016-11-03 11:47:04 +08:00
|
|
|
<!-- Split button -->
|
2016-11-03 21:29:32 +08:00
|
|
|
<input type="text" class="form-control hide" id="category" name="category" value="1" />
|
2016-11-03 11:47:04 +08:00
|
|
|
<div class="btn-group">
|
|
|
|
<button type="button" class="btn btn-default">自定义菜单</button>
|
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<span class="caret"></span>
|
|
|
|
<span class="sr-only">下拉按钮</span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
<li><a href="#" data-val="0">系统菜单</a></li>
|
|
|
|
<li><a href="#" data-val="1">自定义菜单</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-10-28 14:45:09 +08:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
@section customModal {
|
|
|
|
@Html.Partial("RoleConfig")
|
|
|
|
@Html.Partial("IconView")
|
2016-11-03 11:19:40 +08:00
|
|
|
@Html.Partial("MenuTree", Model.Menus)
|
2016-10-28 14:45:09 +08:00
|
|
|
}
|