永城市12345 (县级市)- 来源于虞城县12345 - 所有县级统一API

TelGraphical.html 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>话务统计报表</title>
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <style>
  10. * {
  11. font-family: "微软雅黑";
  12. }
  13. @font-face {
  14. font-family: 'iconfont';
  15. /* project id 280843 */
  16. src: url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.eot');
  17. src: url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.eot?#iefix') format('embedded-opentype'), url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.woff') format('woff'), url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.ttf') format('truetype'), url('//at.alicdn.com/t/font_280843_jcy5ehwi2vxtj4i.svg#iconfont') format('svg');
  18. }
  19. .iconfont {
  20. font-family: "iconfont";
  21. font-size: 25px;
  22. font-style: normal;
  23. }
  24. .fl {
  25. float: left;
  26. }
  27. .fr {
  28. float: right;
  29. }
  30. .bc {
  31. background-color: #fefefe;
  32. border: 1px solid #EBEBEB;
  33. border-radius: 5px;
  34. padding: 25px 20px;
  35. }
  36. .size-14 {
  37. font-size: 14px;
  38. font-weight: normal;
  39. }
  40. .ba {
  41. background-color: #F5F5F5;
  42. border: 2px solid #EBEBEB;
  43. padding: 0px;
  44. }
  45. .left_box {
  46. background-color: #FFFFFF;
  47. }
  48. .rows {
  49. display: -webkit-box;
  50. }
  51. .lazur {
  52. color: #23c6c8;
  53. }
  54. .bottom_line {
  55. border-bottom: 2px solid #CCCCCC;
  56. }
  57. .clear {
  58. margin: 0;
  59. padding: 0;
  60. margin-top: 2%;
  61. }
  62. .widgets {
  63. padding: 15px 0px;
  64. margin-bottom: 25px;
  65. }
  66. /*.ss{
  67. background: url(img/huan.png) no-repeat;
  68. background-size: contain;
  69. background-position: center;
  70. margin-left: 20px;
  71. }*/
  72. .fenxian {
  73. border: 2px solid #CCCCCC;
  74. margin-bottom: 10px;
  75. display: inherit;
  76. position: absolute;
  77. width: 100%;
  78. TOP: 50%;
  79. }
  80. .left1 {
  81. LEFT: 15px;
  82. }
  83. .left2 {
  84. right: 15px;
  85. }
  86. .rowTitle {
  87. position: absolute;
  88. font-size: 16px;
  89. top: 40px;
  90. left: 45px;
  91. font-weight: 800;
  92. padding-bottom: 10px;
  93. border-bottom: 2px solid #CCCCCC;
  94. letter-spacing: 4px;
  95. }
  96. .num_box {
  97. background-color: #fefefe;
  98. border: 1px solid #EBEBEB;
  99. border-radius: 5px;
  100. margin-top: 10px;
  101. -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  102. height: 318px;
  103. }
  104. .size-16 {
  105. font-size: 16px !important;
  106. }
  107. .size-14 {
  108. font-size: 14px !important;
  109. }
  110. .size-15 {
  111. font-size: 15px !important;
  112. }
  113. .size-12 {
  114. font-size: 12px !important;
  115. }
  116. .min_bottom {
  117. margin-bottom: 5px !important;
  118. }
  119. .fa-4x {
  120. font-size: 3em;
  121. color: #FFFFFF;
  122. background-color: #67cdcb;
  123. padding: 10px;
  124. border-radius: 5px;
  125. }
  126. .bg_green {
  127. background: -webkit-linear-gradient(left, #accafd, #b8dcfc);
  128. background: -moz-linear-gradient(left, #accafd, #b8dcfc);
  129. background: -o-linear-gradient(left, #accafd, #b8dcfc);
  130. background: -webkit-gradient(linear, 100% 0, 0 0, from(#b8dcfc), to(#accafd));
  131. background: linear-gradient(left, #accafd, #b8dcfc);
  132. /* Opera 11.1 - 12.0 */
  133. /* Firefox 3.6 - 15 */
  134. /* 标准的语法 */
  135. }
  136. .bg_blue {
  137. /* Safari 5.1 - 6.0 */
  138. background: -webkit-linear-gradient(left, #f26997, #f080ce);
  139. background: -moz-linear-gradient(left, #f26997, #f080ce);
  140. background: -o-linear-gradient(left, #f26997, #f080ce);
  141. background: -webkit-gradient(linear, 100% 0, 0 0, from(#f080ce), to(#f26997));
  142. background: linear-gradient(left, #f26997, #f080ce);
  143. /* Opera 11.1 - 12.0 */
  144. /* Firefox 3.6 - 15 */
  145. /* 标准的语法 */
  146. }
  147. .bg_red {
  148. background: -webkit-linear-gradient(left, #fbc356, #fa9182);
  149. background: -moz-linear-gradient(left, #fbc356, #fa9182);
  150. background: -o-linear-gradient(left, #fbc356, #fa9182);
  151. background: -webkit-gradient(linear, 100% 0, 0 0, from(#fa9182), to(#fbc356));
  152. background: linear-gradient(left, #fbc356, #fa9182);
  153. /* Opera 11.1 - 12.0 */
  154. /* Firefox 3.6 - 15 */
  155. /* 标准的语法 */
  156. }
  157. .bg_black {
  158. background: -webkit-linear-gradient(left, #88eec0, #8bdedd);
  159. background: -moz-linear-gradient(left, #88eec0, #8bdedd);
  160. background: -o-linear-gradient(left, #88eec0, #8bdedd);
  161. background: -webkit-gradient(linear, 100% 0, 0 0, from(#8bdedd), to(#88eec0));
  162. background: linear-gradient(left, #88eec0, #8bdedd);
  163. /* Opera 11.1 - 12.0 */
  164. /* Firefox 3.6 - 15 */
  165. /* 标准的语法 */
  166. }
  167. .bg_wj {
  168. background: -webkit-linear-gradient(left, #6c77da, #7351ac);
  169. background: -moz-linear-gradient(left, #6c77da, #7351ac);
  170. background: -o-linear-gradient(left, #6c77da, #7351ac);
  171. background: -webkit-gradient(linear, 100% 0, 0 0, from(#7351ac), to(#6c77da));
  172. background: linear-gradient(left, #6c77da, #7351ac);
  173. /* Opera 11.1 - 12.0 */
  174. /* Firefox 3.6 - 15 */
  175. /* 标准的语法 */
  176. }
  177. .jg {
  178. letter-spacing: 2px;
  179. margin-top: -3px;
  180. font-weight: bolder;
  181. }
  182. .mt {
  183. margin-top: 10px;
  184. }
  185. .ibox-content {
  186. padding: 20px 20px 95px;
  187. background-color: #fefefe;
  188. border: 1px solid #EBEBEB;
  189. border-radius: 5px;
  190. -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  191. box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  192. }
  193. .size-20 {
  194. font-size: 20px;
  195. color: #4078ad;
  196. }
  197. .border_top {
  198. border-top: none;
  199. }
  200. /*.margin-tops{
  201. margin-top:-50px;
  202. }*/
  203. .padding-left-min {
  204. padding-left: 0;
  205. padding-top: 5px;
  206. }
  207. .mins-left {
  208. padding-left: 30px;
  209. padding-right: 0;
  210. }
  211. .widget h2,
  212. .widget h3 {
  213. margin-top: 0px;
  214. }
  215. .col-sm-2 {
  216. width: 20%;
  217. }
  218. .col-sm-4 {
  219. width: 30%;
  220. }
  221. .min_right {
  222. margin-right: 15px;
  223. }
  224. .col-xs-3 {
  225. padding-left: 5px;
  226. }
  227. .huan {
  228. background: url(./img/huan.png)no-repeat;
  229. }
  230. .min-padding {
  231. padding-bottom: 10px;
  232. padding-top: 10px;
  233. border-bottom-width: 1px;
  234. border-radius: 5px !important;
  235. padding-left: 10px;
  236. padding-right: 5px;
  237. }
  238. .progress {
  239. height: 5px;
  240. background-color: #CCCCCC;
  241. }
  242. .progress-bar-ff {
  243. background-color: #FFF;
  244. }
  245. .ff {
  246. color: #FFFFFF;
  247. }
  248. .c-bottom {
  249. margin-top: 5px;
  250. }
  251. .bg-purple {
  252. background: -ms-linear-gradient(right, #ea76dd, #8a9cf4);
  253. background: -webkit-gradient(linear, 100% 0, 0 0, from(#ea76dd), to(#8a9cf4));
  254. background: -webkit-linear-gradient(right, #ea76dd, #8a9cf4);
  255. background: -moz-linear-gradient(right, #ea76dd, #8a9cf4);
  256. background: -o-linear-gradient(right, #ea76dd, #8a9cf4);
  257. background: linear-gradient(right, #ea76dd, #8a9cf4);
  258. background: #ea76dd;
  259. /* Opera 11.1 - 12.0 */
  260. /* Firefox 3.6 - 15 */
  261. /* 标准的语法 */
  262. }
  263. .bg-blues {
  264. background: -ms-linear-gradient(right, #67aefe, #67aefe);
  265. background: -webkit-linear-gradient(right, #67aefe, #67aefe);
  266. background: -moz-linear-gradient(right, #67aefe, #7bd7fe);
  267. background: -o-linear-gradient(right, #67aefe, #7bd7fe);
  268. background: -webkit-gradient(linear, 100% 0, 0 0, from(#67aefe), to(#7bd7fe));
  269. background: linear-gradient(right, #67aefe, #7bd7fe);
  270. background: #67aefe;
  271. /* Opera 11.1 - 12.0 */
  272. /* Firefox 3.6 - 15 */
  273. /* 标准的语法 */
  274. }
  275. .bg-yellow {
  276. background: -ms-linear-gradient(right, #f95a84, #f86953);
  277. background: -webkit-linear-gradient(right, #f95a84, #f86953);
  278. background: -moz-linear-gradient(right, #f95a84, #f86953);
  279. background: -o-linear-gradient(right, #f95a84, #f86953);
  280. background: -webkit-gradient(linear, 100% 0, 0 0, from(#f95a84), to(#f86953));
  281. background: linear-gradient(right, #f95a84, #f86953);
  282. background: #f95a84;
  283. /* Opera 11.1 - 12.0 */
  284. /* Firefox 3.6 - 15 */
  285. /* 标准的语法 */
  286. }
  287. /*.p-xl{
  288. border-width: 5px;
  289. border-style: solid;
  290. border-color: #69cbd0 #69cbd0 #be8bd6 #47bde3 ;
  291. border-radius: 50%;
  292. }*/
  293. .c-bottom {
  294. width: 29%;
  295. overflow: hidden;
  296. margin-right: 5px;
  297. float: left;
  298. }
  299. .c-bottom ul {
  300. overflow: hidden;
  301. width: 100%;
  302. padding-left: 0px;
  303. list-style: none;
  304. margin-top: 3px;
  305. cursor: pointer;
  306. }
  307. .Text {
  308. width: 100%;
  309. padding-bottom: 30px;
  310. position: relative;
  311. }
  312. .c-b-ul {
  313. list-style: none;
  314. padding-left: 0;
  315. }
  316. .c-b-ul span {
  317. position: absolute;
  318. left: 20px;
  319. top: 62px;
  320. font-weight: 600;
  321. font-size: 15px;
  322. color: #676a6c;
  323. }
  324. .c-b-ul #jrdwcl {
  325. top: 112px;
  326. }
  327. .c-b-ul #dydwcl {
  328. top: 162px;
  329. }
  330. .Announcement_title span {
  331. font-size: 16px;
  332. font-weight: 800;
  333. line-height: 80px;
  334. }
  335. .Announcement_title {
  336. border-bottom: 1px solid #e7eaec;
  337. }
  338. .rl {
  339. float: right;
  340. }
  341. .Announcement_common {
  342. font-size: 14px;
  343. }
  344. .At_time {
  345. padding-right: 25px;
  346. }
  347. .Announcement_common li {
  348. border-bottom: 1px solid #ccc;
  349. }
  350. .Announcement_common li a:hover {
  351. color: #00a1cb;
  352. }
  353. .new_title {
  354. height: 100%;
  355. line-height: 30px;
  356. padding: 0 15px;
  357. }
  358. .new_title h1 {
  359. margin: 0;
  360. padding: 0;
  361. font-weight: normal;
  362. line-height: 30px;
  363. white-space: nowrap;
  364. overflow: hidden;
  365. text-overflow: ellipsis;
  366. text-align: center;
  367. }
  368. .new_list li {
  369. height: 30px;
  370. }
  371. li {
  372. list-style-type: none;
  373. }
  374. .new_title a {
  375. color: #000;
  376. display: block;
  377. width: 100%;
  378. color: #666;
  379. white-space: nowrap;
  380. overflow: hidden;
  381. text-overflow: ellipsis;
  382. }
  383. .s-14 {
  384. font-size: 14px;
  385. }
  386. .new_title em {
  387. font-style: normal;
  388. }
  389. .Widths {
  390. width: 50%;
  391. margin-top: 8%;
  392. }
  393. .BackC {
  394. background-color: #e7eaec;
  395. }
  396. .Colors {
  397. color: #6c77da;
  398. }
  399. .Nums_ul li {
  400. width: 25%;
  401. float: left;
  402. font-size: 18px;
  403. }
  404. .Tops {
  405. line-height: 50px;
  406. background-color: #fefefe;
  407. border: 1px solid #EBEBEB;
  408. border-radius: 5px;
  409. }
  410. .SLs {
  411. font-size: 18px;
  412. }
  413. .Red {
  414. color: #e43926;
  415. }
  416. </style>
  417. </head>
  418. <body class="gray-bg">
  419. <div class="wrapper wrapper-content animated fadeInRight">
  420. <div class="row" style="margin-bottom: 20px;">
  421. <div class="col-sm-12 LIST_ Tops" style="margin:0 15px ;width: 98.2%;">
  422. <div class="col-md-2 " style="text-align: center; font-size: 20px;">
  423. <span>年度诉求</span>
  424. </div>
  425. <div class="col-md-10 ">
  426. <ul class="Nums_ul">
  427. <li>
  428. <span class="">受理总量: <span class="zslcount Red"></span></span>
  429. </li>
  430. <li>
  431. <span>未转交数: <span class="wjbcount Red"></span></span>
  432. </li>
  433. <li>
  434. <span>正在办理: <span class='blzcount Red'></span></span>
  435. </li>
  436. <li>
  437. <span>办理完结: <span class="yblcount Red"></span></span>
  438. </li>
  439. </ul>
  440. </div>
  441. </div>
  442. </div>
  443. <div class="row" style="margin-bottom: 20px;">
  444. <div class="col-sm-12 LIST_ Tops" style="margin:0 15px ;width: 98.2%;">
  445. <div class="col-md-2 " style="text-align: center; font-size: 20px;">
  446. <span>今日受理</span>
  447. </div>
  448. <div class="col-md-10 ">
  449. <ul class="Nums_ul SLs">
  450. </ul>
  451. </div>
  452. </div>
  453. </div>
  454. <div class="row" style="margin-bottom: 20px;">
  455. <div class="col-sm-4 LIST_">
  456. <div class="left_box rows num_box">
  457. <div class="Announcement_box" style="width: 100%;">
  458. <div class="Announcement_title clearfix">
  459. <span style="padding-left: 25px;">当日话务统计</span>
  460. </div>
  461. <div class="Announcement_common">
  462. <ul style="padding: 0;" class="Ann">
  463. <li>
  464. <div class="new_title clearfix">
  465. <h1 class=" s-14">
  466. <span >总呼入量:<span class="Colors"></span></span>
  467. </h1>
  468. </div>
  469. </li>
  470. <li class="BackC">
  471. <div class="new_title clearfix">
  472. <h1 class=" s-14">
  473. <span>总接通量:<span class="Colors"></span></span>
  474. </h1>
  475. </div>
  476. </li>
  477. <li>
  478. <div class="new_title clearfix">
  479. <h1 class=" s-14">
  480. <span>接通率:<span class="Colors"></span></span>
  481. </h1>
  482. </div>
  483. </li>
  484. <li class="BackC">
  485. <div class="new_title clearfix">
  486. <h1 class=" s-14">
  487. <span>总呼出量:<span class="Colors"></span></span>
  488. </h1>
  489. </div>
  490. </li>
  491. </ul>
  492. </div>
  493. </div>
  494. </div>
  495. </div>
  496. <div class="col-sm-4 LISTS " style="width: 40%;display: none;">
  497. <div class="ibox float-e-margins mt">
  498. <div class="ibox-content">
  499. <div class="flot-chart">
  500. <div class="flot-chart-content" id="flot-pie-chart" style="height: 295px;width: 100%;"></div>
  501. </div>
  502. </div>
  503. </div>
  504. </div>
  505. <div class="col-sm-4 LIST_ ">
  506. <div class="left_box rows num_box">
  507. <div style="width: 100%;">
  508. <div class=" clear">
  509. <div class="widgets p-xl ss" id="hx" style="height: 300px;">
  510. </div>
  511. </div>
  512. </div>
  513. </div>
  514. </div>
  515. </div>
  516. <div class="row LISTS" style="display: none;">
  517. <div class="col-sm-12">
  518. <div class="ibox-content">
  519. <div class="ibox float-e-margins">
  520. <div class="ibox-title border_top padding-left-min">
  521. </div>
  522. <div style="width: 100%;">
  523. <div class="flot-chart-content" id="flot-line-chart" style='height: 400px;'></div>
  524. </div>
  525. <input type="hidden" id="RoleCode" />
  526. </div>
  527. </div>
  528. </div>
  529. </div>
  530. </div>
  531. <script src="../js/content.min.js?v=1.0.0"></script>
  532. <script src="../js/echarts.common.min.js"></script>
  533. <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
  534. <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
  535. <script>
  536. var inval;
  537. var xArr = [] //柱形图;
  538. var yArr = [] //柱形图;
  539. var BArr = [] //饼状图
  540. //数组
  541. $(document).ready(function() {
  542. teltotal()
  543. DL()
  544. if(inval) {
  545. clearInterval(inval);
  546. }
  547. // inval = setInterval(function() {
  548. // teltotal();
  549. // telhour();
  550. // telday();
  551. // }, huayi.config.indextime);
  552. })
  553. if($.cookie("token") == null) {
  554. window.location.href = "login.html";
  555. }
  556. function DL() {
  557. $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
  558. "token": $.cookie("token")
  559. }, function(result) {
  560. if(result.state.toLowerCase() == "success") {
  561. $("#RoleCode").val(result.data.user.F_RoleCode);
  562. if(result.data.user.F_RoleCode == "WLDW") { //改为除网络单位看不到,其他都能看到
  563. $(".LISTS").hide();
  564. $(".LIST_").addClass("Widths")
  565. } else {
  566. $(".LISTS").show();
  567. }
  568. }
  569. })
  570. }
  571. function teltotal() {
  572. $.getJSON(huayi.config.callcenter_url + 'DataAnalysis/GetTelReport', {
  573. "token": $.cookie("token")
  574. }, function(result) {
  575. if(result.state.toLowerCase() == "success") {
  576. //办理量
  577. $(".zslcount").text(result.data.ComplexReport[0].zslcount);
  578. $(".wjbcount").text(result.data.ComplexReport[0].wjbcount);
  579. $(".blzcount").text(result.data.ComplexReport[0].blzcount);
  580. $(".yblcount").text(result.data.ComplexReport[0].yblcount);
  581. //今日受理
  582. for(var i = 0; i < result.data.ComplexReport1.length; i++) {
  583. $('<li>' +
  584. '<span>' + result.data.ComplexReport1[i].type + ': <span class="Red">' + result.data.ComplexReport1[i].count + '</span></span>' +
  585. '</li>').appendTo(".SLs")
  586. }
  587. //当日话务量
  588. $(".new_title").eq(0).find("span").eq(1).text(result.data.ComplexReport2[0].hrcount);
  589. $(".new_title").eq(1).find("span").eq(1).text(result.data.ComplexReport2[0].jtcount);
  590. //接通率判断
  591. var jt;
  592. if(result.data.ComplexReport2[0].jtrate == null) {
  593. jt = "0%";
  594. } else {
  595. jt = result.data.ComplexReport2[0].jtrate;
  596. }
  597. $(".new_title").eq(2).find("span").eq(1).text(jt);
  598. $(".new_title").eq(3).find("span").eq(1).text(result.data.ComplexReport2[0].hccount);
  599. //坐席排行榜
  600. for(var i = 0; i < result.data.ComplexReport3.length; i++) {
  601. xArr.push(result.data.ComplexReport3[i].name);
  602. yArr.push(result.data.ComplexReport3[i].con);
  603. }
  604. option2.series.data = yArr;
  605. option2.xAxis.categories = xArr;
  606. var chart2 = new Highcharts.Chart('flot-pie-chart', option2);
  607. //每小时话务量
  608. //图3
  609. var option3 = {
  610. title: {
  611. text: '每小时话务量',
  612. x: -20
  613. },
  614. xAxis: {
  615. labels: {
  616. style: {
  617. color: '#19a0f5', //颜色
  618. fontSize: '12px' //字体
  619. }
  620. },
  621. categories: ['00时','01时', '02时', '03时', '04时', '05时', '06时', '07时', '08时', '09时', '10时', '11时', '12时', '13时', '14时', '15时', '16时', '17时', '18时',
  622. '19时', '20时', '21时', '22时', '23时',
  623. ]
  624. },
  625. yAxis: {
  626. title: {
  627. text: '单位(次/时)',
  628. rotation: -90,
  629. y: -150,
  630. style: {
  631. color: '#19a0f5', //颜色
  632. fontSize: '14px' //字体
  633. }
  634. },
  635. labels: {
  636. style: {
  637. color: '#19a0f5', //颜色
  638. fontSize: '14px' //字体
  639. }
  640. },
  641. plotLines: [{
  642. value: 0,
  643. width: 1,
  644. color: '#808080'
  645. }]
  646. },
  647. tooltip: {
  648. valueSuffix: '次'
  649. },
  650. credits: {
  651. enabled: false
  652. },
  653. series: [{
  654. name: '呼入次数',
  655. data: JSON.parse(result.data.ComplexReport5[0].hrcounts.replace(/\"/g, "")),
  656. color: '#ffaaac'
  657. }, {
  658. name: '接听次数',
  659. data: JSON.parse(result.data.ComplexReport5[0].jtcounts.replace(/\"/g, "")),
  660. color: '#d8e7ef'
  661. }, {
  662. name: '呼出通话次数',
  663. data: JSON.parse(result.data.ComplexReport5[0].hccounts.replace(/\"/g, "")),
  664. color: '#d8e7ef'
  665. }, {
  666. name: '通话次数',
  667. data: JSON.parse(result.data.ComplexReport5[0].thcounts.replace(/\"/g, "")),
  668. color: '#d8e7ef'
  669. }]
  670. };
  671. var chart3 = new Highcharts.Chart('flot-line-chart', option3);
  672. //饼状图
  673. var option = {
  674. title: {
  675. text: '接听效率',
  676. left: 'center'
  677. },
  678. tooltip: {
  679. text: '接听效率',
  680. formatter: "{a} <br/>{b} : {c} ({d}%)"
  681. },
  682. legend: {
  683. orient: 'vertical',
  684. // top: 'middle',
  685. x: 'left',
  686. left:25,
  687. top:80,
  688. data: ['5秒以下', '5-10秒', '10-15秒', '15秒以上']
  689. },
  690. series: [{
  691. type: 'pie',
  692. name: '接听效率',
  693. radius: '65%',
  694. center: ['50%', '50%'],
  695. selectedMode: 'single',
  696. data: [
  697. {
  698. formatter: '{a|{a}}{abg|}\n{hr|}\n {b|{b}:}{c} {per|{d}%} ',
  699. value:result.data.ComplexReport4[0].jt1count ,
  700. name: '5秒以下',
  701. label:{
  702. normal:{
  703. formatter: "{b}: {c} ({d}%)"
  704. }
  705. }
  706. },
  707. {
  708. value: result.data.ComplexReport4[0].jt2count,
  709. name: '5-10秒',
  710. label:{
  711. normal:{
  712. formatter: "{b}: {c} ({d}%)"
  713. }
  714. }
  715. },
  716. {
  717. value:result.data.ComplexReport4[0].jt3count,
  718. name: '10-15秒',
  719. label:{
  720. normal:{
  721. formatter: "{b}: {c} ({d}%)"
  722. }
  723. }
  724. },
  725. {
  726. value: result.data.ComplexReport4[0].jt4count,
  727. name: '15秒以上',
  728. label:{
  729. normal:{
  730. formatter: "{b}: {c} ({d}%)"
  731. }
  732. }
  733. }
  734. ],
  735. itemStyle: {
  736. emphasis: {
  737. shadowBlur: 10,
  738. shadowOffsetX: 0,
  739. shadowColor: 'rgba(0, 0, 0, 0.5)'
  740. }
  741. }
  742. }]
  743. };
  744. // option4.series[0].data = BArr;
  745. // var chart4 = new Highcharts.Chart('hx', option4);
  746. echartsPie = echarts.init(document.getElementById('hx'));
  747. echartsPie.setOption(option);
  748. }
  749. })
  750. }
  751. //图2
  752. //坐席接听排行榜
  753. var option2 = {
  754. chart: {
  755. type: 'column'
  756. },
  757. credits: {
  758. enabled: false // 禁用版权信息
  759. },
  760. exporting: {
  761. enabled: false
  762. },
  763. legend: {
  764. enabled: false
  765. },
  766. title: {
  767. text: '坐席接听排行榜'
  768. },
  769. xAxis: {
  770. categories: xArr,
  771. crosshair: true
  772. },
  773. yAxis: {
  774. min: 0,
  775. title: {
  776. text: '单位/次'
  777. }
  778. },
  779. tooltip: {
  780. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  781. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  782. '<td style="padding:0"><b>{point.y} </b></td></tr>',
  783. footerFormat: '</table>',
  784. shared: true,
  785. useHTML: true
  786. },
  787. series: [{
  788. name: '单位/次',
  789. data: yArr
  790. }]
  791. };
  792. //图4
  793. var option4 = {
  794. chart: {
  795. plotBackgroundColor: null,
  796. plotBorderWidth: null,
  797. plotShadow: false
  798. },
  799. credits: {
  800. enabled: false // 禁用版权信息
  801. },
  802. title: {
  803. text: '接听效率'
  804. },
  805. legend: {
  806. layout: 'vertical',
  807. align: 'left',
  808. verticalAlign: 'middle',
  809. labelFormatter: function() {
  810. return '<b>' + this.name + '</b>: ' +
  811. Highcharts.numberFormat(this.y, 0, ',');
  812. }
  813. },
  814. tooltip: {
  815. headerFormat: '{series.name}<br>',
  816. pointFormat: '{point.name}: <b>{point.y}</b>'
  817. },
  818. plotOptions: {
  819. pie: {
  820. allowPointSelect: true,
  821. cursor: 'pointer',
  822. dataLabels: {
  823. enabled: false
  824. },
  825. showInLegend: true
  826. }
  827. },
  828. series: [{
  829. type: 'pie',
  830. name: '接听效率',
  831. }]
  832. };
  833. </script>
  834. </body>
  835. </html>