呼叫中心信息公示平台

zhongxin.js 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. angular.module('zhongxin', [])
  2. .controller('zhongxinCorl', ['$scope', '$http', function($scope, $http) {
  3. // $(window).resize(function() {
  4. // var width_frm = $(document.body).width();
  5. // var height_frm = $(document.body).height();
  6. // var width_div = width_frm / 2;
  7. // var height_div = height_frm / 2;
  8. // $('#th_nums').css("height", height_div);
  9. // $('#th_num').css("height", height_div);
  10. // $('#jtv_num').css("height", height_div);
  11. // });
  12. $('#slhw').highcharts({
  13. chart: {
  14. type: 'pie',
  15. backgroundColor: '#100e11',
  16. options3d: {
  17. enabled: true,
  18. alpha: 45,
  19. beta: 0
  20. }
  21. },
  22. title: {
  23. text: '受理渠道话务量',
  24. style: {
  25. color: '#fff',
  26. }
  27. },
  28. //LOGO 去掉
  29. credits: {
  30. enabled: false
  31. },
  32. tooltip: {
  33. pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  34. },
  35. plotOptions: {
  36. pie: {
  37. allowPointSelect: true,
  38. cursor: 'pointer',
  39. depth: 35,
  40. dataLabels: {
  41. enabled: true,
  42. format: '<b style="font-size:14px; ">{point.name}</b>: <b>{point.percentage:.1f}%</b>'
  43. }
  44. }
  45. },
  46. series: [{
  47. type: 'pie',
  48. name: '受理渠道话务量',
  49. data: [
  50. ['电话', 45.0],
  51. ['网站门户', 26.8],
  52. {
  53. name: 'APP',
  54. y: 12.8,
  55. sliced: true,
  56. selected: true
  57. },
  58. ['微信', 8.5],
  59. ['短信', 6.2],
  60. ['微博', 0.7],
  61. ['邮件', 10.5],
  62. ]
  63. }]
  64. });
  65. //通话数量
  66. $('#th_num').highcharts({
  67. chart: {
  68. type: 'line',
  69. backgroundColor: '#100e11'
  70. },
  71. title: {
  72. text: '通话数量统计',
  73. style: {
  74. color: '#fff',
  75. }
  76. },
  77. legend: {
  78. align: 'right',
  79. verticalAlign: 'top',
  80. x: 0,
  81. y: 50
  82. },
  83. //LOGO 去掉
  84. credits: {
  85. enabled: false
  86. },
  87. xAxis: {
  88. categories: [
  89. '1',
  90. '2',
  91. '3',
  92. '4',
  93. '5',
  94. '6',
  95. '7',
  96. '8',
  97. '9',
  98. '10',
  99. '11',
  100. '12',
  101. '13',
  102. '14',
  103. '15',
  104. '16',
  105. '17',
  106. '18',
  107. '19',
  108. '20',
  109. '21',
  110. '22',
  111. '23',
  112. '24',
  113. ],
  114. title: {
  115. text: '时间',
  116. align: 'high',
  117. rotation:0,
  118. y: -50
  119. }
  120. },
  121. yAxis: {
  122. gridLineColor: '#100e11',
  123. title: {
  124. text: '数量',
  125. rotation: 0,
  126. y: -160
  127. }
  128. },
  129. plotOptions: {
  130. line: {
  131. dataLabels: {
  132. enabled: true // 开启数据标签
  133. },
  134. enableMouseTracking: false // 关闭鼠标跟踪,对应的提示框、点击事件会失效
  135. }
  136. },
  137. series: [{
  138. name: '咨询类',
  139. data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
  140. }, {
  141. name: '投诉类',
  142. data: [3.9, 4.2, 5.7, 8.5, 11, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
  143. }, {
  144. name: '来电举报类',
  145. data: [3.9, 5, 8, 8, 11, 8, 3, 16, 14, 10, 6, 4]
  146. }, {
  147. name: '建议类',
  148. data: [8, 4, 5, 8, 11, 15, 17, 16, 14, 10, 6, 4]
  149. }]
  150. });
  151. //接通率报表
  152. var jtv = echarts.init(document.getElementById('jtv_num'));
  153. option = {
  154. title: {
  155. text: '接通率统计',
  156. x: 'center',
  157. textStyle: {
  158. color: '#fff',
  159. fontSize: 16
  160. }
  161. },
  162. tooltip: {
  163. trigger: 'axis',
  164. axisPointer: {
  165. type: 'shadow',
  166. label: {
  167. show: true,
  168. backgroundColor: '#333'
  169. }
  170. }
  171. },
  172. legend: {
  173. top: 30,
  174. data: ['接通量', '挂断量','未接量'],
  175. textStyle: {
  176. color: '#ccc'
  177. }
  178. },
  179. xAxis: {
  180. data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],
  181. axisLine: {
  182. lineStyle: {
  183. color: '#ccc'
  184. }
  185. },
  186. },
  187. yAxis: {
  188. splitLine: { show: false },
  189. axisLine: {
  190. lineStyle: {
  191. color: '#ccc'
  192. }
  193. }
  194. },
  195. series: [{
  196. name: '挂断量',
  197. type: 'line',
  198. smooth: true,
  199. showAllSymbol: true,
  200. symbol: 'emptyCircle',
  201. symbolSize: 15,
  202. data: [10, 15, 40, 44, 30, 50, 80, 62, 55, 32,40,45,48,50,55,80,88,55,45,20,15,10,40,10]
  203. }, {
  204. name: '接通量',
  205. type: 'bar',
  206. barWidth: 10,
  207. itemStyle: {
  208. normal: {
  209. barBorderRadius: 5,
  210. color: new echarts.graphic.LinearGradient(
  211. 0, 0, 0, 1, [
  212. { offset: 0, color: '#14c8d4' },
  213. { offset: 1, color: '#43eec6' }
  214. ]
  215. )
  216. }
  217. },
  218. data: [20, 33, 80, 14, 60, 42, 99, 22, 36, 19,25,30,45,80,65,55,42,50,55,66,36,23,20,21]
  219. }]
  220. };
  221. jtv.setOption(option);
  222. //通话时长
  223. var chart = new Highcharts.Chart('th_nums', {
  224. chart: {
  225. backgroundColor: '#100e11'
  226. },
  227. title: {
  228. text: '平均通话时长统计',
  229. style: {
  230. color: '#fff',
  231. }
  232. },
  233. //LOGO 去掉
  234. credits: {
  235. enabled: false
  236. },
  237. xAxis: {
  238. categories: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
  239. },
  240. yAxis: {
  241. title: {
  242. rotation: 0,
  243. y: -170,
  244. text: '小时'
  245. },
  246. plotLines: [{
  247. value: 0,
  248. width: 1,
  249. color: '#808080'
  250. }]
  251. },
  252. tooltip: {
  253. valueSuffix: 'h'
  254. },
  255. legend: {
  256. align: 'right',
  257. verticalAlign: 'top',
  258. x: 0,
  259. y: 50
  260. },
  261. series: [{
  262. name: '平均通话时长统计',
  263. data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
  264. }]
  265. });
  266. }]);