Pārlūkot izejas kodu

修改工单处理效率(添加导出)

lihai 7 gadi atpakaļ
vecāks
revīzija
91def813e4
1 mainītis faili ar 14 papildinājumiem un 1 dzēšanām
  1. 14 1
      CallCenterWeb.UI/ReportForm/WorkSheetProcess.html

+ 14 - 1
CallCenterWeb.UI/ReportForm/WorkSheetProcess.html

@@ -1,4 +1,4 @@
1
-<!DOCTYPE html>
1
+<!DOCTYPE html>
2 2
 <html>
3 3
 
4 4
 	<head>
@@ -71,6 +71,7 @@
71 71
 						</div>
72 72
 						<div class="form-group tool_bars pull-right">
73 73
 							<button class="btns sear">搜索</button>
74
+                            <a href="" class="btns export">导出</a>
74 75
 						</div>
75 76
 					</div>
76 77
 				</div>
@@ -107,9 +108,21 @@
107 108
 				$(".sear").click(function() {
108 109
 					getTableDataList(); //获取表格数据
109 110
 				});
111
+			    //导出
112
+				$('.export').click(function () {
113
+				    stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
114
+				    endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
115
+				    dcexcel(this);
116
+				});
110 117
 
111 118
 			});
112 119
 
120
+			function dcexcel(obj) {
121
+			    var url = huayi.config.callcenter_url + "Business/ExportExcel?token=" + token;
122
+			    url += "&stime=" + stime + "&endtime=" + endtime + "&dpt=" + $('#bumen').val();
123
+			    obj.href = url;
124
+			}
125
+
113 126
 			//加载表格
114 127
 			function getTableDataList() {
115 128
 				var loadindex = layer.load();