liuyifan %!s(int64=5) %!d(string=před) roky
rodič
revize
95842529f6
4 změnil soubory, kde provedl 113 přidání a 49 odebrání
  1. 9 0
      CallCenterWeb.UI/.project
  2. 9 0
      WebChart/.project
  3. 2 0
      WebChart/index.html
  4. 93 49
      WebChart/js/tousujubao.js

+ 9 - 0
CallCenterWeb.UI/.project

@@ -96,5 +96,14 @@
96 96
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
97 97
 			</matcher>
98 98
 		</filter>
99
+		<filter>
100
+			<id>1583308708803</id>
101
+			<name></name>
102
+			<type>26</type>
103
+			<matcher>
104
+				<id>org.eclipse.ui.ide.multiFilter</id>
105
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
106
+			</matcher>
107
+		</filter>
99 108
 	</filteredResources>
100 109
 </projectDescription>

+ 9 - 0
WebChart/.project

@@ -60,5 +60,14 @@
60 60
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
61 61
 			</matcher>
62 62
 		</filter>
63
+		<filter>
64
+			<id>1586224277851</id>
65
+			<name></name>
66
+			<type>26</type>
67
+			<matcher>
68
+				<id>org.eclipse.ui.ide.multiFilter</id>
69
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
70
+			</matcher>
71
+		</filter>
63 72
 	</filteredResources>
64 73
 </projectDescription>

+ 2 - 0
WebChart/index.html

@@ -218,6 +218,7 @@
218 218
 								<option value="" >新乡县</option>
219 219
 							</select>
220 220
 							<button class="btns part3Btn">搜索</button>
221
+							<button class="btns part3Export">导出</button>
221 222
 						</div>
222 223
 					</div>
223 224
 					<table class="table1 table">
@@ -254,6 +255,7 @@
254 255
 								<option value="" >新乡县</option>
255 256
 							</select>
256 257
 							<button class="btns part4Btn">搜索</button>
258
+							<!-- <button class="btns part4Export">导出</button> -->
257 259
 						</div>
258 260
 					</div>
259 261
 					<div class="clearfix">

+ 93 - 49
WebChart/js/tousujubao.js

@@ -97,7 +97,25 @@
97 97
                     }
98 98
                 }
99 99
             }
100
-			}]
100
+			}],
101
+			toolbox: {
102
+				show: true,
103
+				feature: {
104
+					saveAsImage: {
105
+						show: true,
106
+						title: '导出',
107
+						type: 'png',
108
+						name: '社会治安满意度',
109
+						excludeComponents: ['toolbox'],
110
+						pixelRatio: 2,
111
+					},
112
+				},
113
+				emphasis: {
114
+					iconStyle: {
115
+
116
+					}
117
+				}
118
+			}
101 119
 		});
102 120
 		function partOne(){
103 121
 				var index = layer.load(1, {
@@ -262,7 +280,25 @@
262 280
 					}
263 281
 				}
264 282
 			},
265
-			series: []
283
+			series: [],
284
+			toolbox: {
285
+				show: true,
286
+				feature: {
287
+					saveAsImage: {
288
+						show: true,
289
+						title: '导出',
290
+						type: 'png',
291
+						name: '政法机关执法满意度',
292
+						excludeComponents: ['toolbox'],
293
+						pixelRatio: 2,
294
+					},
295
+				},
296
+				emphasis: {
297
+					iconStyle: {
298
+						
299
+					}
300
+				}
301
+			}
266 302
 		});
267 303
 		 	
268 304
 			function partTwo(){
@@ -320,58 +356,66 @@
320 356
 								},
321 357
 								series: sers
322 358
 							});
323
-							
324
-							
325
-							
326 359
 						}
327 360
 					}
328 361
 				});
329 362
 		}
330
-		//投诉关键字 part3
331
-		
332
-			function partThree(){
333
-				$('.table1 tbody').html('');
334
-				var start=$('#time3').val();
335
-				var end=$('#time4').val();
336
-				$.ajax({
337
-					
338
-					type:"get",
339
-					url:huayi.config.callcenter_url + "Info/GetData",
340
-					async:true,
341
-					dataType:'json',
342
-					data:{
343
-						sdate:start,
344
-						edate:end,
345
-						countyid:$('#select_list1').val(),
346
-						ques:'社会治安'
347
-					},
348
-					success:function(data){
349
-						if(data.state.toLowerCase()=='success'){
350
-							var con=data.data.data;
351
-							$(con).each(function(i,n){
352
-							var html="";
353
-							html = '<tr>'+
354
-									'<td>'+ parseInt(i+1)+'</td>'+
355
-									'<td>' + n.分类 + '</td>' +
356
-									'<td>' + n.数量 + '</td>' +
357
-									'<td>' + n.比例 + '</td>' +
358
-									'</tr>';
359
-								$('.table1 tbody').append(html);
360
-						})
361
-						}
362
-					}
363
-				});
363
+	//投诉关键字 part3
364
+	function partThree(){
365
+		$('.table1 tbody').html('');
366
+		var start=$('#time3').val();
367
+		var end=$('#time4').val();
368
+		$.ajax({
369
+			type:"get",
370
+			url:huayi.config.callcenter_url + "Info/GetData",
371
+			async:true,
372
+			dataType:'json',
373
+			data:{
374
+				sdate:start,
375
+				edate:end,
376
+				countyid:$('#select_list1').val(),
377
+				ques:'社会治安'
378
+			},
379
+			success:function(data){
380
+				if(data.state.toLowerCase()=='success'){
381
+					var con=data.data.data;
382
+					$(con).each(function(i,n){
383
+					var html="";
384
+					html = '<tr>'+
385
+							'<td>'+ parseInt(i+1)+'</td>'+
386
+							'<td>' + n.分类 + '</td>' +
387
+							'<td>' + n.数量 + '</td>' +
388
+							'<td>' + n.比例 + '</td>' +
389
+							'</tr>';
390
+						$('.table1 tbody').append(html);
391
+				})
392
+				}
364 393
 			}
365
-		  
366
-			$('.part3Btn').click(function() {
367
-				partThree();
368
-			})
369
-			//part4搜索
370
-			$('.part4Btn').click(function(){
371
-				partFour();
372
-				partFourSH();
373
-				partFourSP();
374
-			})
394
+		});
395
+	}
396
+
397
+	function part3ExportFun() {
398
+		var start=$('#time3').val();
399
+		var end=$('#time4').val();
400
+		var countyid = $('#select_list1').val();
401
+		var ques = "社会治安"
402
+		var url = huayi.config.callcenter_url + "Info/ExportData?sdate=" + start + "&edate=" + end + "&countyid=" + countyid + "&ques=" + ques;
403
+		window.location.href = url;
404
+	}
405
+	
406
+	$('.part3Btn').click(function() {
407
+		partThree();
408
+	})
409
+	$('.part3Export').click(function() {
410
+		part3ExportFun();
411
+	})
412
+
413
+	//part4搜索
414
+	$('.part4Btn').click(function(){
415
+		partFour();
416
+		partFourSH();
417
+		partFourSP();
418
+	})
375 419
 	//扫黑除恶
376 420
 	function partFour(){
377 421
 			var start=$('#time5').val();