liuzhen лет назад: 5
Родитель
Сommit
ec0900dbcd
1 измененных файлов с 14 добавлено и 8 удалено
  1. 14 8
      WebChart/js/huawu.js

+ 14 - 8
WebChart/js/huawu.js

@@ -376,13 +376,19 @@ $('.part2Btn').click(function() {
376 376
     }
377 377
     //partFour
378 378
      function partFour(){
379
-  	var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
380
-	});
379
+	  	var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
380
+		});
381
+		var start=$('#time5').val();
382
+		var end=$('#time6').val();
381 383
    	   $.ajax({
382 384
    	   	type:"get",
383 385
    	   	url:huayi.config.callcenter_url + "Info/GetTotal",
384 386
    	   	async:true,
385 387
    	   	dataType:'json',
388
+   	   	data: {
389
+			start: start,
390
+			end: end
391
+		},
386 392
    	   	success:function(data){
387 393
    	   		if(data.state.toLowerCase()=='success'){
388 394
    	   			layer.close(index);
@@ -390,6 +396,7 @@ $('.part2Btn').click(function() {
390 396
    	   			console.log(con);
391 397
    	   			var dataList=[];
392 398
    	   			var dataScore=[]
399
+   	   			$('.phone_li').empty();
393 400
    	   			 $(con).each(function(i,n){
394 401
    	   			 	if(n.分类=='系统量'){
395 402
    	   			 		$('#total').text(n.数量)
@@ -398,16 +405,15 @@ $('.part2Btn').click(function() {
398 405
    	   			 	}else{
399 406
    	   			 		dataList[i]=n.分类;
400 407
    	   			 		dataScore[i]=n.数量;
401
-// 	   			 		console.log(dataList);
402 408
 						if(dataList[i]!='undefined'){
403
-	   	   			 			var html='';
404
-								html = '<li><div class="text'+i+'"></div><span>'+ dataList[i]+'</span></li>';
405
-								$('.phone_li').append(html);
406
-	   	   			 	}
409
+   	   			 			var html='';
410
+							html = '<li><div class="text'+i+'"></div><span>'+ dataList[i]+'</span></li>';
411
+							$('.phone_li').append(html);
412
+   	   			 		}
407 413
    	   			 	}
408 414
 					
409 415
 			 	})
410
-   	   			 console.log(dataList);
416
+// 	   			 console.log(dataList);
411 417
 // 	   			var html='';
412 418
 // 	   			html='<li><div class="text2"></div><span>'+ dataList[2]+'</span></li>'+
413 419
 // 	   				'<li><div class="text3"></div><span>'+ dataList[3]+'</span></li>'+