| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- //话务点击
- $('#secondCut').change(function(){
- getworkOrder()
- });
- $('.dataAct').click(function () {
- var indexTitle = $(this).attr('indexTitle')
- if($(this).attr('data-pos') == '1'){
- $(this).children(".day").addClass('active');
- $(this).siblings("label").children('.month').removeClass('active');
- console.log($(this).attr('indexTitle'))
- if(indexTitle=="话务数据统计1"){
- console.log("日-话务数据统计1")
- telCountByNowType = 0
- getworkOrder()
- }else if(indexTitle=="话务数据统计2"){
- console.log("日-话务数据统计2")
- getHWCount24() //话务数据统计 日
- }else if(indexTitle=="热线整合受理情况"){
- console.log("日-热线整合受理情况")
- hotlineDataType = 0
- getHotline()
- }else if(indexTitle=="来电监测"){
- console.log("日-来电监测")
- MajoreventsDataType = 0
- getHotThings()
- }else if(indexTitle=="高频事项"){
- keyCountDataType = 0
- $('#gpsxDataAct').val('1');
- getKeyWord()
- console.log("日-高频事项")
- }else if(indexTitle=="工单类型"){
- console.log("日-工单类型")
- typeCountDataType = 0
- getworkOrder()
- } else if (indexTitle=="工单列表") {
- $('#isresult').val('0');
- initTable();
- }
- trafficState = 0;
- } else if ($(this).attr('data-pos') == '2') {
- $(this).children('.month').addClass('active')
- $(this).siblings("label").children('.day').removeClass('active');
- console.log($(this).attr('indexTitle'))
- if(indexTitle=="话务数据统计1"){
- telCountByNowType = 1
- getworkOrder()
- }else if(indexTitle=="话务数据统计2"){
- getHWCountMonth() ////话务数据统计 月
- }else if(indexTitle=="热线整合受理情况"){
- hotlineDataType = 1
- getHotline()
- }else if(indexTitle=="来电监测"){
- MajoreventsDataType = 1
- getHotThings()
- }else if(indexTitle=="高频事项"){
- $('#gpsxDataAct').val('2');
- keyCountDataType = 1
- getKeyWord()
- }else if(indexTitle=="工单类型"){
- typeCountDataType = 1
- getworkOrder()
- } else if (indexTitle=="工单列表") {
- $('#isresult').val('1');
- initTable();
- }
- trafficState = 1;
- }
- })
-
- //话务数据统计 日
- function getHWCount24(){
- new doAjax({
- url: huayi.config.callcenter_url + "InfoNew/GetHWCount24ByNow",
- data: {
- token: $.cookie("token"),
- },
- callBack: function (res) {
- trafficChart(res.data.hours, res.data.hwcount[0], res.data.jtcount[0])
- }
- });
- }
-
- //话务数据统计 月
- function getHWCountMonth(){
- new doAjax({
- url: huayi.config.callcenter_url + "InfoNew/GetHWCountMonthByNow",
- data: {
- token: $.cookie("token"),
- },
- callBack: function (res) {
- trafficChart(res.data.days, res.data.hwcount[0], res.data.jtcount[0])
- }
- });
- }
|