Files
RuoYi/src/main/resources/templates/monitor/operlog/operlog.html

137 lines
4.6 KiB
HTML
Raw Normal View History

2018-07-09 08:44:52 +08:00
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org"
xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 select-info">
<form id="operlog-form">
2018-08-01 10:07:28 +08:00
<div class="select-list">
2018-07-09 08:44:52 +08:00
<ul>
<li>
<label>系统模块: </label><input type="text" name="title"/>
2018-07-09 08:44:52 +08:00
</li>
<li>
<label>操作人员: </label><input type="text" name="operName"/>
2018-07-09 08:44:52 +08:00
</li>
<li>
2018-08-18 23:51:19 +08:00
<label>操作类型: </label><select name="businessType" th:with="type=${@dict.getType('sys_oper_type')}">
2018-07-09 08:44:52 +08:00
<option value="">所有</option>
2018-08-23 17:06:31 +08:00
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
2018-07-09 08:44:52 +08:00
</select>
</li>
2018-08-23 17:06:31 +08:00
<li class="select-time">
<label>操作时间: </label>
2018-08-01 10:12:34 +08:00
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
<span>-</span>
2018-08-01 10:12:34 +08:00
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
</li>
2018-07-09 08:44:52 +08:00
<li>
2018-07-27 21:56:08 +08:00
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
2018-08-01 11:42:13 +08:00
<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="monitor:logininfor:export"><i class="fa fa-download"></i>&nbsp;导出</a>
2018-07-09 08:44:52 +08:00
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group hidden-xs" id="toolbar" role="group">
2018-08-23 17:06:31 +08:00
<a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.removeAll()" shiro:hasPermission="monitor:logininfor:remove">
2018-07-09 08:44:52 +08:00
<i class="fa fa-trash-o"></i> 删除
</a>
</div>
2018-08-23 17:06:31 +08:00
<div class="col-sm-12 select-table table-striped">
2018-07-09 08:44:52 +08:00
<table id="bootstrap-table" data-mobile-responsive="true"></table>
</div>
</div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
2018-07-22 23:05:50 +08:00
var detailFlag = [[${@permission.hasPermi('monitor:operlog:detail')}]];
var datas = [[${@dict.getType('sys_oper_type')}]];
2018-07-09 08:44:52 +08:00
var prefix = ctx + "monitor/operlog"
$(function() {
var options = {
url: prefix + "/list",
detailUrl: prefix + "/detail/{id}",
2018-07-09 08:44:52 +08:00
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
sortName: "operTime",
sortOrder: "desc",
modalName: "日志",
2018-07-09 08:44:52 +08:00
search: false,
showExport: false,
columns: [{
checkbox: true
},
{
field: 'operId',
title: '日志编号'
},
{
field: 'title',
title: '系统模块'
},
{
2018-08-18 23:51:19 +08:00
field: 'businessType',
2018-07-09 08:44:52 +08:00
title: '操作类型',
align: 'center',
formatter: function(value, row, index) {
2018-07-22 23:05:50 +08:00
return $.table.selectDictLabel(datas, value);
2018-07-09 08:44:52 +08:00
}
},
{
field: 'operName',
2018-07-19 21:17:17 +08:00
title: '操作人员',
sortable: true
2018-07-09 08:44:52 +08:00
},
{
field: 'deptName',
title: '部门名称'
},
{
field: 'operIp',
title: '主机'
},
{
field: 'operLocation',
title: '操作地点'
},
{
field: 'status',
title: '操作状态',
align: 'center',
formatter: function(value, row, index) {
if (value == 0) {
return '<span class="badge badge-primary">成功</span>';
} else if (value == 1) {
return '<span class="badge badge-danger">异常</span>';
}
}
},
{
field: 'operTime',
2018-07-19 21:17:17 +08:00
title: '操作时间',
sortable: true
2018-07-09 08:44:52 +08:00
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="#" onclick="$.operate.detail(\'' + row.operId + '\')"><i class="fa fa-search"></i>详细</a>');
2018-07-09 08:44:52 +08:00
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>