<!DOCTYPE html>
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
<head>
|
<th:block th:include="include :: header('用户列表')"/>
|
<th:block th:include="include :: layout-latest-css"/>
|
</head>
|
<body class="gray-bg">
|
<input id="userId" type="hidden"/>
|
<input id="userName" type="hidden"/>
|
<div class="ui-layout-center">
|
<div class="container-div">
|
<div class="row">
|
<div class="col-sm-12 search-collapse">
|
<form id="user-form">
|
<div class="select-list">
|
<ul>
|
<li>
|
用户名称:<input type="text" name="userName"/>
|
</li>
|
<li>
|
手机号码:<input type="text" name="phonenumber"/>
|
</li>
|
<input type="hidden" name="companyId" th:value="${companyId}"/>
|
<li>
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
class="fa fa-search"></i> 搜索</a>
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
|
class="fa fa-refresh"></i> 重置</a>
|
</li>
|
</ul>
|
</div>
|
</form>
|
</div>
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
</div>
|
|
<div class="col-sm-12 select-table table-striped">
|
<table id="bootstrap-table"></table>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<th:block th:include="include :: footer"/>
|
<th:block th:include="include :: layout-latest-js"/>
|
<script th:inline="javascript">
|
var prefix = ctx + "system/user";
|
|
$(function () {
|
var panehHidden = false;
|
if ($(this).width() < 769) {
|
panehHidden = true;
|
}
|
$('body').layout({initClosed: panehHidden, west__size: 185});
|
queryUserList();
|
});
|
|
function queryUserList() {
|
var options = {
|
url: prefix + "/selectUserListByParentSonCompany",
|
sortName: "createTime",
|
sortOrder: "desc",
|
modalName: "用户",
|
columns: [{
|
checkbox: true
|
},
|
{
|
field: 'userId',
|
title: '用户ID',
|
visible: false
|
},
|
{
|
field: 'userName',
|
title: '用户名称'
|
},
|
{
|
field: 'phonenumber',
|
title: '手机号码'
|
},
|
{
|
title: '操作',
|
align: 'center',
|
formatter: function (value, row, index) {
|
var actions = [];
|
actions.push('<a class="btn btn-danger selectUser" data-userid="' + row.userId + '" data-username="' + row.userName + '"></i>选择</a>');
|
return actions.join('');
|
}
|
}]
|
};
|
$.table.init(options);
|
}
|
|
|
</script>
|
</body>
|
|
</html>
|