|
|
@@ -450,14 +450,15 @@ function turn(aa) {
|
|
450
|
450
|
}
|
|
451
|
451
|
});
|
|
452
|
452
|
}
|
|
453
|
|
-// $(".depart").change(function() {
|
|
454
|
|
-// keyWordDetail($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1]);
|
|
455
|
|
-// });
|
|
|
453
|
+
|
|
456
|
454
|
// 第五屏
|
|
457
|
|
- $(".areaFive").change(function() {
|
|
458
|
|
- var areaFiveVal=$(this).val();
|
|
459
|
|
- fiveScreen(areaFiveVal);
|
|
460
|
|
- });
|
|
|
455
|
+ //第五屏js
|
|
|
456
|
+ function fiveScreen(areaFiveVal,sd,ed) {
|
|
|
457
|
+ keyWord1(sd, ed,areaFiveVal);
|
|
|
458
|
+ }
|
|
|
459
|
+ $(".depart").change(function() {
|
|
|
460
|
+ keyWordDetail($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1]);
|
|
|
461
|
+ })
|
|
461
|
462
|
// 第四屏
|
|
462
|
463
|
// $(".areaFour").change(function() {
|
|
463
|
464
|
// var areaFourVal=$(this).val();
|
|
|
@@ -510,53 +511,80 @@ function turn(aa) {
|
|
510
|
511
|
}
|
|
511
|
512
|
});
|
|
512
|
513
|
}
|
|
513
|
|
-
|
|
514
|
|
- function keyWord(areaFiveVal) {
|
|
|
514
|
+ // 左侧关键词
|
|
|
515
|
+function keyWord1(sd, ed,areaFiveVal) {
|
|
515
|
516
|
$.ajax({
|
|
516
|
517
|
type: "get",
|
|
517
|
|
- url: huayi.config.callcenter_url + "info/GetKeyCountByDateNew",
|
|
|
518
|
+ url: huayi.config.callcenter_url + "info/GetKeyCountRankByDate",
|
|
518
|
519
|
async: true,
|
|
519
|
520
|
dataType: 'json',
|
|
520
|
|
- data: {
|
|
521
|
|
- // date:$('#time4').val()
|
|
522
|
|
- branchcode:areaFiveVal
|
|
|
521
|
+ data: {
|
|
|
522
|
+ start: sd,
|
|
|
523
|
+ end: ed,
|
|
|
524
|
+ branchcode:areaFiveVal
|
|
523
|
525
|
},
|
|
524
|
526
|
success: function(data) {
|
|
525
|
527
|
if(data.state.toLowerCase() == 'success') {
|
|
526
|
|
- // layer.close(index);
|
|
527
|
528
|
var con = data.data;
|
|
|
529
|
+ $(".keyW_t").text(con[0].TypeName)
|
|
528
|
530
|
$('.tagcloud').html('');
|
|
529
|
|
- // var strs='<div class="tagcloud">'
|
|
530
|
531
|
$(con).each(function(k, j) {
|
|
531
|
|
- if(k < 10) {
|
|
532
|
|
- var strs = '<div>' +
|
|
533
|
|
- '<p class="tag_title">' + j.关键字 + '</p>' +
|
|
534
|
|
- '<p class="imgs">' + j.投诉 + '</p>' +
|
|
535
|
|
- '<p class="ts_count">投诉量</p>' +
|
|
|
532
|
+ if(k < 12) {
|
|
|
533
|
+ var strs = '<div index="'+j.Id+'" class="tagcloud_bj">' +
|
|
|
534
|
+ '<p class="tag_title">' + j.TypeName + '</p>' +
|
|
|
535
|
+ '<p class="imgs">' + j.Count + '</p>' +
|
|
536
|
536
|
'</div>'
|
|
537
|
537
|
$('.tagcloud').append(strs);
|
|
538
|
538
|
}
|
|
539
|
539
|
})
|
|
540
|
|
-
|
|
|
540
|
+ $(".tagcloud div:first-child").removeClass("tagcloud_bj");
|
|
|
541
|
+ $(".tagcloud div:first-child").addClass("tagcloud_bjShine");
|
|
|
542
|
+ keyWordDetail(sd, ed);
|
|
541
|
543
|
}
|
|
|
544
|
+ }
|
|
|
545
|
+ });
|
|
|
546
|
+ }
|
|
|
547
|
+
|
|
|
548
|
+// 右侧部门
|
|
|
549
|
+function keyWordDetail(sd, ed) {
|
|
|
550
|
+ $.ajax({
|
|
|
551
|
+ type: "get",
|
|
|
552
|
+ url: huayi.config.callcenter_url + "info/GetDeptKeyCountByDateNew",
|
|
|
553
|
+ async: true,
|
|
|
554
|
+ dataType: 'json',
|
|
|
555
|
+ data: {
|
|
|
556
|
+ start: sd,
|
|
|
557
|
+ end: ed,
|
|
|
558
|
+ deptid: $('.depart').val(),
|
|
|
559
|
+ keyid: $(".tagcloud_bjShine").eq(0).attr("index")
|
|
542
|
560
|
},
|
|
543
|
|
- complete: function(XMLHttpRequest) {
|
|
544
|
|
-// setTimeout(function(){
|
|
545
|
|
- tagcloud({
|
|
546
|
|
- selector: ".tagcloud", //元素选择器
|
|
547
|
|
- fontsize: 16, //基本字体大小, 单位px
|
|
548
|
|
- radius: 150, //滚动半径, 单位px
|
|
549
|
|
- mspeed: "normal", //滚动最大速度, 取值: slow, normal(默认), fast
|
|
550
|
|
- ispeed: "normal", //滚动初速度, 取值: slow, normal(默认), fast
|
|
551
|
|
- direction: 135, //初始滚动方向, 取值角度(顺时针360): 0对应top, 90对应left, 135对应right-bottom(默认)...
|
|
552
|
|
- keep: false // 鼠标移出组件后是否继续随鼠标滚动, 取值: false, true(默认) 对应 减速至初速度滚动, 随鼠标滚动
|
|
553
|
|
-
|
|
554
|
|
- });
|
|
555
|
|
-// },100);
|
|
556
|
|
-
|
|
|
561
|
+ success: function(data) {
|
|
|
562
|
+ if(data.state.toLowerCase() == 'success') {
|
|
|
563
|
+ $('.scroll_table tbody').html('');
|
|
|
564
|
+ var con = data.data;
|
|
|
565
|
+ $(con).each(function (j, n) {
|
|
|
566
|
+ var rate = '';
|
|
|
567
|
+ if (n.rate) { rate = n.rate;}
|
|
|
568
|
+ var str = '<tr><td>' + n.deptname + '</td><td>' + n.acceptcount + '</td><td>' + rate + '</td></tr>'
|
|
|
569
|
+ $('.scroll_table tbody').append(str);
|
|
|
570
|
+ })
|
|
|
571
|
+ $(".scroll_table").Scroll({
|
|
|
572
|
+ line: 1,
|
|
|
573
|
+ speed: 500,
|
|
|
574
|
+ timer: 2000
|
|
|
575
|
+ });
|
|
|
576
|
+ }
|
|
557
|
577
|
}
|
|
558
|
578
|
});
|
|
559
|
579
|
}
|
|
|
580
|
+$(".tagcloud").on("click","div",function(){
|
|
|
581
|
+ $(".tagcloud div").addClass("tagcloud_bj");
|
|
|
582
|
+ $(".tagcloud div").removeClass("tagcloud_bjShine");
|
|
|
583
|
+ $(this).removeClass("tagcloud_bj");
|
|
|
584
|
+ $(this).addClass("tagcloud_bjShine");
|
|
|
585
|
+
|
|
|
586
|
+ keyWordDetail($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1]);
|
|
|
587
|
+});
|
|
560
|
588
|
//第五屏图表js
|
|
561
|
589
|
var huawu = echarts.init(document.getElementById('huawu_tody'));
|
|
562
|
590
|
huawu.setOption({
|