Нет описания

operationEvent.js 3.0KB

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