Нет описания

operationEvent.js 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //话务点击
  2. $('#secondCut').change(function(){
  3. getworkOrder()
  4. });
  5. $('.dataAct').click(function () {
  6. var indexTitle = $(this).attr('indexTitle')
  7. if($(this).attr('data-pos') == '1'){
  8. $(this).children(".day").addClass('active');
  9. $(this).siblings("label").children('.month').removeClass('active');
  10. console.log($(this).attr('indexTitle'))
  11. if(indexTitle=="话务数据统计1"){
  12. console.log("日-话务数据统计1")
  13. telCountByNowType = 0
  14. getworkOrder()
  15. }else if(indexTitle=="话务数据统计2"){
  16. console.log("日-话务数据统计2")
  17. getHWCount24() //话务数据统计 日
  18. }else if(indexTitle=="热线整合受理情况"){
  19. console.log("日-热线整合受理情况")
  20. hotlineDataType = 0
  21. getHotline()
  22. }else if(indexTitle=="来电监测"){
  23. console.log("日-来电监测")
  24. MajoreventsDataType = 0
  25. getHotThings()
  26. }else if(indexTitle=="高频事项"){
  27. keyCountDataType = 0
  28. $('#gpsxDataAct').val('1');
  29. getKeyWord()
  30. console.log("日-高频事项")
  31. }else if(indexTitle=="工单类型"){
  32. console.log("日-工单类型")
  33. typeCountDataType = 0
  34. getworkOrder()
  35. } else if (indexTitle=="工单列表") {
  36. $('#isresult').val('0');
  37. initTable();
  38. }
  39. trafficState = 0;
  40. } else if ($(this).attr('data-pos') == '2') {
  41. $(this).children('.month').addClass('active')
  42. $(this).siblings("label").children('.day').removeClass('active');
  43. console.log($(this).attr('indexTitle'))
  44. if(indexTitle=="话务数据统计1"){
  45. telCountByNowType = 1
  46. getworkOrder()
  47. }else if(indexTitle=="话务数据统计2"){
  48. getHWCountMonth() ////话务数据统计 月
  49. }else if(indexTitle=="热线整合受理情况"){
  50. hotlineDataType = 1
  51. getHotline()
  52. }else if(indexTitle=="来电监测"){
  53. MajoreventsDataType = 1
  54. getHotThings()
  55. }else if(indexTitle=="高频事项"){
  56. $('#gpsxDataAct').val('2');
  57. keyCountDataType = 1
  58. getKeyWord()
  59. }else if(indexTitle=="工单类型"){
  60. typeCountDataType = 1
  61. getworkOrder()
  62. } else if (indexTitle=="工单列表") {
  63. $('#isresult').val('1');
  64. initTable();
  65. }
  66. trafficState = 1;
  67. }
  68. })
  69. //话务数据统计 日
  70. function getHWCount24(){
  71. new doAjax({
  72. url: huayi.config.callcenter_url + "InfoNew/GetHWCount24ByNow",
  73. data: {
  74. token: $.cookie("token"),
  75. },
  76. callBack: function (res) {
  77. trafficChart(res.data.hours, res.data.hwcount[0], res.data.jtcount[0])
  78. }
  79. });
  80. }
  81. //话务数据统计 月
  82. function getHWCountMonth(){
  83. new doAjax({
  84. url: huayi.config.callcenter_url + "InfoNew/GetHWCountMonthByNow",
  85. data: {
  86. token: $.cookie("token"),
  87. },
  88. callBack: function (res) {
  89. trafficChart(res.data.days, res.data.hwcount[0], res.data.jtcount[0])
  90. }
  91. });
  92. }