Showing
1 changed file
with
27 additions
and
8 deletions
@@ -16,6 +16,7 @@ | @@ -16,6 +16,7 @@ | ||
16 | .div_search .textbox { margin-top: 20px; } | 16 | .div_search .textbox { margin-top: 20px; } |
17 | .div_search .easyui-linkbutton { margin-top: 20px; } | 17 | .div_search .easyui-linkbutton { margin-top: 20px; } |
18 | </style> | 18 | </style> |
19 | + <div style="margin-left: 30px;" class="div_search"> | ||
19 | <label>开始时间:</label> | 20 | <label>开始时间:</label> |
20 | <input class="easyui-datetimebox" id="beginTime"> | 21 | <input class="easyui-datetimebox" id="beginTime"> |
21 | </input> | 22 | </input> |
@@ -25,7 +26,7 @@ | @@ -25,7 +26,7 @@ | ||
25 | </input> | 26 | </input> |
26 | 27 | ||
27 | <label>订单号:</label> | 28 | <label>订单号:</label> |
28 | - <input class="easyui-textbox" id="orderCode"> | 29 | + <input class="easyui-textbox" id="orderCode" > |
29 | </input> | 30 | </input> |
30 | 31 | ||
31 | <label>联盟用户ID:</label> | 32 | <label>联盟用户ID:</label> |
@@ -36,6 +37,7 @@ | @@ -36,6 +37,7 @@ | ||
36 | <input class="easyui-textbox" id="unionType"> | 37 | <input class="easyui-textbox" id="unionType"> |
37 | </input> | 38 | </input> |
38 | <a id="searchBtn" class="btn-info">查询</a> | 39 | <a id="searchBtn" class="btn-info">查询</a> |
40 | + </div> | ||
39 | </div> | 41 | </div> |
40 | <div region="center"> | 42 | <div region="center"> |
41 | <div style="margin-left: 30px;margin-top: 20px; height: 500px;"> | 43 | <div style="margin-left: 30px;margin-top: 20px; height: 500px;"> |
@@ -48,7 +50,12 @@ | @@ -48,7 +50,12 @@ | ||
48 | $("#userOrdersTable").myDatagrid({ | 50 | $("#userOrdersTable").myDatagrid({ |
49 | fit: true, | 51 | fit: true, |
50 | fitColumns: true, | 52 | fitColumns: true, |
51 | - //queryParams: param, | 53 | + queryParams:{ |
54 | + beginTime : $("#beginTime").val(), | ||
55 | + endTime : $("#endTime").val(), | ||
56 | + orderCode : $("#orderCode").val(), | ||
57 | + unionId : $("#unionId").val() | ||
58 | + }, | ||
52 | nowrap: false, | 59 | nowrap: false, |
53 | url: contextPath + "/UnionRest/queryUnionOrders", | 60 | url: contextPath + "/UnionRest/queryUnionOrders", |
54 | method: 'POST', | 61 | method: 'POST', |
@@ -152,16 +159,28 @@ | @@ -152,16 +159,28 @@ | ||
152 | } | 159 | } |
153 | }); | 160 | }); |
154 | 161 | ||
155 | - $("#searchBtn").linkbutton({ | ||
156 | - iconCls: "icon-search", | ||
157 | - text: "查询", | ||
158 | - onClick: function () { | ||
159 | - var param = {}; | 162 | + function getParam(table) { |
163 | + var paramsArray = $("#"+table+"").serializeArray(); | ||
164 | + var params = {}; | ||
165 | + for (var i = 0; i < paramsArray.length; i++) { | ||
166 | + params[paramsArray[i].name] = paramsArray[i].value; | ||
167 | + } | ||
168 | + return params; | ||
169 | + } | ||
160 | 170 | ||
161 | - $("#userOrdersTable").myDatagrid("load", param); | 171 | + $("#searchBtn").linkbutton({ |
172 | + iconCls : "icon-search", | ||
173 | + onClick : function() { | ||
174 | + $("#userOrdersTable").datagrid("load", { | ||
175 | + beginTime : $("#beginTime").val(), | ||
176 | + endTime : $("#endTime").val(), | ||
177 | + orderCode : $("#orderCode").val(), | ||
178 | + unionId : $("#unionId").val() | ||
179 | + }); | ||
162 | } | 180 | } |
163 | }); | 181 | }); |
164 | 182 | ||
183 | + | ||
165 | }); | 184 | }); |
166 | </script> | 185 | </script> |
167 | </body> | 186 | </body> |
-
Please register or login to post a comment