2018-09-15 15:50:17 +08:00
|
|
|
|
@model NavigatorBarModel
|
2016-10-24 22:10:17 +08:00
|
|
|
|
@{
|
|
|
|
|
ViewBag.Title = "角色管理";
|
2018-09-18 01:53:20 +08:00
|
|
|
|
Layout = "_Default";
|
2016-10-24 22:10:17 +08:00
|
|
|
|
}
|
2016-11-07 21:41:17 +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-11-07 21:41:17 +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/roles.js" asp-append-version="true"></script>
|
2016-10-24 22:10:17 +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">
|
|
|
|
|
<div class="form-group col-sm-5 col-md-auto">
|
2016-11-09 16:00:15 +08:00
|
|
|
|
<label class="control-label" for="txt_search_name">角色名称</label>
|
|
|
|
|
<input type="text" class="form-control" id="txt_search_name" />
|
|
|
|
|
</div>
|
2018-09-29 17:08:36 +08:00
|
|
|
|
<div class="form-group col-sm-5 col-md-auto">
|
2016-11-09 16:00:15 +08:00
|
|
|
|
<label class="control-label" for="txt_role_desc">角色描述</label>
|
|
|
|
|
<input type="text" class="form-control" id="txt_role_desc" />
|
|
|
|
|
</div>
|
2018-09-29 17:08:36 +08:00
|
|
|
|
<div class="form-group col-sm-2 col-md-auto flex-md-fill justify-content-md-end">
|
2018-09-30 18:50:46 +08:00
|
|
|
|
<button type="button" id="btn_query" class="btn btn-primary btn-fill align-self-sm-end align-self-md-auto"><i class="fa fa-search" aria-hidden="true"></i><span>查询</span></button>
|
2016-11-09 16:00:15 +08:00
|
|
|
|
</div>
|
2016-11-09 18:36:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2016-10-24 22:10:17 +08:00
|
|
|
|
}
|
2016-10-28 20:18:12 +08:00
|
|
|
|
@section toolbar{
|
|
|
|
|
<button id="btn_assignUser" type="button" class="btn btn-info">
|
2018-08-11 14:56:20 +08:00
|
|
|
|
<span class="fa fa-user" aria-hidden="true"></span><span>分配用户</span>
|
2016-10-28 20:18:12 +08:00
|
|
|
|
</button>
|
2018-08-03 13:24:26 +08:00
|
|
|
|
<button id="btn_assignGroup" type="button" class="btn btn-warning">
|
2018-08-11 14:56:20 +08:00
|
|
|
|
<span class="fa fa-bank" aria-hidden="true"></span><span>分配部门</span>
|
2016-11-09 00:34:47 +08:00
|
|
|
|
</button>
|
2018-08-03 13:24:26 +08:00
|
|
|
|
<button id="btn_assignMenu" type="button" class="btn btn-secondary">
|
2018-08-11 14:56:20 +08:00
|
|
|
|
<span class="fa fa-dashboard" aria-hidden="true"></span><span>分配菜单</span>
|
2016-11-07 21:41:17 +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_assignUser" href="#" title="分配用户"><i class="fa fa-user"></i></a>
|
|
|
|
|
<a id="tb_assignGroup" href="#" title="分配部门"><i class="fa fa-bank"></i></a>
|
|
|
|
|
<a id="tb_assignMenu" href="#" title="分配菜单"><i class="fa fa-dashboard"></i></a>
|
2017-01-02 12:45:55 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-10-28 20:18:12 +08:00
|
|
|
|
}
|
2016-10-24 22:10:17 +08:00
|
|
|
|
@section modal {
|
2016-10-24 22:16:30 +08:00
|
|
|
|
<div class="modal-header">
|
2018-08-03 17:17:16 +08:00
|
|
|
|
<h5 class="modal-title" id="myModalLabel">角色编辑窗口</h5>
|
2016-10-24 22:16:30 +08:00
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<form class="form-inline">
|
2018-09-29 17:08:36 +08:00
|
|
|
|
<div class="row">
|
2017-04-14 13:09:18 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2016-11-09 21:56:33 +08:00
|
|
|
|
<label class="control-label" for="roleName">角色名称</label>
|
2018-07-19 18:12:48 +08:00
|
|
|
|
<input type="text" class="form-control" id="roleName" placeholder="不可为空,50字以内" maxlength="50" data-valid="true" />
|
2016-11-09 21:56:33 +08:00
|
|
|
|
</div>
|
2017-04-14 13:09:18 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2018-11-22 10:20:40 +08:00
|
|
|
|
<input type="hidden" id="roleID" />
|
2016-11-09 21:56:33 +08:00
|
|
|
|
<label class="control-label" for="roleDesc">角色描述</label>
|
2018-06-08 13:02:02 +08:00
|
|
|
|
<input type="text" class="form-control" id="roleDesc" placeholder="描述信息(可为空),50字以内" maxlength="50" />
|
2016-11-09 21:56:33 +08:00
|
|
|
|
</div>
|
2016-10-24 22:16:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2016-10-24 22:10:17 +08:00
|
|
|
|
</div>
|
2016-10-28 20:18:12 +08:00
|
|
|
|
}
|
|
|
|
|
@section customModal{
|
2018-06-15 16:14:49 +08:00
|
|
|
|
@await Html.PartialAsync("UserConfig")
|
|
|
|
|
@await Html.PartialAsync("GroupConfig")
|
|
|
|
|
@await Html.PartialAsync("NavigatorConfig")
|
2018-09-15 15:50:17 +08:00
|
|
|
|
}
|