zhoufan лет назад: 8
Родитель
Сommit
8bac5afffb
1 измененных файлов с 58 добавлено и 119 удалено
  1. 58 119
      WebUI/CallCenterWeb.UI/YeWu/ZX.html

+ 58 - 119
WebUI/CallCenterWeb.UI/YeWu/ZX.html

@@ -60,8 +60,8 @@
60 60
             display: block;
61 61
         }
62 62
         #list thead th{
63
-        	    background: #01a1cb;
64
-    		color: #fff;
63
+                background: #01a1cb;
64
+            color: #fff;
65 65
         }
66 66
     </style>
67 67
 </head>
@@ -77,9 +77,9 @@
77 77
                     <a class="nowPosition">坐席工作统计</a>
78 78
                 </sapn>
79 79
             </div>
80
-             <div class="dhRight">
81
-						<a href="" title="刷新"><i class="fa fa-refresh"></i></a>				
82
-				</div>
80
+            <div class="dhRight">
81
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
82
+            </div>
83 83
         </div>
84 84
 
85 85
         <div class="Content_box">
@@ -89,62 +89,50 @@
89 89
                     <div class="th-bar">
90 90
                         <div class="seach-box">
91 91
                             <ul>
92
- 								<li>
93
-                             		部门:
92
+                                <!--<li>
93
+                                    部门:
94 94
                                    <select name="" id="depar" class="select_"></select>
95
-                                   <!--<select name="" id="" class="select_"></select>-->
96
-                                </li>
95
+                                </li>-->
97 96
                                 <li>
98
-                                 	  创建时间:
97
+                                    创建时间:
99 98
                                     <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
100 99
                                     <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
101 100
                                 </li>
102 101
                                 <li>
103 102
                                     <a class="sc_btn btns db">搜索</a>
104
-                                     <a class="sc_btn btns  export">导出</a>
103
+                                    <a class="sc_btn btns  export">导出</a>
105 104
                                 </li>
106 105
                             </ul>
107 106
                         </div>
108 107
                     </div>
109 108
                 </div>
110 109
                 <div style="width: 100%;padding: 10px;">
111
-                    <table id="list" class="table table-hover table-striped table-bordered table-condensed">
110
+                    <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
112 111
                         <thead>
113 112
                             <tr>
114
-                                <th>单位名称</th>
115
-                                <th>坐席</th>
116
-                                <th>手动录单量</th>
117
-                                <th>通话成单量</th>
118
-                                <th>当即办理量</th>
119
-                                <th>交办量</th>
120
-                                <th>已办量</th>
121
-                                <th>回访量</th>
122
-                                <th>市民满意</th>
123
-                                <th>市民不满意</th>
113
+                                <th data-field="username" data-align="center">单位名称</th>
114
+                                <th data-field="telcount" data-align="center">接听量</th>
115
+                                <th data-field="telhandcount" data-align="center">通话成单量</th>
116
+                                <th data-field="handcount" data-align="center">手动录单量</th>
117
+                                <th data-field="endcount" data-align="center">当即办理量</th>
118
+                                <th data-field="turncount" data-align="center">网络转办量</th>
119
+                                <th data-field="visitcount" data-align="center">回访量</th>
124 120
                             </tr>
125 121
                         </thead>
126
-                        <tbody></tbody>
127
-                        <tfoot>
128
-                        	
129
-                        </tfoot>
130 122
                     </table>
131 123
                 </div>
132 124
             </div>
133 125
 
134 126
         </div>
135 127
     </div>
136
-   
128
+
137 129
     <script>
138
-        var keys;
139
-        var start;
140
-        var end;
141
-        var deptId;
142
-        var isExport;//
130
+
143 131
         $(document).ready(function () {
144
-        	//返回首页
145
-			$('#ReIndex').click(function(){
146
-				 top.home_index();
147
-			})
132
+            //返回首页
133
+            $('#ReIndex').click(function () {
134
+                top.home_index();
135
+            })
148 136
             laydate.skin('blue');
149 137
             laydate({
150 138
                 elem: '#startTimes',
@@ -155,95 +143,46 @@
155 143
                 elem: '#endTimes',
156 144
                 event: 'focus'
157 145
             });
158
-       
159
-           $.getJSON(huayi.config.callcenter_url + "Department/GetDeptList", { token: $.cookie("token") }, function (result) {
160
-                if (result.state.toLowerCase() == "success") {
161
-                    seatlist = result.data;
162
-                    bindseat($("#depar"));
146
+
147
+            //导出
148
+            $('.export').click(function () {
149
+                dcexcel(this);
150
+            })
151
+
152
+            //搜索
153
+            $(".db").click(function () {
154
+                initTable();
155
+            })
156
+
157
+            initTable();
158
+        })
159
+        function initTable() {
160
+            $.ajax({
161
+                url: huayi.config.callcenter_url + 'WorkOrderReport/GetUserAccountAssessment',
162
+                type: 'get',
163
+                data: {
164
+                    start: $("#startTimes").val(),
165
+                    end: $("#endTimes").val(),
166
+                    token: $.cookie("token")
167
+                },
168
+                dataType: "json",
169
+                async: true,
170
+                success: function (returnValue) {
171
+                    //异步获取数据
172
+                    var resultData1 = returnValue.data.UserPerformanceReport;
173
+                    $('#workorderlist').bootstrapTable('load', resultData1);
163 174
                 }
164 175
             });
165
-             function bindseat(obj) {
166
-            obj.empty();
167
-            obj.append('<option value="">全部</option>');
168
-            $(seatlist).each(function (i, n) {
169
-                obj.append('<option value="' + n.F_DeptId + '">' + n.F_DeptName + '</option>');
170
-            })
176
+            $('#workorderlist').bootstrapTable('destroy').bootstrapTable({ striped: true });
171 177
         }
172 178
         
173
-        })
174
-        Ajax();
175
-        //导出
176
-        $('.export').click(function(){
177
-        		dcexcel(this);
178
-        })
179
-           		
180
-		   function dcexcel(obj) {
181
-		       var url = huayi.config.callcenter_url + "WorkOrderReport/GetUserAccountAssessment?token=" + $.cookie("token");
182
-                url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val()+ "&deptId=" + $("#depar").val()+ "&isExport=true";
183
-                obj.href = url;
184
-       		 }
185
-        //搜索
186
-        $(".db").click(function () {
187
-        	start=$('#startTimes').val();
188
-        	end=$('#endTimes').val();
189
-        	deptId=$('#depar').val();
190
-            Ajax(start,end,deptId);
191
-        })
192
-        function Ajax(start,end,deptId){
193
-        	$('#list tbody').html('');
194
-        	$('#list tfoot').html('');
195
-        	$.ajax({
196
-        		type:"get",
197
-        		url:huayi.config.callcenter_url+"WorkOrderReport/GetUserAccountAssessment",
198
-        		async:true,
199
-        		dataType:'json',
200
-        		data:{
201
-        			token:$.cookie("token"),
202
-        			start:start,
203
-        			end:end,
204
-        			deptId:deptId
205
-        		},
206
-        		success:function(data){
207
-        			var tbody=data.data.list;
208
-        			var tfoot=data.data.total;
209
-        			if(data.state.toLowerCase()=='success'){
210
-        				$(tbody).each(function(i,n){
211
-        					$('<tr>'+
212
-        						'<td>'+ n.detpname +'</td>'+
213
-        						'<td>'+ n.useraccount +'</td>'+
214
-        						'<td>'+ n.manualcount +'</td>'+
215
-        						'<td>'+ n.talkcount +'</td>'+
216
-        						'<td>'+ n.immecount +'</td>'+
217
-        						'<td>'+ n.assignedcount +'</td>'+
218
-        						'<td>'+ n.completedcount +'</td>'+
219
-        						'<td>'+ n.visitcount +'</td>'+
220
-        						'<td>'+ n.satisfiedrate +'</td>'+
221
-        						'<td>'+ n.notsatisfiedrate +'</td>'+
222
-        					'</tr>').appendTo('#list tbody')
223
-        				})
224
-        				$(tfoot).each(function(i,n){
225
-        					$('<tr>'+
226
-        						'<td colspan="2" style="text-align: center;">总计</td>'+
227
-        						'<td>'+ n.manualcount +'</td>'+
228
-        						'<td>'+ n.talkcount +'</td>'+
229
-        						'<td>'+ n.immecount +'</td>'+
230
-        						'<td>'+ n.assignedcount +'</td>'+
231
-        						'<td>'+ n.completedcount +'</td>'+
232
-        						'<td>'+ n.visitcount +'</td>'+
233
-        						'<td>'+ n.satisfiedrate +'</td>'+
234
-        						'<td>'+ n.notsatisfiedrate +'</td>'+
235
-        					'</tr>').appendTo('#list tfoot')
236
-        				})
237
-        				
238
-        			}
239
-        		}
240
-        	});
241
-        	
179
+
180
+        function dcexcel(obj) {
181
+            var url = huayi.config.callcenter_url + "WorkOrderReport/GetUserAccountAssessment?token=" + $.cookie("token");
182
+            url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() +"&isExport=true";
183
+            obj.href = url;
242 184
         }
243 185
 
244
-      
245
-      
246
-   
247 186
     </script>
248 187
 </body>
249 188