You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>班级变更日志</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="../../static/css/font.css">
<link rel="stylesheet" href="../../static/css/weadmin.css">
<!-- 让IE8/9支持媒体查询从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="weadmin-nav">
<span class="layui-breadcrumb">
<a href="javascript:void(0);">首页</a>
<a href="javascript:void(0);">操作日志</a>
<a><cite>班级变更日志</cite></a>
</span>
<a class="layui-btn layui-btn-sm" style="line-height:1.6em;margin-top:3px;float:right"
href="javascript:location.reload();" title="刷新">
<i class="layui-icon layui-icon-refresh-3" style="line-height:30px"></i></a>
</div>
<div class="weadmin-body">
<table class="layui-table" lay-filter="idTest" id="idTest"></table>
<script type="text/html" id="barDemo">
<a class="layui-btn layui-btn-xs" lay-event="showinfo">查看详情</a>
</script>
</div>
<script src="../../lib/layui/layui.js"></script>
<script src="../../lib/template.js"></script>
<script src="../../lib/base64.js"></script>
<script>
layui.extend({
admin: '{/}../../static/js/admin'
});
layui.use(['jquery', 'admin', 'table', 'form'], function () {
var $ = layui.jquery,
admin = layui.admin,
table = layui.table,
form = layui.form;
//获取班级变更日志
window.getClassLog = function () {
table.render({
elem: '#idTest',
url: '/baseService/log/getClassLog',
cols: [[
{field: 'id', title: '序号', align: 'center', type: 'numbers', width: 120}
, {field: 'action_name', title: '操作', align: 'center'}
, {field: 'class_name', title: '班级名称', align: 'center'}
, {field: 'class_num', title: '班号', align: 'center'}
, {field: 'class_code', title: '班级码', align: 'center'}
, {field: 'operator', title: '操作人员', align: 'center'}
, {field: 'ip_address', title: '操作地址', align: 'center'}
, {field: 'update_ts', title: '操作时间', align: 'center'}
, {fixed: 'right', title: '操作', toolbar: '#barDemo', align: 'center', width: 120}
]]
, page: true
, height: 'full'
, done: function () {
}
});
};
getClassLog();
//定义事件
table.on('tool(idTest)', function (obj) {
var data = obj.data;
if (obj.event === 'showinfo') {
var last = JSON.stringify(data);
layer.alert(last, {
title: '详细信息',
skin: 'layui-layer-lan'
, closeBtn: 0
, anim: 4 //动画类型
});
}
});
})
</script>
</body>
</html>