2016-11-05 15:26:42 +08:00
|
|
|
|
$(function () {
|
|
|
|
|
$('table').smartTable({
|
2016-11-16 22:52:34 +08:00
|
|
|
|
url: '../api/Logs',
|
2016-11-05 15:26:42 +08:00
|
|
|
|
sortName: 'OperationType',
|
2016-11-16 22:52:34 +08:00
|
|
|
|
queryParams: function (params) { return $.extend(params, { operateType: $("#txt_operate_type").val(), OperateTimeStart: $("#txt_operate_start").val(), OperateTimeEnd: $("#txt_operate_end").val() }); },
|
2016-11-05 15:26:42 +08:00
|
|
|
|
columns: [{ checkbox: true },
|
|
|
|
|
{ title: "操作类型", field: "CRUD", sortable: true },
|
|
|
|
|
{ title: "用户名称", field: "UserName", sortable: false },
|
2016-11-16 22:52:34 +08:00
|
|
|
|
{ title: "操作时间", field: "LogTime", sortable: false },
|
2016-11-05 15:26:42 +08:00
|
|
|
|
{ title: "操作IP", field: "ClientIp", sortable: false },
|
2016-11-16 22:52:34 +08:00
|
|
|
|
{ title: "Url", field: "RequestUrl", sortable: false },
|
|
|
|
|
{ title: "备注", field: "ClientAgent", sortable: false }
|
2016-11-05 15:26:42 +08:00
|
|
|
|
]
|
|
|
|
|
});
|
2016-11-10 23:03:10 +08:00
|
|
|
|
|
|
|
|
|
$('input[type="datetime"]').parent().datetimepicker({
|
|
|
|
|
locale: "zh-cn",
|
|
|
|
|
format: "YYYY-MM-DD"
|
|
|
|
|
});
|
2016-11-02 15:35:25 +08:00
|
|
|
|
});
|