<!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('使用次数操作记录列表')" />
|
</head>
|
<body class="gray-bg">
|
<div class="container-div">
|
<div class="row">
|
<div class="col-sm-12 search-collapse">
|
<form id="formId">
|
<div class="select-list">
|
<ul>
|
<li>
|
<p>[[#{jsp.exam.demographyParam.businessuser}]]:</p>
|
<input type="text" name="userName"/>
|
</li>
|
<li>
|
<p>[[#{jsp.exam.entOperLog.operationtype}]]:</p>
|
<select name="opertype" th:with="type=${@dict.getType('num_oper_type')}">
|
<option value="">ALL</option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
</select>
|
</li>
|
<li>
|
<p>[[#{jsp.exam.entOperLog.creator}]]:</p>
|
<input type="text" name="createName"/>
|
</li>
|
<li>
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> [[#{basis.search}]]</a>
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> [[#{basis.reset}]]</a>
|
</li>
|
</ul>
|
</div>
|
</form>
|
</div>
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
<!--<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:entOperLog:add">-->
|
<!--<i class="fa fa-plus"></i> 添加-->
|
<!--</a>-->
|
<!--<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:entOperLog:edit">-->
|
<!--<i class="fa fa-edit"></i> 修改-->
|
<!--</a>-->
|
<!--<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:entOperLog:remove">-->
|
<!--<i class="fa fa-remove"></i> 删除-->
|
<!--</a>-->
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:entOperLog:export">
|
<i class="fa fa-download"></i> [[#{basis.export}]]
|
</a>
|
</div>
|
<div class="col-sm-12 select-table table-striped">
|
<table id="bootstrap-table" data-mobile-responsive="true"></table>
|
</div>
|
</div>
|
</div>
|
<th:block th:include="include :: footer" />
|
<script th:inline="javascript">
|
var editFlag = [[${@permission.hasPermi('exam:entOperLog:edit')}]];
|
var removeFlag = [[${@permission.hasPermi('exam:entOperLog:remove')}]];
|
var opertypeDatas = [[${@dict.getType('num_oper_type')}]];
|
var prefix = ctx + "exam/entOperLog";
|
|
$(function() {
|
var options = {
|
url: prefix + "/list",
|
createUrl: prefix + "/add",
|
updateUrl: prefix + "/edit/{id}",
|
removeUrl: prefix + "/remove",
|
exportUrl: prefix + "/export",
|
modalName: [[#{jsp.exam.entOperLog.usageRecord}]],
|
columns: [{
|
checkbox: true
|
},
|
{
|
field : 'logId',
|
title : [[#{jsp.exam.entOperLog.logEncoding}]],
|
visible: false
|
},
|
{
|
field : 'userId',
|
title : [[#{jsp.exam.demographyParam.businessuser}]],
|
visible: false
|
},
|
{
|
field : 'userName',
|
title : [[#{jsp.exam.demographyParam.businessuser}]]
|
},
|
{
|
field : 'testNum',
|
title : [[#{jsp.exam.entOperLog.rechargeTimes}]]
|
},
|
{
|
field : 'opertype',
|
title : [[#{jsp.exam.entOperLog.operationtype}]],
|
formatter: function(value, row, index) {
|
return $.table.selectDictLabel(opertypeDatas, value);
|
}
|
},
|
{
|
field : 'createBy',
|
title : [[#{basis.createBy}]],
|
visible: false
|
},
|
{
|
field : 'createName',
|
title : [[#{basis.createName}]]
|
},
|
{
|
field : 'createTime',
|
title : [[#{basis.createTime}]]
|
},
|
// {
|
// title: '操作',
|
// align: 'center',
|
// 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.logId + '\')"><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.logId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
// return actions.join('');
|
// }
|
// }
|
]
|
};
|
$.table.init(options);
|
});
|
</script>
|
</body>
|
</html>
|