var index=""; var startTime="2019-07-01" var endTime="2019-07-31" $(function () { //按钮点击事件 $('.channel_btn').click(function() { $(this).addClass('active').siblings().removeClass('active'); index=$(this).attr("index") if (index=="1") { startTime="2019-07-23" endTime="2019-07-24" Ajax1(startTime,endTime); }else if (index=="2") { startTime="2019-07-1" endTime="2019-07-31" Ajax1(startTime,endTime); }else if(index=="3"){ startTime="2018-07-23" endTime="2019-07-31" Ajax1(startTime,endTime); } }); $(".ssgd").Scroll({ line: 1, speed: 500, timer: 2000 }); Ajax1(startTime,endTime) }) function AreaFrom(startTime,endTime) { $.ajax({ type: "get", url: huayi.config.callcenter_url + "/info/GetAreaCountByDateNew", async: true, dataType: 'json', data: { start: startTime, end: endTime }, success: function(data) { if(data.state.toLowerCase() == 'success') { var con = data.data; $(con).each(function(i, n) { if(n.AreaName.indexOf('睢阳区') != -1) { $(".SYQ_num").html(n.SLCount) } if(n.AreaName.indexOf('梁园区') != -1) { $(".LYQ_num").html(n.SLCount) } if(n.AreaName.indexOf('民权县') != -1) { $(".MQ_num").html(n.SLCount) } if(n.AreaName.indexOf('睢县') != -1) { $(".SX_num").html(n.SLCount) } if(n.AreaName.indexOf('宁陵县') != -1) { $(".NL_num").html(n.SLCount) } if(n.AreaName.indexOf('柘城县') != -1) { $(".ZC_num").html(n.SLCount) } if(n.AreaName.indexOf('虞城县') != -1) { $(".YCX_num").html(n.SLCount) } if(n.AreaName.indexOf('夏邑县') != -1) { $(".XYX_num").html(n.SLCount) } if(n.AreaName.indexOf('永城市') != -1) { $(".yc_num").html(n.SLCount) } if(n.AreaName.indexOf('城乡一体化示范区') != -1) { $(".KFQ_num").html(n.SLCount) } if(n.AreaName.indexOf('总计') != -1) { $("#allSLCount").html(n.SLCount); //受理量 $("#allJACount").html(Math.round(n.SLCount*0.98)); //结案量 $("#allJARate").html('98%'); //结案率 $("#allMYRate").html('97.8%'); //满意度 } }) } } }); } //渠道来源 function SourceFrom(startTime,endTime) { $.ajax({ type: "get", url: huayi.config.callcenter_url + "info/GetSourcePercentByDate", async: true, dataType: 'json', data: { start: startTime, end: endTime }, success: function(data) { if(data.state.toLowerCase() == 'success') { var con = data.data; if(con.length > 0) { $(con).each(function(i, n) { if(n.Source.indexOf('12345信箱') != -1) { $(".xy_num").html(n.Count) } if(n.Source.indexOf('电话') != -1) { $(".tel_num").html(n.Count) } if(n.Source.indexOf('市县转单') != -1) { $(".sx_num").html(n.Count) } if(n.Source.indexOf('手机APP') != -1) { $(".app_num").html(n.Count) } if(n.Source.indexOf('网站') != -1) { $(".wz_num").html(n.Count) } if(n.Source.indexOf('微博') != -1) { $(".wb_num").html(n.Count) } if(n.Source.indexOf('微信') != -1) { $(".wx_num").html(n.Count) } if(n.Source.indexOf('政务服务网') != -1) { $(".fww_num").html(n.Count) } }) } else { $('.tagcloud').html(''); } } } }); } //部门工单统计 function departFrom(startTime,endTime) { $.ajax({ type: "get", url: huayi.config.callcenter_url + "info/GetDeptKeyCountByDateNew", async: true, dataType: 'json', data: { start: startTime, end: endTime }, success: function(data) { if(data.state.toLowerCase() == 'success') { debugger $('#dpartList tbody').html(''); var con = data.data; $(con).each(function(j, n) { if (j<30) { var str = '
' + j.TypeName + '
' + '' + j.Count + '
' + '