activateDay.html
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<table id="activateDay"></table>
<script type="text/javascript">
$(function () {
// 列表
var grid2 = $("#activateDay");
grid2.myDatagrid({
fit: true,
fitColumns: true,
nowrap: false,
url: contextPath + "/ActivateUnionRest/queryActivateDay",
method: 'POST',
queryParams: getId(),
loadFilter: function (data) {
var temp = defaultLoadFilter(data);
temp.rows = temp.list;
return temp;
},
columns: [[{
title: "时间",
field: "hour",
width: 100,
align: "center"
}, {
title: "ios激活数",
field: "idfaCount",
width: 180,
align: "center"
}, {
title: "安卓激活数",
field: "imeiCount",
width: 120,
align: "center"
}]],
cache: false,
pageSize: 10,
pageList: [10],
singleSelect: false,
checkOnSelect: false
});
function getId() {
var params = getParam("searchForm");
params["unionType"] = unionType;
return params;
}
});
function getParam(table) {
var paramsArray = $("#"+table+"").serializeArray();
var params = {};
for (var i = 0; i < paramsArray.length; i++) {
params[paramsArray[i].name] = paramsArray[i].value;
}
return params;
}
</script>