2018-06-07 00:45:47 +08:00
|
|
|
|
$(function () {
|
2018-11-05 17:55:24 +08:00
|
|
|
|
var url = 'api/Logs';
|
2018-06-07 00:45:47 +08:00
|
|
|
|
|
2018-10-30 13:07:29 +08:00
|
|
|
|
$('.card-body table').smartTable({
|
2018-06-07 00:45:47 +08:00
|
|
|
|
url: url,
|
|
|
|
|
sortName: 'LogTime',
|
2018-09-09 14:16:03 +08:00
|
|
|
|
sortOrder: 'desc',
|
2018-06-07 00:45:47 +08:00
|
|
|
|
queryParams: function (params) { return $.extend(params, { operateType: $("#txt_operate_type").val(), OperateTimeStart: $("#txt_operate_start").val(), OperateTimeEnd: $("#txt_operate_end").val() }); },
|
|
|
|
|
columns: [
|
|
|
|
|
{ title: "操作类型", field: "CRUD", sortable: true },
|
|
|
|
|
{ title: "用户名称", field: "UserName", sortable: true },
|
|
|
|
|
{ title: "操作时间", field: "LogTime", sortable: true },
|
2019-03-04 16:29:35 +08:00
|
|
|
|
{ title: "登录主机", field: "Ip", sortable: true },
|
|
|
|
|
{ title: "操作地点", field: "City", sortable: true },
|
|
|
|
|
{ title: "浏览器", field: "Browser", sortable: true },
|
|
|
|
|
{ title: "操作系统", field: "OS", sortable: true },
|
|
|
|
|
{ title: "Url", field: "RequestUrl", sortable: true }
|
2019-03-07 21:28:51 +08:00
|
|
|
|
],
|
|
|
|
|
exportOptions: {
|
|
|
|
|
fileName: "操作日志数据"
|
|
|
|
|
}
|
2018-06-07 00:45:47 +08:00
|
|
|
|
});
|
2016-11-02 15:35:25 +08:00
|
|
|
|
});
|