|
@@ -29,7 +29,7 @@
|
|
|
<div class="layui-inline">
|
|
<div class="layui-inline">
|
|
|
<label class="layui-form-label">操作类型</label>
|
|
<label class="layui-form-label">操作类型</label>
|
|
|
<div class="layui-input-inline">
|
|
<div class="layui-input-inline">
|
|
|
- <select name="businessType" class="layui-select">
|
|
|
|
|
|
|
+ <select name="type" class="layui-select">
|
|
|
<option value="">全部</option>
|
|
<option value="">全部</option>
|
|
|
<option value="0">其他</option>
|
|
<option value="0">其他</option>
|
|
|
<option value="1">新增</option>
|
|
<option value="1">新增</option>
|
|
@@ -54,13 +54,8 @@
|
|
|
<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="detail"><i class="layui-icon layui-icon-about"></i> 详情</a>
|
|
<a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="detail"><i class="layui-icon layui-icon-about"></i> 详情</a>
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
- <script type="text/html" id="businessTypeTpl">
|
|
|
|
|
- {{# var types = ['其他', '新增', '修改', '删除', '查询', '登录']; }}
|
|
|
|
|
- {{# = types[d.businessType] || '其他' }}
|
|
|
|
|
- </script>
|
|
|
|
|
-
|
|
|
|
|
<script type="text/html" id="statusTpl">
|
|
<script type="text/html" id="statusTpl">
|
|
|
- {{# if(d.status === 0) { }}
|
|
|
|
|
|
|
+ {{# if(d.status === '1') { }}
|
|
|
<span class="layui-badge layui-bg-green">成功</span>
|
|
<span class="layui-badge layui-bg-green">成功</span>
|
|
|
{{# } else { }}
|
|
{{# } else { }}
|
|
|
<span class="layui-badge layui-bg-red">失败</span>
|
|
<span class="layui-badge layui-bg-red">失败</span>
|
|
@@ -81,14 +76,16 @@
|
|
|
elem: '#tableList',
|
|
elem: '#tableList',
|
|
|
url: Config.api.operLog.page,
|
|
url: Config.api.operLog.page,
|
|
|
cols: [[
|
|
cols: [[
|
|
|
- { field: 'title', title: '操作模块', width: 150 },
|
|
|
|
|
- { field: 'businessType', title: '操作类型', width: 100, templet: '#businessTypeTpl' },
|
|
|
|
|
- { field: 'operator', title: '操作人', width: 120 },
|
|
|
|
|
- { field: 'ip', title: 'IP地址', width: 140 },
|
|
|
|
|
- { field: 'location', title: '操作地点', width: 150 },
|
|
|
|
|
|
|
+ { field: 'type', title: '操作类型', width: 150 },
|
|
|
|
|
+ { field: 'title', title: '操作模块', width: 200 },
|
|
|
|
|
+ { field: 'url', title: '请求地址', width: 120 },
|
|
|
|
|
+ { field: 'userName', title: '操作人', width: 120 },
|
|
|
|
|
+ { field: 'ip', title: 'IP地址', width: 150 },
|
|
|
|
|
+ { field: 'region', title: '操作地点', width: 150 },
|
|
|
{ field: 'status', title: '状态', width: 100, templet: '#statusTpl' },
|
|
{ field: 'status', title: '状态', width: 100, templet: '#statusTpl' },
|
|
|
- { field: 'createTime', title: '操作时间', width: 170, templet: function(d) { return Common.formatDate(d.createTime); } },
|
|
|
|
|
- { fixed: 'right', title: '操作', width: 80, align: 'center', toolbar: '#toolbar' }
|
|
|
|
|
|
|
+ { field: 'duration', title: '耗时(ms)', width: 100 },
|
|
|
|
|
+ { field: 'operTime', title: '操作时间', width: 150, templet: function(d) { return Common.formatDate(d.operTime); } },
|
|
|
|
|
+ { fixed: 'right', title: '操作', width: 200, align: 'center', toolbar: '#toolbar' }
|
|
|
]]
|
|
]]
|
|
|
});
|
|
});
|
|
|
|
|
|