151 lines
5.9 KiB
Plaintext
151 lines
5.9 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
<%@ include file="/webpage/include/taglib.jsp"%>
|
|
<html>
|
|
<head>
|
|
<title>菜单管理</title>
|
|
<meta name="decorator" content="default" />
|
|
<%@include file="/webpage/include/treetable.jsp"%>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#treeTable").treeTable({
|
|
expandLevel : 1,
|
|
column : 1
|
|
}).show();
|
|
});
|
|
function updateSort() {
|
|
loading('正在提交,请稍等...');
|
|
$("#listForm").attr("action", "${ctx}/sys/menu/updateSort");
|
|
$("#listForm").submit();
|
|
}
|
|
function refresh() {//刷新
|
|
|
|
window.location = "${ctx}/sys/menu/";
|
|
}
|
|
|
|
function addSystem() {//添加系统
|
|
|
|
window.location = "${ctx}/sys/menu/form";
|
|
}
|
|
</script>
|
|
</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> -->
|
|
<form id="listForm" method="post">
|
|
<div class="ibox-content ibox-content-list">
|
|
<sys:message content="${message}" />
|
|
<div class="pane-query-circle">
|
|
<!--查询条件-->
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="row pane-query-anying">
|
|
<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">
|
|
<shiro:hasPermission name="sys:menu:add">
|
|
<table:addRow url="${ctx}/sys/menu/form" title="菜单"></table:addRow>
|
|
<!-- 增加按钮 -->
|
|
</shiro:hasPermission>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="pane-query-circle-list">
|
|
<table id="treeTable"
|
|
class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
|
|
<thead>
|
|
<tr>
|
|
<th width="75px"><input type="checkbox" class="i-checks"> <shiro:hasPermission
|
|
name="sys:menu:del">
|
|
<table:delRow url="${ctx}/sys/menu/deleteAll" id="treeTable"></table:delRow>
|
|
<!-- 删除按钮 -->
|
|
</shiro:hasPermission></th>
|
|
<th><nobr>名称</nobr></th>
|
|
<th style="width: 22%"><nobr>链接</nobr></th>
|
|
<th style="text-align: center;width: 100px"><nobr>排序</nobr></th>
|
|
<th><nobr>可见</nobr></th>
|
|
<th style="width: 22%"><nobr>权限标识</nobr></th>
|
|
<shiro:hasPermission name="sys:menu:edit">
|
|
<th style="width: 75px;"><nobr>操作</nobr></th>
|
|
</shiro:hasPermission>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:forEach items="${list}" var="menu">
|
|
<tr id="${menu.id}"
|
|
pId="${menu.parent.id ne '1'?menu.parent.id:'0'}">
|
|
<td class="query-datatable-nowrap"><input type="checkbox"
|
|
id="${menu.id}" class="i-checks"></td>
|
|
<td class="query-datatable-nowrap" nowrap><i
|
|
class="icon-${not empty menu.icon?menu.icon:' hide'}"></i><a
|
|
href="###"
|
|
onclick="openDialogView('查看菜单', '${ctx}/sys/menu/form?id=${menu.id}','800px', '500px')">${menu.name}</a></td>
|
|
<td class="query-datatable-nowrap" title="${menu.href}">${fns:abbr(menu.href,30)}</td>
|
|
<td class="query-datatable-nowrap" style="text-align: center;"><shiro:hasPermission
|
|
name="sys:menu:updateSort">
|
|
<input type="hidden" name="ids" value="${menu.id}" />
|
|
<input name="sorts" type="text" value="${menu.sort}"
|
|
class="form-control"
|
|
style="width: 100px; margin: 0; padding: 0; text-align: center;"/>
|
|
</shiro:hasPermission> <shiro:lacksPermission name="sys:menu:updateSort">
|
|
${menu.sort}
|
|
</shiro:lacksPermission></td>
|
|
<td>${menu.isShow eq '1'?'显示':'隐藏'}</td>
|
|
<td title="${menu.permission}">${fns:abbr(menu.permission,30)}</td>
|
|
<td nowrap>
|
|
<%-- <shiro:hasPermission name="sys:menu:view"> --%>
|
|
<!-- <a href="###" -->
|
|
<%-- onclick="openDialogView('查看菜单', '${ctx}/sys/menu/form?id=${menu.id}','800px', '500px')" --%>
|
|
<!-- class="btn btn-info btn-xs"><i class="fa fa-search-plus"></i> -->
|
|
<!-- </a> -->
|
|
<%-- </shiro:hasPermission> --%>
|
|
<shiro:hasPermission name="sys:menu:edit">
|
|
<a href="###" title="修改"
|
|
onclick="openDialog('修改菜单', '${ctx}/sys/menu/form?id=${menu.id}','800px', '500px')"
|
|
class="btn btn-success btn-xs"><i class="fa fa-edit"></i>
|
|
</a>
|
|
</shiro:hasPermission> <shiro:hasPermission name="sys:menu:del">
|
|
<a href="${ctx}/sys/menu/delete?id=${menu.id}" title="删除"
|
|
onclick="return confirmx('要删除该菜单及所有子菜单项吗?', this.href)"
|
|
class="btn btn-danger btn-xs"><i class="fa fa-trash"></i>
|
|
</a>
|
|
</shiro:hasPermission> <shiro:hasPermission name="sys:menu:add">
|
|
<a href="###" title="添加下级菜单"
|
|
onclick="openDialog('添加下级菜单', '${ctx}/sys/menu/form?parent.id=${menu.id}','800px', '500px')"
|
|
class="btn btn-primary btn-xs"><i class="fa fa-plus"></i>
|
|
</a>
|
|
</shiro:hasPermission></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |