zhangshuangnan 8 lat temu
rodzic
commit
e2f3e2bb2c
1 zmienionych plików z 11 dodań i 9 usunięć
  1. 11 9
      CallCenterWeb.UI/customerServiceChat.html

+ 11 - 9
CallCenterWeb.UI/customerServiceChat.html

@@ -175,19 +175,23 @@
175 175
 				event: 'focus',
176 176
 				type: 'datetime',
177 177
 				theme: 'molv'
178
-//				value: new Date()
179 178
 			});
180 179
 			laydate.render({
181 180
 				elem: '#endTime',
182 181
 				event: 'focus',
183 182
 				type: 'datetime',
184
-				theme: 'molv',
185
-				change: function(value, date, endDate){
186
-				    console.log(value); //得到日期生成的值,如:2017-08-18
187
-				    console.log(date); //得到日期时间对象:{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
188
-				    start=$('#startTime').val();  
189
-				}
183
+				theme: 'molv'
184
+//				change: function(value, date, endDate){
185
+//				    console.log(value); //得到日期生成的值,如:2017-08-18
186
+//				    console.log(date); //得到日期时间对象:{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
187
+//				    start=$('#startTime').val();  
188
+//				}
190 189
 			});
190
+			$('.search').click(function(){
191
+				starttime=$('#startTime').val();
192
+				endtime=$('#endTime').val();
193
+				getTR(token,starttime,endtime,pageIndex); 
194
+			})
191 195
 			
192 196
 			var table = $('#table1');
193 197
 			getTR(token)
@@ -223,8 +227,6 @@
223 227
 								$('<tr>' +
224 228
 								'<td colspan="6" style="text-align: center;">已无数据!请返回上一页...</td>' +
225 229
 								'</tr>').appendTo('#table1 tbody')
226
-								
227
-									
228 230
 							}
229 231
 					}
230 232
 				});