84 lines
2.5 KiB
Plaintext
84 lines
2.5 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8" %>
|
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
|
<html>
|
|
<head>
|
|
<title>角色管理</title>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="page-content">
|
|
<div class="theme-panel hidden-xs hidden-sm">
|
|
|
|
<button type="button" class="btn btn-default"> 刷新 </button>
|
|
|
|
<shiro:hasPermission name="sys:role:edit">
|
|
<button type="button" class="btn btn-primary"
|
|
onClick="javascript:window.location='${ctx}/sys/role/form'"> 新增角色 </button>
|
|
</shiro:hasPermission>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<h3 class="page-title">
|
|
角色管理
|
|
</h3>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="portlet box blue">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-cogs"></i>角色列表
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse" data-original-title=""
|
|
title=""> </a> <a href="#portlet-config" data-toggle="modal"
|
|
class="config" data-original-title="" title=""> </a> <a
|
|
href="javascript:;" class="reload" data-original-title=""
|
|
title=""> </a> <a href="javascript:;" class="remove"
|
|
data-original-title="" title=""> </a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
|
|
|
|
<div class="row" >
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
<sys:message content="${message}"/>
|
|
<table id="contentTable" class="table table-striped table-bordered table-condensed">
|
|
<tr><th>角色名称</th><th>数据范围</th><th>描述</th><shiro:hasPermission name="sys:role:edit"><th>操作</th></shiro:hasPermission></tr>
|
|
<c:forEach items="${list}" var="role">
|
|
<tr>
|
|
<td><a href="form?id=${role.id}">${role.name}</a></td>
|
|
<td>${fns:getDictLabel('SYS_DATA_SCOPE',role.dataScope,'无')}</td>
|
|
<td title="${role.remark}">${fns:abbr(role.remark,30)}</td>
|
|
<shiro:hasPermission name="sys:role:edit"><td>
|
|
<a href="${ctx}/sys/role/assign?id=${role.id}">分配</a>
|
|
<a href="${ctx}/sys/role/form?id=${role.id}">修改</a>
|
|
<a href="${ctx}/sys/role/delete?id=${role.id}" onclick="return confirmx('确认要删除该角色吗?', this.href)">删除</a>
|
|
</td></shiro:hasPermission>
|
|
</tr>
|
|
</c:forEach>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
</html> |