2018-06-07 00:45:47 +08:00
|
|
|
|
$(function () {
|
2018-09-02 00:50:13 +08:00
|
|
|
|
var url = 'api/Logs/';
|
2018-06-07 00:45:47 +08:00
|
|
|
|
|
|
|
|
|
$('table').smartTable({
|
|
|
|
|
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 },
|
|
|
|
|
{ title: "操作IP", field: "ClientIp", sortable: true },
|
|
|
|
|
{ title: "Url", field: "RequestUrl", sortable: true },
|
|
|
|
|
{ title: "备注", field: "ClientAgent", sortable: false }
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.form_date').datetimepicker({
|
|
|
|
|
language: 'zh-CN',
|
|
|
|
|
weekStart: 1,
|
|
|
|
|
todayBtn: 1,
|
|
|
|
|
autoclose: 1,
|
|
|
|
|
todayHighlight: 1,
|
|
|
|
|
startView: 2,
|
|
|
|
|
minView: 2,
|
|
|
|
|
forceParse: 0,
|
|
|
|
|
format: 'yyyy-mm-dd',
|
2018-08-04 01:31:52 +08:00
|
|
|
|
pickerPosition: 'bottom-left',
|
|
|
|
|
fontAwesome: true
|
2018-06-07 00:45:47 +08:00
|
|
|
|
});
|
2016-11-02 15:35:25 +08:00
|
|
|
|
});
|