Kaynağa Gözat

通话时长导出问题

d123 7 yıl önce
ebeveyn
işleme
f4e437a8a4
1 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 7 1
      CallCenterWeb.UI/callTime.html

+ 7 - 1
CallCenterWeb.UI/callTime.html

@@ -148,6 +148,12 @@
148 148
 				          Ajax();
149 149
 					        //导出功能
150 150
 		              	$('.export').click(function() {
151
+		              		stime=$('#startTime').val() && $('#startTime').val().split('~')[0].replace(/(^\s*)|(\s*$)/g, "");
152
+						 endtime=$('#startTime').val() && $('#startTime').val().split('~')[1].replace(/(^\s*)|(\s*$)/g, "");
153
+						if(stime==""&&endtime==""){
154
+							stime="";
155
+							endtime="";
156
+						}
151 157
 							dcexcel(this);
152 158
 						})
153 159
 					
@@ -261,7 +267,7 @@
261 267
 				});
262 268
 			   function dcexcel(obj) {
263 269
 	            var url = huayi.config.callcenter_url + "TalkTime/ExptList?token=" + $.cookie("token");
264
-	                url += "&stime=" + $('#startTime').val() && $('#startTime').val().split('~')[0] + "&endtime=" + $('#startTime').val() && $('#startTime').val().split('~')[1];
270
+	                url += "&stime=" + stime + "&endtime=" + endtime;
265 271
 	                obj.href = url;
266 272
 	       		 }
267 273
 			        //表格数据