154 lines
7.4 KiB
Plaintext
154 lines
7.4 KiB
Plaintext
]<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ include file="/webpage/include/taglib.jsp"%>
|
|
<html>
|
|
<head>
|
|
<title>角色管理</title>
|
|
<meta name="decorator" content="default"/>
|
|
</head>
|
|
<body class="gray-bg">
|
|
<div class="wrapper wrapper-list-content">
|
|
<div class="ibox">
|
|
<!-- <div class="ibox-title"> -->
|
|
<!-- <h5>角色列表 </h5> -->
|
|
<!-- <div class="ibox-tools"> -->
|
|
<!-- <a class="collapse-link"> -->
|
|
<!-- <i class="fa fa-chevron-up"></i> -->
|
|
<!-- </a> -->
|
|
<!-- <!-- <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#"> -->
|
|
<!-- <!-- <i class="fa fa-wrench"></i> -->
|
|
<!-- <!-- </a> -->
|
|
<!-- <!-- <ul class="dropdown-menu dropdown-user"> -->
|
|
<!-- <!-- <li><a href="###">选项1</a> -->
|
|
<!-- <!-- </li> -->
|
|
<!-- <!-- <li><a href="###">选项2</a> -->
|
|
<!-- <!-- </li> -->
|
|
<!-- <!-- </ul> -->
|
|
<!-- <a class="close-link"> -->
|
|
<!-- <i class="fa fa-times"></i> -->
|
|
<!-- </a> -->
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
<div class="ibox-content ibox-content-list">
|
|
<sys:message content="${message}"/>
|
|
<div class="pane-query-circle">
|
|
|
|
<!-- 查询条件 -->
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<form:form id="searchForm" modelAttribute="role" action="${ctx}/sys/role/" method="post" class="form-inline">
|
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
|
|
|
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div">
|
|
<div class="pane-query-anying-div-text">区域类型:</div>
|
|
<div class="pane-query-anying-div-input">
|
|
<form:select path="areaTypeId" style="width: 190px;" class="form-control m-b">
|
|
<form:option value="" label="请选择" />
|
|
<form:options items="${fns:getDictList('sys_area_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
<div class="row pane-query-anying">
|
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div">
|
|
<div class="pane-query-anying-div-text">角色名称:</div>
|
|
<div class="pane-query-anying-div-input">
|
|
<form:input path="name" value="${role.name}" htmlEscape="false" maxlength="32" class=" form-control input-sm"/>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div">
|
|
<div class="pane-query-anying-div-text">是否可用:</div>
|
|
<div class="pane-query-anying-div-input">
|
|
<form:select path="useable" style="width: 190px;" class="form-control m-b">
|
|
<form:option value="" label="请选择" />
|
|
<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-md-4 col-lg-3 pane-query-anying-div pane-query-anying-div-button">
|
|
<div class="pull-right pane-query-anying-div-input">
|
|
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="search()" ><i class="fa fa-search"></i> 查询</button>
|
|
<button class="btn btn-primary btn-rounded btn-outline btn-sm " onclick="resetAll()" ><i class="fa fa-refresh"></i> 重置</button>
|
|
<shiro:hasPermission name="sys:role:add">
|
|
<table:addRow url="${ctx}/sys/role/form" title="角色"></table:addRow><!-- 增加按钮 -->
|
|
</shiro:hasPermission>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form:form>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 工具栏 -->
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="pull-left">
|
|
<!-- <shiro:hasPermission name="sys:role:edit"> -->
|
|
<!-- <table:editRow url="${ctx}/sys/role/form" id="contentTable" title="角色"></table:editRow>编辑按钮 -->
|
|
<!-- </shiro:hasPermission> -->
|
|
<!-- <button class="btn btn-white btn-sm " data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 75px"><input type="checkbox" class="i-checks">
|
|
<shiro:hasPermission name="sys:role:del">
|
|
<table:delRow url="${ctx}/sys/role/deleteAll" id="contentTable"></table:delRow><!-- 删除按钮 -->
|
|
</shiro:hasPermission>
|
|
</th>
|
|
<th><nobr>角色名称</nobr></th>
|
|
<th><nobr>英文名称</nobr></th>
|
|
<th><nobr>区域类型</nobr></th>
|
|
<th><nobr>数据范围</nobr></th>
|
|
<th><nobr>是否可用</nobr></th>
|
|
<shiro:hasPermission name="sys:role:edit"><th style="width: 75px">操作</th></shiro:hasPermission>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:forEach items="${list}" var="role">
|
|
<tr>
|
|
<td class="query-datatable-nowrap"> <input type="checkbox" id="${role.id}" class="i-checks"></td>
|
|
<td class="query-datatable-nowrap"><a href="###" onclick="openDialogView('查看角色', '${ctx}/sys/role/form?id=${role.id}','800px', '500px')">
|
|
<label class="query-datatable-nowrap td-fixed-width-150" title="${role.name}">
|
|
${role.name}</label></a></td>
|
|
<td class="query-datatable-nowrap"><a href="###" onclick="openDialogView('查看角色', '${ctx}/sys/role/form?id=${role.id}','800px', '500px')">
|
|
<label class="query-datatable-nowrap td-fixed-width-150" title="${role.enname}">
|
|
${role.enname}</label></a></td>
|
|
<td class="query-datatable-nowrap">${fns:getDictLabel(role.areaTypeId, 'sys_area_type', '无')}</td>
|
|
<td class="query-datatable-nowrap">${fns:getDictLabel(role.dataScope, 'sys_data_scope', '无')}</td>
|
|
<td class="query-datatable-nowrap">${fns:getDictLabel(role.useable, 'yes_no', '')}</td>
|
|
<td class="query-datatable-nowrap">
|
|
<%-- <shiro:hasPermission name="sys:role:view"> --%>
|
|
<%-- <a href="###" onclick="openDialogView('查看角色', '${ctx}/sys/role/form?id=${role.id}','800px', '500px')" class="btn btn-info btn-xs" title="查看角色"><i class="fa fa-search-plus"></i> </a> --%>
|
|
<%-- </shiro:hasPermission> --%>
|
|
<shiro:hasPermission name="sys:role:edit">
|
|
<c:if test="${(role.sysData eq fns:getDictValue('是', 'yes_no', '1') && fns:getUser().admin)||!(role.sysData eq fns:getDictValue('是', 'yes_no', '1'))}">
|
|
<a href="###" onclick="openDialog('修改角色', '${ctx}/sys/role/form?id=${role.id}','800px', '500px')" class="btn btn-success btn-xs" title="修改角色"><i class="fa fa-edit"></i> </a>
|
|
</c:if>
|
|
</shiro:hasPermission>
|
|
<shiro:hasPermission name="sys:role:del">
|
|
<a href="${ctx}/sys/role/delete?id=${role.id}" onclick="return confirmx('确认要删除该角色吗?', this.href)" class="btn btn-danger btn-xs" title="删除角色"><i class="fa fa-trash"></i> </a>
|
|
</shiro:hasPermission>
|
|
<shiro:hasPermission name="sys:role:assign">
|
|
<a href="###" onclick="openDialog('权限设置', '${ctx}/sys/role/auth?id=${role.id}','350px', '700px')" class="btn btn-info btn-xs" title="权限设置"><i class="fa fa-th"></i> </a>
|
|
</shiro:hasPermission>
|
|
<shiro:hasPermission name="sys:role:assign">
|
|
<a href="###" onclick="openDialogView('分配用户', '${ctx}/sys/role/assign?id=${role.id}','800px', '600px')" class="btn btn-info btn-xs" title="分配用户"><i class="glyphicon glyphicon-plus"></i> </a>
|
|
</shiro:hasPermission>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |