2018-09-15 15:50:17 +08:00
|
|
|
|
@model NavigatorBarModel
|
2016-10-28 14:45:09 +08:00
|
|
|
|
@{
|
|
|
|
|
ViewBag.Title = "菜单管理";
|
2018-09-18 01:53:20 +08:00
|
|
|
|
Layout = "_Default";
|
2016-10-28 14:45:09 +08:00
|
|
|
|
}
|
|
|
|
|
@section css {
|
2018-11-22 15:27:51 +08:00
|
|
|
|
<environment include="Development">
|
|
|
|
|
<link href="~/lib/nestable2/jquery.nestable.css" rel="stylesheet" />
|
|
|
|
|
</environment>
|
|
|
|
|
<environment exclude="Development">
|
|
|
|
|
<link href="~/lib/nestable2/jquery.nestable.min.css" rel="stylesheet" />
|
|
|
|
|
</environment>
|
2018-09-18 01:53:20 +08:00
|
|
|
|
<link href="~/css/fa.css" rel="stylesheet" asp-append-version="true" />
|
2016-10-28 14:45:09 +08:00
|
|
|
|
}
|
2018-09-18 01:53:20 +08:00
|
|
|
|
@section javascript {
|
2018-11-22 15:27:51 +08:00
|
|
|
|
<environment include="Development">
|
|
|
|
|
<script src="~/lib/nestable2/jquery.nestable.js"></script>
|
|
|
|
|
</environment>
|
|
|
|
|
<environment exclude="Development">
|
|
|
|
|
<script src="~/lib/nestable2/jquery.nestable.min.js"></script>
|
|
|
|
|
</environment>
|
2018-09-18 01:53:20 +08:00
|
|
|
|
<script src="~/js/menus.js" asp-append-version="true"></script>
|
2016-10-28 14:45:09 +08:00
|
|
|
|
}
|
|
|
|
|
@section query {
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<form class="form-inline">
|
2018-09-29 17:08:36 +08:00
|
|
|
|
<div class="row">
|
2018-11-21 20:21:58 +08:00
|
|
|
|
<div class="form-group col-sm-6 col-lg-auto">
|
2016-11-09 14:48:21 +08:00
|
|
|
|
<label class="control-label" for="txt_menus_name">菜单名称</label>
|
|
|
|
|
<input type="text" class="form-control" id="txt_menus_name" />
|
|
|
|
|
</div>
|
2018-11-21 20:21:58 +08:00
|
|
|
|
<div class="form-group col-sm-6 col-lg-auto">
|
2017-03-29 13:59:17 +08:00
|
|
|
|
<label class="control-label" for="txt_parent_menus_name">父级菜单</label>
|
|
|
|
|
<input type="text" class="form-control" id="txt_parent_menus_name" />
|
|
|
|
|
</div>
|
2018-11-21 20:21:58 +08:00
|
|
|
|
<div class="form-group form-group-dropdown col-sm-6 col-lg-auto">
|
2016-11-09 14:48:21 +08:00
|
|
|
|
<label class="control-label" for="sel_menus_category">菜单类别</label>
|
2018-08-05 15:31:21 +08:00
|
|
|
|
<div class="dropdown">
|
|
|
|
|
<button id="sel_menus_category" class="btn btn-success dropdown-select dropdown-toggle" data-toggle="dropdown">全部</button>
|
2018-08-10 21:51:21 +08:00
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
|
<a href="#" data-val="">全部</a>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<a href="#" data-val="0">系统菜单</a>
|
|
|
|
|
<a href="#" data-val="1">外部菜单</a>
|
|
|
|
|
</div>
|
2016-11-28 19:46:09 +08:00
|
|
|
|
</div>
|
2016-11-09 14:48:21 +08:00
|
|
|
|
</div>
|
2018-11-21 20:21:58 +08:00
|
|
|
|
<div class="form-group form-group-dropdown col-sm-6 col-lg-auto">
|
2018-10-04 13:18:53 +08:00
|
|
|
|
<label class="control-label" for="sel_menus_res">菜单类型</label>
|
2018-08-05 15:31:21 +08:00
|
|
|
|
<div class="dropdown">
|
|
|
|
|
<button id="sel_menus_res" class="btn btn-success dropdown-select dropdown-toggle" data-toggle="dropdown">全部</button>
|
2018-08-10 21:51:21 +08:00
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
|
<a href="#" data-val="">全部</a>
|
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
|
<a href="#" data-val="0">菜单</a>
|
|
|
|
|
<a href="#" data-val="1">资源</a>
|
|
|
|
|
</div>
|
2017-02-22 15:51:46 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-03-08 13:23:48 +08:00
|
|
|
|
<div class="form-group form-group-dropdown col-sm-6 col-lg-auto">
|
|
|
|
|
<label class="control-label" for="app">所属应用</label>
|
|
|
|
|
<div class="dropdown">
|
|
|
|
|
<button id="sel_app" class="btn btn-info dropdown-select dropdown-toggle" data-toggle="dropdown" data-default-val="0">未设置</button>
|
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
|
@foreach (var kv in Model.Applications)
|
|
|
|
|
{
|
|
|
|
|
<a href="#" data-val="@kv.Key">@kv.Value</a>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-11-21 20:21:58 +08:00
|
|
|
|
<div class="form-group col-lg-auto flex-lg-fill justify-content-lg-end">
|
2018-08-10 11:51:52 +08:00
|
|
|
|
<button type="button" id="btn_query" class="btn btn-primary btn-fill"><i class="fa fa-search" aria-hidden="true"></i><span>查询</span></button>
|
2016-11-09 14:48:21 +08:00
|
|
|
|
</div>
|
2016-10-28 14:45:09 +08:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
}
|
|
|
|
|
@section toolbar {
|
|
|
|
|
<button id="btn_assignRole" type="button" class="btn btn-info">
|
2018-08-11 14:56:20 +08:00
|
|
|
|
<span class="fa fa-sitemap" aria-hidden="true"></span><span>分配角色</span>
|
2016-10-28 14:45:09 +08:00
|
|
|
|
</button>
|
2018-08-03 17:17:16 +08:00
|
|
|
|
<div class="toolbar btn-group">
|
2018-08-24 16:29:00 +08:00
|
|
|
|
<button class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" type="button"><i class="fa fa-gear"></i></button>
|
2017-01-02 12:45:55 +08:00
|
|
|
|
<div class="dropdown-menu">
|
2018-06-15 16:14:49 +08:00
|
|
|
|
@await Html.PartialAsync("_ButtonBarGroup")
|
2018-08-11 14:56:20 +08:00
|
|
|
|
<a id="tb_assignRole" href="#" title="分配角色"><i class="fa fa-sitemap"></i></a>
|
2017-01-02 12:45:55 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-10-28 14:45:09 +08:00
|
|
|
|
}
|
|
|
|
|
@section modal {
|
|
|
|
|
<div class="modal-header">
|
2018-08-03 13:24:26 +08:00
|
|
|
|
<h5 class="modal-title" id="myModalLabel">菜单编辑窗口</h5>
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
|
</button>
|
2016-10-28 14:45:09 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<form class="form-inline" id="dataForm">
|
2018-11-21 20:21:58 +08:00
|
|
|
|
<div class="form-row">
|
2016-11-24 20:58:47 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2018-11-22 10:18:25 +08:00
|
|
|
|
<input type="hidden" id="menuID" />
|
2017-03-29 13:59:17 +08:00
|
|
|
|
<label class="control-label" for="name">菜单名称</label>
|
2016-11-09 14:48:21 +08:00
|
|
|
|
<div class="input-group">
|
2018-06-08 20:13:52 +08:00
|
|
|
|
<input type="text" class="form-control" id="name" name="name" placeholder="不可为空,50字以内" maxlength="50" data-valid="true" />
|
2018-08-03 17:17:16 +08:00
|
|
|
|
<div class="input-group-append">
|
2018-08-04 23:19:01 +08:00
|
|
|
|
<button data-method="clear" class="btn" type="button"><i class="fa fa-remove"></i></button>
|
|
|
|
|
<button data-method="sel" class="btn" type="button"><i class="fa fa-edit"></i>全选</button>
|
2018-08-03 17:17:16 +08:00
|
|
|
|
</div>
|
2016-11-09 14:48:21 +08:00
|
|
|
|
</div>
|
2016-11-03 16:28:05 +08:00
|
|
|
|
</div>
|
2016-11-24 20:58:47 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2018-08-03 14:18:05 +08:00
|
|
|
|
<input type="text" class="form-control d-none" id="parentId" data-default-val="0" />
|
2017-03-29 13:59:17 +08:00
|
|
|
|
<label class="control-label" for="parentName">父级菜单</label>
|
2016-11-09 14:48:21 +08:00
|
|
|
|
<div class="input-group">
|
2017-03-30 16:15:45 +08:00
|
|
|
|
<input type="text" class="form-control" readonly id="parentName" name="parentName" placeholder="请选择...(可为空),50字以内" maxlength="50" />
|
2018-08-03 17:17:16 +08:00
|
|
|
|
<div class="input-group-append">
|
2018-08-04 23:19:01 +08:00
|
|
|
|
<button data-method="clear" class="btn" type="button"><i class="fa fa-remove"></i></button>
|
|
|
|
|
<button id="btnMenuParent" class="btn" type="button"><i class="fa fa-hand-o-up"></i>选择</button>
|
2018-08-03 17:17:16 +08:00
|
|
|
|
</div>
|
2016-11-09 14:48:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-11-24 20:58:47 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2016-11-09 14:48:21 +08:00
|
|
|
|
<label class="control-label" for="order">菜单序号</label>
|
|
|
|
|
<div class="input-group">
|
2018-07-19 18:12:48 +08:00
|
|
|
|
<input type="text" class="form-control digits" id="order" name="order" data-default-val="10" placeholder="默认为10" maxlength="8" data-valid="true" />
|
2018-08-03 17:17:16 +08:00
|
|
|
|
<div class="input-group-append">
|
2018-08-04 23:19:01 +08:00
|
|
|
|
<button data-method="clear" class="btn" type="button"><i class="fa fa-remove"></i></button>
|
|
|
|
|
<button id="btnMenuOrder" class="btn" type="button"><i class="fa fa-list-ol"></i>调整</button>
|
2018-08-03 17:17:16 +08:00
|
|
|
|
</div>
|
2016-11-09 14:48:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-11-24 20:58:47 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2017-03-29 13:59:17 +08:00
|
|
|
|
<label class="control-label" for="icon">菜单图标</label>
|
|
|
|
|
<div class="input-group">
|
2018-06-08 13:02:02 +08:00
|
|
|
|
<input type="text" class="form-control" readonly id="icon" data-default-val="fa fa-fa" placeholder="请选择...(可为空),50字以内" maxlength="50" />
|
2018-08-03 17:17:16 +08:00
|
|
|
|
<div class="input-group-append">
|
2018-08-04 23:19:01 +08:00
|
|
|
|
<button data-method="clear" class="btn" type="button"><i class="fa fa-remove"></i></button>
|
|
|
|
|
<button id="btnIcon" class="btn" type="button"><i class="fa fa-dashboard"></i>选择</button>
|
2018-08-03 17:17:16 +08:00
|
|
|
|
</div>
|
2017-03-29 13:59:17 +08:00
|
|
|
|
</div>
|
2016-11-24 20:58:47 +08:00
|
|
|
|
</div>
|
2018-08-03 14:18:05 +08:00
|
|
|
|
<div class="form-group col-12">
|
2016-11-24 20:58:47 +08:00
|
|
|
|
<label class="control-label" for="url">路径</label>
|
2018-11-21 20:21:58 +08:00
|
|
|
|
<input type="text" class="form-control flex-sm-fill" id="url" placeholder="不可为空,4000字以内" maxlength="4000" data-valid="true" />
|
2016-11-24 20:58:47 +08:00
|
|
|
|
</div>
|
2018-10-04 13:18:53 +08:00
|
|
|
|
<div class="form-group form-group-dropdown col-sm-6">
|
2016-11-09 14:48:21 +08:00
|
|
|
|
<label class="control-label" for="category">菜单类别</label>
|
2018-08-05 15:31:21 +08:00
|
|
|
|
<div class="dropup">
|
|
|
|
|
<button id="category" class="btn btn-success dropdown-select dropdown-toggle" data-toggle="dropdown" data-default-val="1">外部菜单</button>
|
2018-08-10 21:51:21 +08:00
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
|
<a href="#" data-val="0">系统菜单</a>
|
|
|
|
|
<a href="#" data-val="1">外部菜单</a>
|
|
|
|
|
</div>
|
2016-11-28 19:46:09 +08:00
|
|
|
|
</div>
|
2016-11-04 09:19:03 +08:00
|
|
|
|
</div>
|
2018-10-04 13:18:53 +08:00
|
|
|
|
<div class="form-group form-group-dropdown col-sm-6">
|
2016-11-24 20:58:47 +08:00
|
|
|
|
<label class="control-label" for="target">目标</label>
|
2018-08-05 15:31:21 +08:00
|
|
|
|
<div class="dropup">
|
|
|
|
|
<button id="target" class="btn btn-info dropdown-select dropdown-toggle" data-toggle="dropdown" data-default-val="_self">本窗口</button>
|
2018-08-10 21:51:21 +08:00
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
|
<a href="#" data-val="_self">本窗口</a>
|
|
|
|
|
<a href="#" data-val="_blank">新窗口</a>
|
|
|
|
|
<a href="#" data-val="_parent">父级窗口</a>
|
|
|
|
|
<a href="#" data-val="_top">顶级窗口</a>
|
|
|
|
|
</div>
|
2016-11-28 19:46:09 +08:00
|
|
|
|
</div>
|
2017-02-14 21:04:40 +08:00
|
|
|
|
</div>
|
2018-10-04 13:18:53 +08:00
|
|
|
|
<div class="form-group form-group-dropdown col-sm-6">
|
2017-02-14 21:04:40 +08:00
|
|
|
|
<label class="control-label" for="isRes">菜单类型</label>
|
2018-08-05 15:31:21 +08:00
|
|
|
|
<div class="dropup">
|
|
|
|
|
<button id="isRes" class="btn btn-success dropdown-select dropdown-toggle" data-toggle="dropdown" data-default-val="0">菜单</button>
|
2018-08-10 21:51:21 +08:00
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
|
<a href="#" data-val="0">菜单</a>
|
|
|
|
|
<a href="#" data-val="1">资源</a>
|
|
|
|
|
</div>
|
2017-02-14 21:04:40 +08:00
|
|
|
|
</div>
|
2017-03-03 13:34:53 +08:00
|
|
|
|
</div>
|
2018-10-04 13:18:53 +08:00
|
|
|
|
<div class="form-group form-group-dropdown col-sm-6">
|
2017-03-03 13:34:53 +08:00
|
|
|
|
<label class="control-label" for="app">所属应用</label>
|
2018-08-05 15:31:21 +08:00
|
|
|
|
<div class="dropup">
|
|
|
|
|
<button id="app" class="btn btn-info dropdown-select dropdown-toggle" data-toggle="dropdown" data-default-val="0">未设置</button>
|
2018-08-10 21:51:21 +08:00
|
|
|
|
<div class="dropdown-menu">
|
2017-03-03 13:34:53 +08:00
|
|
|
|
@foreach (var kv in Model.Applications)
|
|
|
|
|
{
|
2018-08-10 21:51:21 +08:00
|
|
|
|
<a href="#" data-val="@kv.Key">@kv.Value</a>
|
2017-03-03 13:34:53 +08:00
|
|
|
|
}
|
2018-08-10 21:51:21 +08:00
|
|
|
|
</div>
|
2017-03-03 13:34:53 +08:00
|
|
|
|
</div>
|
2016-11-24 20:58:47 +08:00
|
|
|
|
</div>
|
2016-10-28 14:45:09 +08:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
@section customModal {
|
2018-06-15 16:14:49 +08:00
|
|
|
|
@await Html.PartialAsync("RoleConfig")
|
2016-11-21 00:33:07 +08:00
|
|
|
|
<div id="dialogIcon" class="modal-content icon-content">
|
|
|
|
|
<div class="modal-header">
|
2018-08-03 17:17:16 +08:00
|
|
|
|
<h5 class="modal-title" id="myIconModalLabel">请选择图标</h5>
|
2016-11-21 00:33:07 +08:00
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
|
</div>
|
2018-08-03 23:58:03 +08:00
|
|
|
|
<div class="modal-body">
|
2017-01-01 21:48:30 +08:00
|
|
|
|
<div class="loadIconView"><i class="fa fa-spinner fa-pulse"></i><span>正在加载图标...请稍等</span></div>
|
2016-11-21 00:33:07 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
2018-08-14 01:10:48 +08:00
|
|
|
|
<span>被选择的图标</span><i class="fa fa-fa" id="pickIcon"></i>
|
2018-08-14 17:45:36 +08:00
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">
|
2018-08-14 01:10:48 +08:00
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
|
<span>关闭</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button type="button" class="btn btn-primary" id="btnSubmitIcon">
|
|
|
|
|
<i class="fa fa-save"></i>
|
|
|
|
|
<span>确定</span>
|
|
|
|
|
</button>
|
2016-11-21 00:33:07 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-06-15 16:14:49 +08:00
|
|
|
|
@await Html.PartialAsync("NavigatorConfig")
|
2018-09-15 15:50:17 +08:00
|
|
|
|
}
|