188 lines
7.9 KiB
Plaintext
188 lines
7.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" />
|
|
<style type="text/css">
|
|
.pane-query-anying-div-input .input-group {
|
|
height: 0px;
|
|
line-height: 0px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body style="width: 100%;overflow-x:hidden;">
|
|
<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 style="display: inline; float: left;">
|
|
<form:form id="searchForm" modelAttribute="user"
|
|
action="${ctx}/sys/user/list" 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"> -->
|
|
<%-- <sys:treeselect id="company" name="company.id" --%>
|
|
<%-- value="${user.company.id}" labelName="company.name" --%>
|
|
<%-- labelValue="${user.company.name}" title="公司" --%>
|
|
<%-- url="/sys/office/treeData?type=1" --%>
|
|
<%-- cssClass=" form-control input-sm" cssStyle="height:34px;" --%>
|
|
<%-- allowClear="true" /> --%>
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
|
|
<div
|
|
class="col-sm-6 col-md-6 col-lg-3 pane-query-anying-div pane-query-anying-div-button">
|
|
<div class="pane-query-anying-div-text">登录名:</div>
|
|
<div class="pane-query-anying-div-input">
|
|
<form:input path="loginName" htmlEscape="false" maxlength="50"
|
|
class=" form-control input-sm" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-6 col-lg-3 pane-query-anying-div">
|
|
<div class="pane-query-anying-div-text">归属部门:</div>
|
|
<div class="pane-query-anying-div-input">
|
|
<sys:treeselect id="office" name="office.id"
|
|
value="${user.office.id}" labelName="office.name"
|
|
labelValue="${user.office.name}" title="部门"
|
|
url="/sys/office/treeData?type=2"
|
|
cssClass=" form-control input-sm" cssStyle="height:30px;"
|
|
allowClear="true" notAllowSelectParent="false" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-6 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" htmlEscape="false" maxlength="50"
|
|
class=" form-control input-sm" />
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-md-6 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="mobile" htmlEscape="false" maxlength="50"
|
|
class=" form-control input-sm" />
|
|
</div>
|
|
</div>
|
|
|
|
</form:form>
|
|
<div class="col-sm-7 col-md-6 col-lg-4 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:user:add">
|
|
<table:addRow url="${ctx}/sys/user/form" title="用户"
|
|
width="800px" height="620px" target="officeContent"></table:addRow>
|
|
<!-- 增加按钮 -->
|
|
</shiro:hasPermission>
|
|
|
|
<shiro:hasPermission name="sys:user:export">
|
|
<table:exportExcel url="${ctx}/sys/user/export"></table:exportExcel>
|
|
<!-- 导出按钮 -->
|
|
</shiro:hasPermission>
|
|
<shiro:hasPermission name="sys:user:import">
|
|
<table:importExcel url="${ctx}/sys/user/import"></table:importExcel>
|
|
</shiro:hasPermission>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 工具栏 -->
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="pull-left">
|
|
<!-- <shiro:hasPermission name="sys:user:edit"> -->
|
|
<!-- <table:editRow url="${ctx}/sys/user/form" id="contentTable" title="用户" width="800px" height="680px" target="officeContent"></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>
|
|
|
|
|
|
<div class="pane-query-circle-list">
|
|
<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:user:del">
|
|
<table:delRow url="${ctx}/sys/user/deleteAll" id="contentTable"></table:delRow>
|
|
<!-- 删除按钮 -->
|
|
</shiro:hasPermission></th>
|
|
<th class="sort-column login_name"><nobr>登录名</nobr></th>
|
|
<th class="sort-column name"><nobr>姓名</nobr></th>
|
|
<th class="sort-column phone"><nobr>电话</nobr></th>
|
|
<th class="sort-column mobile"><nobr>手机</nobr></th>
|
|
<th width="13%" class="sort-column c.name"><nobr>归属公司</nobr></th>
|
|
<th width="13%" class="sort-column o.name"><nobr>归属部门</nobr></th>
|
|
<th style="width: 50px"><nobr>操作</nobr></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<c:forEach items="${page.list}" var="user">
|
|
<tr>
|
|
<td class="query-datatable-nowrap"><input type="checkbox"
|
|
id="${user.id}" class="i-checks"></td>
|
|
<td class="query-datatable-nowrap"><a href="###"
|
|
onclick="openDialogView('查看用户', '${ctx}/sys/user/form?id=${user.id}','800px', '680px')">${user.loginName}</a></td>
|
|
<td class="query-datatable-nowrap">${user.name}</td>
|
|
<td class="query-datatable-nowrap">${user.phone}</td>
|
|
<td class="query-datatable-nowrap">${user.mobile}</td>
|
|
<td class="query-datatable-nowrap">${user.company.name}</td>
|
|
<td class="query-datatable-nowrap">${user.office.name}</td>
|
|
<td class="query-datatable-nowrap">
|
|
<%-- <shiro:hasPermissionname="sys:user:view"> --%>
|
|
<!-- <a href="###" -->
|
|
<%-- onclick="openDialogView('查看用户', '${ctx}/sys/user/form?id=${user.id}','800px', '680px')" --%>
|
|
<!-- class="btn btn-info btn-xs"><i class="fa fa-search-plus"></i> -->
|
|
<!-- </a> -->
|
|
<%-- </shiro:hasPermission> --%>
|
|
<shiro:hasPermission name="sys:user:edit">
|
|
<a href="###" title="修改"
|
|
onclick="openDialog('修改用户', '${ctx}/sys/user/form?id=${user.id}','800px', '700px', 'officeContent')"
|
|
class="btn btn-success btn-xs"><i class="fa fa-edit"></i>
|
|
</a>
|
|
</shiro:hasPermission> <shiro:hasPermission name="sys:user:del">
|
|
<a href="${ctx}/sys/user/delete?id=${user.id}" title="删除"
|
|
onclick="return confirmx('确认要删除该用户吗?', this.href)"
|
|
class="btn btn-danger btn-xs"><i class="fa fa-trash"></i>
|
|
</a>
|
|
</shiro:hasPermission></td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
<table:page page="${page}"></table:page>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |