|
@@ -4,8 +4,7 @@ $(function() {
|
|
|
var currentPage = defaultPage;
|
|
|
var currentSize = defaultSize;
|
|
|
var tableFirstLoad = true;
|
|
|
- var isExportAll = false;
|
|
|
- var dataCount = 0;
|
|
|
+
|
|
|
Date.prototype.Format = function(fmt) {
|
|
|
var o = {
|
|
|
"M+": this.getMonth() + 1, //月份
|
|
@@ -61,7 +60,7 @@ $(function() {
|
|
|
},
|
|
|
{
|
|
|
field: "arguments",
|
|
|
- title: "参数",
|
|
|
+ title: "论据",
|
|
|
align: "center",
|
|
|
width: 100,
|
|
|
},
|
|
@@ -97,11 +96,15 @@ $(function() {
|
|
|
field: "execStatus",
|
|
|
title: "执行状态",
|
|
|
align: "center",
|
|
|
- templet: function(d) {
|
|
|
- return d.execStatus == 0 ? "成功" : "失败"
|
|
|
- }
|
|
|
+ // templet: function(d) {
|
|
|
+ // return d.execStatus == 0 ? "成功" : "失败"
|
|
|
+ // }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: "userId",
|
|
|
+ title: "用户编号",
|
|
|
+ align: "center"
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
field: "userIp",
|
|
|
title: "用户IP",
|
|
@@ -125,7 +128,6 @@ $(function() {
|
|
|
if (data.status === 0) {
|
|
|
if (tableFirstLoad) {
|
|
|
tableFirstLoad = false;
|
|
|
- dataCount = data.data.total;
|
|
|
laypage.render({
|
|
|
curr: page + 1,
|
|
|
elem: "pagination",
|
|
@@ -139,16 +141,8 @@ $(function() {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
tableOption.data = data.data.list;
|
|
|
table.render(tableOption);
|
|
|
- if (isExportAll)
|
|
|
- {
|
|
|
- isExportAll = false;
|
|
|
- defaultPage = 0;
|
|
|
- defaultSize = 10;
|
|
|
- exportFile("logList");
|
|
|
- }
|
|
|
} else {
|
|
|
showMsg(data.msg, 2, 2000);
|
|
|
}
|
|
@@ -244,10 +238,7 @@ $(function() {
|
|
|
}
|
|
|
|
|
|
$("#exportLog").on("click", function(e) {
|
|
|
- //exportFile("logList");
|
|
|
- isExportAll = true;
|
|
|
- loadLogList(0,dataCount);
|
|
|
- return false;
|
|
|
+ exportFile("logList");
|
|
|
});
|
|
|
|
|
|
// 批量删除
|