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.

94 lines
3.7 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.getYiDongLog = function () {
table.render({
elem: '#idTest',
url: '/baseService/log/getYiDongLog',
cols: [[
{field: 'id', title: '序号', align: 'center', type: 'numbers', width: 80}
, {field: 'action_name', title: '操作', align: 'center'}
, {field: 'source_bureau_name', title: '原单位', align: 'center'}
, {field: 'target_bureau_name', title: '目标单位', align: 'center'}
, {field: 'identity_id', title: '身份', align: 'center' ,templet: function (d) {
if (d.identity_id == 6) return "学生";
else return "教师";
}}
, {field: 'person_name', title: '姓名', align: 'center'}
, {field: 'apply_time', title: '申请时间', align: 'center'}
, {field: 'update_ts', title: '日志时间', align: 'center'}
, {field: 'ip_address', title: '操作地址', align: 'center'}
, {fixed: 'right', title: '操作', toolbar: '#barDemo', align: 'center', width: 120}
]]
, page: true
, height: 'full'
, done: function () {
}
});
};
getYiDongLog();
//定义事件
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>