|
|
|
@ -1,10 +1,10 @@
|
|
|
|
|
<!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 :: header('机场区域用户绑定列表')"/>
|
|
|
|
|
</head>
|
|
|
|
|
<body class="gray-bg">
|
|
|
|
|
<div class="container-div">
|
|
|
|
|
<div class="container-div">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12 search-collapse">
|
|
|
|
|
<form id="formId">
|
|
|
|
@ -14,19 +14,23 @@
|
|
|
|
|
<label>账号名称:</label>
|
|
|
|
|
<select name="userId" th:with="type=${@baseAreaUserServiceImpl.selectSysUser()}">
|
|
|
|
|
<option value="">所有</option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.userName}" th:value="${dict.userId}"></option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.userName}"
|
|
|
|
|
th:value="${dict.loginName}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<label>选择区域:</label>
|
|
|
|
|
<select name="areaId" th:with="type=${@storeService.selectArea()}">
|
|
|
|
|
<option value="">所有</option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.storeName}" th:value="${dict.storeId}"></option>
|
|
|
|
|
<option th:each="dict : ${type}" th:text="${dict.storeName}"
|
|
|
|
|
th:value="${dict.storeId}"></option>
|
|
|
|
|
</select>
|
|
|
|
|
</li>
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
|
|
|
@ -37,13 +41,16 @@
|
|
|
|
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="manage:base_area_user:add">
|
|
|
|
|
<i class="fa fa-plus"></i> 添加
|
|
|
|
|
</a>
|
|
|
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="manage:base_area_user:edit">
|
|
|
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()"
|
|
|
|
|
shiro:hasPermission="manage:base_area_user:edit">
|
|
|
|
|
<i class="fa fa-edit"></i> 修改
|
|
|
|
|
</a>
|
|
|
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="manage:base_area_user:remove">
|
|
|
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"
|
|
|
|
|
shiro:hasPermission="manage:base_area_user:remove">
|
|
|
|
|
<i class="fa fa-remove"></i> 删除
|
|
|
|
|
</a>
|
|
|
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="manage:base_area_user:export">
|
|
|
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()"
|
|
|
|
|
shiro:hasPermission="manage:base_area_user:export">
|
|
|
|
|
<i class="fa fa-download"></i> 导出
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
@ -51,14 +58,14 @@
|
|
|
|
|
<table id="bootstrap-table"></table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<th:block th:include="include :: footer" />
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
</div>
|
|
|
|
|
<th:block th:include="include :: footer"/>
|
|
|
|
|
<script th:inline="javascript">
|
|
|
|
|
var editFlag = [[${@permission.hasPermi('manage:base_area_user:edit')}]];
|
|
|
|
|
var removeFlag = [[${@permission.hasPermi('manage:base_area_user:remove')}]];
|
|
|
|
|
var prefix = ctx + "manage/base_area_user";
|
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
|
$(function () {
|
|
|
|
|
var options = {
|
|
|
|
|
url: prefix + "/list",
|
|
|
|
|
createUrl: prefix + "/add",
|
|
|
|
@ -76,13 +83,9 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'userId',
|
|
|
|
|
title: '账号',
|
|
|
|
|
visible: false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'sysUser.loginName',
|
|
|
|
|
title: '用户账号',
|
|
|
|
|
title: '用户账号'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'sysUser.userName',
|
|
|
|
|
title: '用户名称',
|
|
|
|
@ -102,7 +105,7 @@
|
|
|
|
|
{
|
|
|
|
|
title: '操作',
|
|
|
|
|
align: 'center',
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
formatter: function (value, row, index) {
|
|
|
|
|
var actions = [];
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.objid + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
|
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.objid + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
|
@ -112,6 +115,6 @@
|
|
|
|
|
};
|
|
|
|
|
$.table.init(options);
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|