Няма описание

pieChat.js 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. // var container1 = echarts.init(document.getElementById('part1'));
  2. // var container2 = echarts.init(document.getElementById('part2'));
  3. // var container3 = echarts.init(document.getElementById('part3'));
  4. //
  5. //
  6. // // var container7 = echarts.init(document.getElementById('patt7')); //大屏六个图
  7. //
  8. // function partOne() {
  9. // $.ajax({
  10. // type: "get",
  11. // url: huayi.config.callcenter_url + "WOReport/GetChannel",
  12. // async: true,
  13. // dataType: "json",
  14. // data: {},
  15. // success: function(data) {
  16. // if(data.state.toLowerCase() == "success") {
  17. // var con = data.rows;
  18. // container1.setOption({
  19. // title: {
  20. // text: '来源渠道数据分析',
  21. // textStyle: {
  22. // //文字颜色
  23. // color: '#00e9ff',
  24. // //字体大小
  25. // fontSize: 18
  26. // },
  27. // x: 'center'
  28. // },
  29. // tooltip: {
  30. // trigger: 'axis',
  31. // axisPointer: {
  32. // type: 'cross',
  33. // label: {
  34. // show: true,
  35. // backgroundColor: '#030917'
  36. // }
  37. // }
  38. // },
  39. // legend: {
  40. // show: false
  41. // },
  42. // xAxis: {
  43. // name: '时间',
  44. // data: [
  45. // con[0].channel,
  46. // con[1].channel,
  47. // con[2].channel,
  48. // con[3].channel,
  49. // con[4].channel
  50. // ],
  51. // axisLine: {
  52. // lineStyle: {
  53. // color: '#ccc'
  54. // }
  55. // }
  56. // },
  57. // yAxis: {
  58. // name: '数量',
  59. // splitLine: {
  60. // show: false
  61. // },
  62. // axisLine: {
  63. // lineStyle: {
  64. // color: '#fff'
  65. // }
  66. // }
  67. // },
  68. // series: [{
  69. // name: '电话',
  70. // type: 'line',
  71. // data: [
  72. // con[0].Telephone,
  73. // con[1].Telephone,
  74. // con[2].Telephone,
  75. // con[3].Telephone,
  76. // con[4].Telephone
  77. // ]
  78. // },
  79. // {
  80. // name: '微信',
  81. // type: 'line',
  82. // data: [
  83. // con[0].WeChat,
  84. // con[1].WeChat,
  85. // con[2].WeChat,
  86. // con[3].WeChat,
  87. // con[4].WeChat
  88. // ]
  89. // }
  90. // ],
  91. // color: ['#61a0a9', '#cb885d']
  92. //
  93. // });
  94. //
  95. // }
  96. // }
  97. // });
  98. // }
  99. //
  100. // function partTwo() {
  101. // $.ajax({
  102. // type: "get",
  103. // url: huayi.config.callcenter_url + "WOReport/GetChannel",
  104. // async: true,
  105. // dataType: "json",
  106. // data: {
  107. // // date:
  108. // },
  109. // success: function(data) {
  110. // if(data.state.toLowerCase() == "success") {
  111. // var con = data.rows;
  112. // container2.setOption({
  113. // title: {
  114. // text: '工单即时办结',
  115. // textStyle: {
  116. // //文字颜色
  117. // color: '#00e9ff',
  118. // //字体大小
  119. // fontSize: 18
  120. // },
  121. // x: 'center'
  122. // },
  123. // color: ['#3398DB'],
  124. // tooltip: {
  125. // trigger: 'axis',
  126. // axisPointer: { // 坐标轴指示器,坐标轴触发有效
  127. // type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  128. // }
  129. // },
  130. // grid: {
  131. // left: '3%',
  132. // right: '4%',
  133. // bottom: '3%',
  134. // containLabel: true
  135. // },
  136. // xAxis: [{
  137. // type: 'category',
  138. // data: [
  139. // con[0].channel,
  140. // con[1].channel,
  141. // con[2].channel,
  142. // con[3].channel,
  143. // con[4].channel
  144. // ],
  145. // axisTick: {
  146. // alignWithLabel: true
  147. // },
  148. // axisLine: {
  149. // lineStyle: {
  150. // color: '#ccc'
  151. // }
  152. // }
  153. // }],
  154. // yAxis: [{
  155. // type: 'value',
  156. // axisLine: {
  157. // lineStyle: {
  158. // color: '#ccc'
  159. // }
  160. // }
  161. // }],
  162. // series: [{
  163. // name: '即时办结',
  164. // type: 'bar',
  165. // barWidth: '60%',
  166. // data: [
  167. // con[0].Immediate,
  168. // con[1].Immediate,
  169. // con[2].Immediate,
  170. // con[3].Immediate,
  171. // con[4].Immediate
  172. // ]
  173. // }]
  174. // });
  175. // }
  176. // }
  177. // });
  178. // }
  179. //
  180. // function partThree() {
  181. // $.ajax({
  182. // type: "get",
  183. // url: huayi.config.callcenter_url + "WOReport/GetChannel",
  184. // async: true,
  185. // dataType: "json",
  186. // data: {
  187. // // date:
  188. // },
  189. // success: function(data) {
  190. // if(data.state.toLowerCase() == "success") {
  191. // var con = data.rows;
  192. // container3.setOption({
  193. // title: {
  194. // text: '转接率图表',
  195. // textStyle: {
  196. // //文字颜色
  197. // color: '#00e9ff',
  198. // //字体大小
  199. //     fontSize: 18
  200. // },
  201. // x: 'center'
  202. // },
  203. // tooltip: {
  204. // trigger: 'item',
  205. // formatter: "{a} <br/>{b} : {c} ({d}%)"
  206. // },
  207. // legend: {
  208. // orient: 'vertical',
  209. // left: 'left'
  210. // },
  211. //
  212. // series: [{
  213. // name: '访问来源',
  214. // type: 'pie',
  215. // radius: '55%',
  216. // center: ['50%', '60%'],
  217. // data: [{
  218. // value: con[0].Transfer,
  219. // name: con[0].channel
  220. // },
  221. // {
  222. // value: con[1].Transfer,
  223. // name: con[1].channel
  224. // },
  225. // {
  226. // value: con[2].Transfer,
  227. // name: con[2].channel
  228. // },
  229. // {
  230. // value: con[3].Transfer,
  231. // name: con[3].channel
  232. // },
  233. // {
  234. // value: con[4].Transfer,
  235. // name: con[4].channel
  236. // }
  237. // ],
  238. // itemStyle: {
  239. // normal: {
  240. // color: '#159FE9',
  241. // opacity: 0.5,
  242. // },
  243. // emphasis: {
  244. // shadowBlur: 10,
  245. // shadowOffsetX: 0,
  246. // shadowColor: 'rgba(0, 0, 0, 0.5)'
  247. // }
  248. // }
  249. // }]
  250. // });
  251. // }
  252. // }
  253. // });
  254. // }
  255. //
  256. // function partFour() {
  257. // $.ajax({
  258. // type: "get",
  259. // url: huayi.config.callcenter_url + "WOReport/GetChannel",
  260. // async: true,
  261. // dataType: "json",
  262. // data: {
  263. // channel:$(".channelSel").val()
  264. // },
  265. // success: function(data) {
  266. // if(data.state.toLowerCase() == "success") {
  267. // var con = data.rows;
  268. // var option={
  269. // title: {
  270. // text: '渠道来源满意度',
  271. // x: 'left',
  272. // textStyle: {
  273. // //文字颜色
  274. // color: '#00e9ff',
  275. // //字体大小
  276. //     fontSize: 18
  277. // }
  278. // },
  279. // tooltip: {
  280. // trigger: 'item',
  281. // formatter: "{a} <br/>{b} : {c} ({d}%)"
  282. // },
  283. // legend: {
  284. // orient: 'vertical',
  285. // left: 'left'
  286. // },
  287. // series: [{
  288. // name: '访问来源',
  289. // type: 'pie',
  290. // radius: '55%',
  291. // center: ['50%', '60%'],
  292. // data: [{
  293. // value: con[0].Verysatisfied,
  294. // name: '非常满意'
  295. // },
  296. // {
  297. // value: con[0].Satisfaction,
  298. // name: '满意'
  299. // },
  300. // {
  301. // value: con[0].Commonly,
  302. // name: '一般'
  303. // },
  304. // {
  305. // value: con[0].Unsatisfactory,
  306. // name: '不满意'
  307. // }
  308. // ],
  309. // itemStyle: {
  310. // normal: {
  311. // color: '#159FE9',
  312. // opacity: 0.5,
  313. // },
  314. // emphasis: {
  315. // shadowBlur: 10,
  316. // shadowOffsetX: 0,
  317. // shadowColor: 'rgba(0, 0, 0, 0.5)'
  318. // }
  319. // }
  320. // }]
  321. // }
  322. //
  323. // echartsPie = echarts.init(document.getElementById('part4'));
  324. // echartsPie.setOption(option);
  325. // //var container4 = echarts.init(document.getElementById('part4'));
  326. // }
  327. // }
  328. // });
  329. // }
  330. //
  331. //
  332. // // 第四屏
  333. // // function partpaat() {
  334. // // $.ajax({
  335. // // type: "get",
  336. // // url: huayi.config.callcenter_url + "WOReport/GetChannel",
  337. // // async: true,
  338. // // dataType: "json",
  339. // // data: {},
  340. // // success: function(data) {
  341. // // if(data.state.toLowerCase() == "success") {
  342. // // var con = data.rows;
  343. // // container7.setOption({
  344. // // title: {
  345. // // text: '来源渠道数据分析',
  346. // // textStyle: {
  347. // // //文字颜色
  348. // // color: '#00e9ff',
  349. // // //字体大小
  350. // // fontSize: 18
  351. // // },
  352. // // x: 'center'
  353. // // },
  354. // // tooltip: {
  355. // // trigger: 'axis',
  356. // // axisPointer: {
  357. // // type: 'cross',
  358. // // label: {
  359. // // show: true,
  360. // // backgroundColor: '#030917'
  361. // // }
  362. // // }
  363. // // },
  364. // // legend: {
  365. // // show: false
  366. // // },
  367. // // xAxis: {
  368. // // name: '时间',
  369. // // data: [
  370. // // con[0].channel,
  371. // // con[1].channel,
  372. // // con[2].channel,
  373. // // con[3].channel,
  374. // // con[4].channel
  375. // // ],
  376. // // axisLine: {
  377. // // lineStyle: {
  378. // // color: '#ccc'
  379. // // }
  380. // // }
  381. // // },
  382. // // yAxis: {
  383. // // name: '数量',
  384. // // splitLine: {
  385. // // show: false
  386. // // },
  387. // // axisLine: {
  388. // // lineStyle: {
  389. // // color: '#fff'
  390. // // }
  391. // // }
  392. // // },
  393. // // series: [{
  394. // // name: '电话',
  395. // // type: 'bar',
  396. // // barWidth:20,
  397. // // data: [
  398. // // con[0].Telephone,
  399. // // con[1].Telephone,
  400. // // con[2].Telephone,
  401. // // con[3].Telephone,
  402. // // con[4].Telephone
  403. // // ]
  404. // // },
  405. // // {
  406. // // name: '微信',
  407. // // type: 'line',
  408. // // data: [
  409. // // con[0].WeChat,
  410. // // con[1].WeChat,
  411. // // con[2].WeChat,
  412. // // con[3].WeChat,
  413. // // con[4].WeChat
  414. // // ]
  415. // // },
  416. // // {
  417. // // type: 'pie',
  418. // // id: 'pie',
  419. // // radius: '40%',
  420. // // center: ['60%', '30%'],
  421. // // label: {
  422. // // formatter: '{b}: {@2012} ({d}%)'
  423. // // },
  424. // // encode: {
  425. // // itemName: 'product',
  426. // // value: '2012',
  427. // // tooltip: '2012'
  428. // // }
  429. // // }
  430. // // ],
  431. // // color: ['#61a0a9', '#cb885d']
  432. // //
  433. // // });
  434. // //
  435. // // }
  436. // // }
  437. // // });
  438. // // }