search.html
4.01 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Yoho!Buy运营平台</title>
<script src="/union/js/include.js"></script>
<script src="/union/js/ajaxfileupload.js"></script>
</head>
<body class="easyui-layout" fit="true">
<div id="search" region="north" style="height: 170px;" class="xsdvideogl">
<script>
document.write(addHead('运营管理', '用户信息列表'));
</script>
<div style="margin-left: 30px;margin-top: 20px;">
<a id="exportButton" class="easyui-linkbutton btn-primary" style="margin-right:20px"
data-options="iconCls:'icon-more'">批量导出</a>
<!--<button>Export</button>-->
<input id="isRegister" class="easyui-combobox" value="1" data-options="
editable: false,
valueField: 'id',
textField: 'text',
data: [{id: '1',text: '已注册'},
{id: '0',text: '未注册'}]"/>
<input id="isBuy" class="easyui-combobox" value="0" data-options="
editable: false,
valueField: 'id',
textField: 'text',
data: [{id: '0',text: '未购买'},
{id: '1',text: '已购买'}]"/>
<a id="searchLinkbutton" class="easyui-linkbutton btn-primary" data-options="iconCls:'icon-search'">查询</a>
</div>
</div>
<div region="center" id="productBuyLimitListDiv">
<table id="userListTable" style="widght: 600px;"></table>
</div>
<script type="text/javascript">
// 获取搜索参数
function getParams() {
var isRegister = $("#isRegister").combobox('getValue');
var isBuy = $("#isBuy").combobox("getValue");
var param = {};
if (undefined !== isRegister && null !== isRegister && "" !== isRegister) {
param.isRegister = isRegister;
}
if (undefined !== isBuy && null !== isBuy && "" !== isBuy) {
param.isBuy = isBuy;
}
return param;
}
$("#searchLinkbutton").linkbutton({
onClick: function () {
$("#userListTable").myDatagrid({
fit: true,
fitColumns: true,
nowrap: false,
// queryParams: getParams(),
url: contextPath + "/UserRegisterBuy/getUserRegisterBuyList?®ister=" + getParams().isRegister + "&buy=" + getParams().isBuy,
method: 'GET',
loadFilter: function (data) {
var temp = defaultLoadFilter(data);
temp.rows = temp.list;
return temp;
},
columns: [[{
title: "序号",
field: "id",
width: 20,
align: "center"
}, {
title: "手机号",
field: "mobile",
width: 45,
align: "center"
}, {
title: "uid",
field: "uid",
width: 65,
align: "center"
}, {
title: "是否注册",
field: "register",
width: 30,
align: "center"
}, {
title: "注册时间",
field: "registerTime",
width: 60,
align: "center"
}, {
title: "是否购买",
field: "buy",
width: 30,
align: "center"
}]],
cache: false,
pagination: true,
pageSize: 10,
pageList: [10],
idField: "mobile",
singleSelect: true,
checkOnSelect: false,
onLoadSuccess: function () {
}
});
}
});
$("#exportButton").linkbutton({
onClick: function () {
window.open(contextPath + "/batch/export.do?type=userRegisterBuyInfoserviceImpl&queryConf=" + JSON.stringify(getParams()));
}
});
</script>
</body>
</html>