12345市长热线标准版-前端

widgets.html 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  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. <script src="./Script/Common/huayi.load.js"></script>
  7. <script src="./Script/Common/huayi.config.js"></script>
  8. <style>
  9. * {
  10. font-family: "微软雅黑";
  11. }
  12. @font-face {
  13. font-family: 'iconfont';
  14. src: url('fonts/iconfont.eot');
  15. /* IE9*/
  16. src: url('fonts/iconfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  17. url('fonts/iconfont.woff') format('woff'), /* chrome、firefox */
  18. url('fonts/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
  19. url('fonts/iconfont.svg#iconfont') format('svg');
  20. /* iOS 4.1- */
  21. }
  22. .iconfont {
  23. font-family: "iconfont";
  24. font-size: 25px;
  25. font-style: normal;
  26. }
  27. .fl {
  28. float: left;
  29. }
  30. .fr {
  31. float: right;
  32. }
  33. .bc {
  34. background-color: #F5F5F5;
  35. border: 2px solid #EBEBEB;
  36. padding: 25px 20px;
  37. }
  38. .size-14 {
  39. font-size: 14px;
  40. font-weight: normal;
  41. }
  42. .ba {
  43. background-color: #F5F5F5;
  44. border: 2px solid #EBEBEB;
  45. padding: 0px;
  46. }
  47. .left_box {
  48. background-color: #FFFFFF;
  49. }
  50. .rows {
  51. display: -webkit-box;
  52. }
  53. .lazur {
  54. color: #23c6c8;
  55. }
  56. .bottom_line {
  57. border-bottom: 2px solid #CCCCCC;
  58. }
  59. .clear {
  60. margin: 0;
  61. padding: 0;
  62. margin-top: 2%;
  63. }
  64. .widgets {
  65. padding: 15px 0px;
  66. margin-bottom: 25px;
  67. margin-top: 35px;
  68. }
  69. /*.ss{
  70. background: url(img/huan.png) no-repeat;
  71. background-size: contain;
  72. background-position: center;
  73. margin-left: 20px;
  74. }*/
  75. .fenxian {
  76. border: 2px solid #CCCCCC;
  77. margin-bottom: 10px;
  78. display: inherit;
  79. position: absolute;
  80. width: 100%;
  81. TOP: 50%;
  82. }
  83. .left1 {
  84. LEFT: 15px;
  85. }
  86. .left2 {
  87. right: 15px;
  88. }
  89. .rowTitle {
  90. position: absolute;
  91. font-size: 16px;
  92. top: 40px;
  93. left: 45px;
  94. font-weight: 800;
  95. padding-bottom: 10px;
  96. border-bottom: 2px solid #CCCCCC;
  97. letter-spacing: 4px;
  98. }
  99. .num_box {
  100. background-color: #fefefe;
  101. border: 1px solid #EBEBEB;
  102. border-radius: 5px;
  103. margin-top: 10px;
  104. -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  105. height: 318px;
  106. }
  107. .size-16 {
  108. font-size: 16px !important;
  109. }
  110. .size-14 {
  111. font-size: 14px !important;
  112. }
  113. .size-15 {
  114. font-size: 15px !important;
  115. }
  116. .size-12 {
  117. font-size: 12px !important;
  118. }
  119. .min_bottom {
  120. margin-bottom: 5px !important;
  121. }
  122. .fa-4x {
  123. font-size: 3em;
  124. color: #FFFFFF;
  125. background-color: #67cdcb;
  126. padding: 10px;
  127. border-radius: 5px;
  128. }
  129. .bg_green {
  130. background: -webkit-linear-gradient(left, #accafd, #b8dcfc);
  131. background: -moz-linear-gradient(left, #accafd, #b8dcfc);
  132. background: -o-linear-gradient(left, #accafd, #b8dcfc);
  133. background: -webkit-gradient(linear, 100% 0, 0 0, from(#b8dcfc), to(#accafd));
  134. background: linear-gradient(left, #accafd, #b8dcfc); /* Opera 11.1 - 12.0 */ /* Firefox 3.6 - 15 */ /* 标准的语法 */
  135. }
  136. .bg_blue { /* Safari 5.1 - 6.0 */
  137. background: -webkit-linear-gradient(left, #f26997, #f080ce);
  138. background: -moz-linear-gradient(left, #f26997, #f080ce);
  139. background: -o-linear-gradient(left, #f26997, #f080ce);
  140. background: -webkit-gradient(linear, 100% 0, 0 0, from(#f080ce), to(#f26997));
  141. background: linear-gradient(left, #f26997, #f080ce); /* Opera 11.1 - 12.0 */ /* Firefox 3.6 - 15 */ /* 标准的语法 */
  142. }
  143. .bg_red {
  144. background: -webkit-linear-gradient(left, #fbc356, #fa9182);
  145. background: -moz-linear-gradient(left, #fbc356, #fa9182);
  146. background: -o-linear-gradient(left, #fbc356, #fa9182);
  147. background: -webkit-gradient(linear, 100% 0, 0 0, from(#fa9182), to(#fbc356));
  148. background: linear-gradient(left, #fbc356, #fa9182); /* Opera 11.1 - 12.0 */ /* Firefox 3.6 - 15 */ /* 标准的语法 */
  149. }
  150. .bg_black {
  151. background: -webkit-linear-gradient(left, #88eec0, #8bdedd);
  152. background: -moz-linear-gradient(left, #88eec0, #8bdedd);
  153. background: -o-linear-gradient(left, #88eec0, #8bdedd);
  154. background: -webkit-gradient(linear, 100% 0, 0 0, from(#8bdedd), to(#88eec0));
  155. background: linear-gradient(left, #88eec0, #8bdedd); /* Opera 11.1 - 12.0 */ /* Firefox 3.6 - 15 */ /* 标准的语法 */
  156. }
  157. .bg_wj {
  158. background: -webkit-linear-gradient(left, #6c77da, #7351ac);
  159. background: -moz-linear-gradient(left, #6c77da, #7351ac);
  160. background: -o-linear-gradient(left, #6c77da, #7351ac);
  161. background: -webkit-gradient(linear, 100% 0, 0 0, from(#7351ac), to(#6c77da));
  162. background: linear-gradient(left, #6c77da, #7351ac); /* Opera 11.1 - 12.0 */ /* Firefox 3.6 - 15 */ /* 标准的语法 */
  163. }
  164. .jg {
  165. letter-spacing: 2px;
  166. margin-top: -3px;
  167. font-weight: bolder;
  168. }
  169. .mt {
  170. margin-top: 10px;
  171. }
  172. .ibox-content {
  173. padding: 20px 20px 95px;
  174. background-color: #fefefe;
  175. border: 1px solid #EBEBEB;
  176. border-radius: 5px;
  177. -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  178. box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  179. }
  180. .size-20 {
  181. font-size: 20px;
  182. color: #4078ad;
  183. }
  184. .border_top {
  185. border-top: none;
  186. }
  187. /*.margin-tops{
  188. margin-top:-50px;
  189. }*/
  190. .padding-left-min {
  191. padding-left: 0;
  192. padding-top: 5px;
  193. }
  194. .mins-left {
  195. padding-left: 30px;
  196. padding-right: 0;
  197. }
  198. .widget h2, .widget h3 {
  199. margin-top: 0px;
  200. }
  201. .col-sm-2 {
  202. width: 20%;
  203. }
  204. .col-sm-4 {
  205. width: 29%;
  206. }
  207. .min_right {
  208. margin-right: 15px;
  209. }
  210. .col-xs-3 {
  211. padding-left: 5px;
  212. }
  213. .huan {
  214. background: url(./img/huan.png)no-repeat;
  215. }
  216. .min-padding {
  217. padding-bottom: 10px;
  218. padding-top: 10px;
  219. border-bottom-width: 1px;
  220. border-radius: 5px !important;
  221. padding-left: 10px;
  222. padding-right: 5px;
  223. }
  224. .progress {
  225. height: 5px;
  226. background-color: #CCCCCC;
  227. }
  228. .progress-bar-ff {
  229. background-color: #FFF;
  230. }
  231. .ff {
  232. color: #FFFFFF;
  233. }
  234. .c-bottom {
  235. margin-top: 5px;
  236. }
  237. .bg-purple {
  238. background: -ms-linear-gradient(right, #ea76dd,#8a9cf4);
  239. background: -webkit-gradient(linear, 100% 0, 0 0, from(#ea76dd), to(#8a9cf4));
  240. background: -webkit-linear-gradient(right, #ea76dd, #8a9cf4);
  241. background: -moz-linear-gradient(right, #ea76dd, #8a9cf4);
  242. background: -o-linear-gradient(right, #ea76dd, #8a9cf4);
  243. background: linear-gradient(right, #ea76dd, #8a9cf4);
  244. background: #ea76dd; /* Opera 11.1 - 12.0 */ /* Firefox 3.6 - 15 */ /* 标准的语法 */
  245. }
  246. .bg-blues {
  247. background: -ms-linear-gradient(right, #67aefe,#67aefe);
  248. background: -webkit-linear-gradient(right, #67aefe, #67aefe);
  249. background: -moz-linear-gradient(right, #67aefe, #7bd7fe);
  250. background: -o-linear-gradient(right, #67aefe, #7bd7fe);
  251. background: -webkit-gradient(linear, 100% 0, 0 0, from(#67aefe), to(#7bd7fe));
  252. background: linear-gradient(right, #67aefe, #7bd7fe);
  253. background: #67aefe; /* Opera 11.1 - 12.0 */ /* Firefox 3.6 - 15 */ /* 标准的语法 */
  254. }
  255. .bg-yellow {
  256. background: -ms-linear-gradient(right,#f95a84,#f86953);
  257. background: -webkit-linear-gradient(right, #f95a84, #f86953);
  258. background: -moz-linear-gradient(right, #f95a84, #f86953);
  259. background: -o-linear-gradient(right, #f95a84, #f86953);
  260. background: -webkit-gradient(linear, 100% 0, 0 0, from(#f95a84), to(#f86953));
  261. background: linear-gradient(right, #f95a84, #f86953);
  262. background: #f95a84; /* Opera 11.1 - 12.0 */ /* Firefox 3.6 - 15 */ /* 标准的语法 */
  263. }
  264. /*.p-xl{
  265. border-width: 5px;
  266. border-style: solid;
  267. border-color: #69cbd0 #69cbd0 #be8bd6 #47bde3 ;
  268. border-radius: 50%;
  269. }*/
  270. .c-bottom {
  271. width: 29%;
  272. overflow: hidden;
  273. margin-right: 5px;
  274. float: left;
  275. }
  276. .c-bottom ul {
  277. overflow: hidden;
  278. width: 100%;
  279. padding-left: 0px;
  280. list-style: none;
  281. margin-top: 3px;
  282. cursor: pointer;
  283. }
  284. .Text {
  285. width: 100%;
  286. padding-bottom: 30px;
  287. }
  288. .c-b-ul {
  289. list-style: none;
  290. padding-left: 0;
  291. }
  292. .Announcement_title span {
  293. font-size: 16px;
  294. font-weight: 800;
  295. line-height: 80px;
  296. }
  297. .rl{
  298. float: right;
  299. }
  300. .Announcement_common{
  301. font-size: 14px;
  302. }
  303. .Announcement_common li{
  304. margin-bottom: 10px;
  305. }
  306. .At_time{
  307. padding-right: 25px;
  308. }
  309. .Announcement_common li a{
  310. color: #000;
  311. }
  312. .Announcement_common li a:hover{
  313. color: #00a1cb;
  314. }
  315. </style>
  316. </head>
  317. <body class="gray-bg">
  318. <div class="wrapper wrapper-content animated fadeInRight">
  319. <div class="row">
  320. <div class="col-sm-2">
  321. <div class="widget style1 bc">
  322. <div class="row">
  323. <div class="col-xs-3 text-center">
  324. <i class="fa iconfont fa-4x bg_black">&#xe732;</i>
  325. </div>
  326. <div class="col-xs-9 text-left mins-left">
  327. <h2 class="size-16 jg min_bottom"> 今日来电 </h2>
  328. <h2 class="font-bold size-15 min_bottom">26</h2>
  329. <h3 class="font-bold size-12 ">总时长:120000M</h3>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. <div class="col-sm-2">
  335. <div class="widget style1 bc ">
  336. <div class="row">
  337. <div class="col-xs-3">
  338. <i class="fa iconfont fa-4x bg_green">&#xe735;</i>
  339. </div>
  340. <div class="col-xs-9 text-left mins-left">
  341. <h2 class="size-16 jg min_bottom"> 今日回访 </h2>
  342. <h2 class="font-bold size-15 min_bottom">26</h2>
  343. <h3 class="font-bold size-12 ">总时长:120000M</h3>
  344. </div>
  345. </div>
  346. </div>
  347. </div>
  348. <div class="col-sm-2">
  349. <div class="widget style1 bc">
  350. <div class="row">
  351. <div class="col-xs-3">
  352. <i class="fa iconfont fa-4x bg_blue">&#xe606;</i>
  353. </div>
  354. <div class="col-xs-9 text-left mins-left">
  355. <h2 class="size-16 jg min_bottom"> 本月来电 </h2>
  356. <h2 class="font-bold size-15 min_bottom">26</h2>
  357. <h3 class="font-bold size-12 ">总时长:120000M</h3>
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. <div class="col-sm-2">
  363. <div class="widget style1 bc ">
  364. <div class="row">
  365. <div class="col-xs-3">
  366. <i class="fa iconfont fa-4x bg_red">&#xe61f;</i>
  367. </div>
  368. <div class="col-xs-9 text-left mins-left">
  369. <h2 class="size-16 jg min_bottom"> 本月回访 </h2>
  370. <h2 class="font-bold size-15 min_bottom">26</h2>
  371. <h3 class="font-bold size-12 ">总时长:120000M</h3>
  372. </div>
  373. </div>
  374. </div>
  375. </div>
  376. <div class="col-sm-2">
  377. <div class="widget style1 bc ">
  378. <div class="row">
  379. <div class="col-xs-3">
  380. <i class="fa iconfont fa-4x bg_wj">&#xe61f;</i>
  381. </div>
  382. <div class="col-xs-9 text-left mins-left">
  383. <h2 class="size-16 jg min_bottom"> 未接来电</h2>
  384. <h2 class="font-bold size-15 min_bottom">26</h2>
  385. </div>
  386. </div>
  387. </div>
  388. </div>
  389. </div>
  390. <div class="row">
  391. <div class="col-sm-4 ">
  392. <div class="left_box rows num_box">
  393. <div class="Announcement_box" style="width: 100%;">
  394. <div class="Announcement_title clearfix">
  395. <span class="fl" style="padding-left: 25px;">通知公告</span>
  396. <span class="rl" style="padding-right: 25px;">
  397. <a href="">更多&gt;&gt;</a>
  398. </span>
  399. </div>
  400. <div class="Announcement_common">
  401. <ul>
  402. <li>
  403. <span class="fl">
  404. <a href="">通知公告通知公告通知公告</a>
  405. </span>
  406. <span class="rl At_time">
  407. <a href="">2017-9-02</a>
  408. </span>
  409. </li>
  410. <li>
  411. <span class="fl">
  412. <a href="">通知公告通知公告通知公告</a>
  413. </span>
  414. <span class="rl At_time">
  415. <a href="">2017-9-02</a>
  416. </span>
  417. </li>
  418. <li>
  419. <span class="fl">
  420. <a href="">通知公告通知公告通知公告</a>
  421. </span>
  422. <span class="rl At_time">
  423. <a href="">2017-9-02</a>
  424. </span>
  425. </li>
  426. <li>
  427. <span class="fl">
  428. <a href="">通知公告通知公告通知公告</a>
  429. </span>
  430. <span class="rl At_time">
  431. <a href="">2017-9-02</a>
  432. </span>
  433. </li>
  434. <li>
  435. <span class="fl">
  436. <a href="">通知公告通知公告通知公告</a>
  437. </span>
  438. <span class="rl At_time">
  439. <a href="">2017-9-02</a>
  440. </span>
  441. </li>
  442. <li>
  443. <span class="fl">
  444. <a href="">通知公告通知公告通知公告</a>
  445. </span>
  446. <span class="rl At_time">
  447. <a href="">2017-9-02</a>
  448. </span>
  449. </li>
  450. <li>
  451. <span class="fl">
  452. <a href="">通知公告通知公告通知公告</a>
  453. </span>
  454. <span class="rl At_time">
  455. <a href="">2017-9-02</a>
  456. </span>
  457. </li>
  458. </ul>
  459. </div>
  460. </div>
  461. </div>
  462. </div>
  463. <div class="col-sm-4 ">
  464. <div class="left_box rows num_box">
  465. <b class="rowTitle">工单信息</b>
  466. <div style="margin-top: 30px; width: 100%;">
  467. <div class="col-md-7 clear">
  468. <div class="widgets p-xl ss" id="hx" style="height: 300px;">
  469. <!--<div style="margin-bottom: 50px;">
  470. <h2 class="text-center">
  471. <span class="lazur size-14">总计</span>
  472. </h2>
  473. <h2 class="m-xs text-center size-14">100000000</h2>
  474. </div>-->
  475. </div>
  476. </div>
  477. <div class="col-md-5 clear">
  478. <div class="widgets p-xl border_left" style="margin-top: 60px;">
  479. <ul class="c-b-ul clearfix">
  480. <li class="fl Text">今日完成量</li>
  481. <li class="fl Text">今日待完成量</li>
  482. <li class="fl Text">今日待完成量</li>
  483. </ul>
  484. </div>
  485. </div>
  486. </div>
  487. </div>
  488. </div>
  489. <div class="col-sm-4" style="width: 40%;">
  490. <div class="ibox float-e-margins mt">
  491. <div class="ibox-content">
  492. <div class="flot-chart">
  493. <div class="flot-chart-content" id="flot-pie-chart" style="height: 300px;width: 110%;"></div>
  494. </div>
  495. </div>
  496. </div>
  497. </div>
  498. </div>
  499. <div class="row">
  500. <div class="col-sm-12">
  501. <div class="ibox-content">
  502. <div class="ibox float-e-margins">
  503. <div class="ibox-title border_top padding-left-min">
  504. <div class="ibox-tools margin-tops">
  505. <h3>去年同月相比<strong> ↑ 4.3%</strong></h3>
  506. <!-- <h3 class="size-20">↑ <strong>4.3%</strong></h3>-->
  507. </div>
  508. </div>
  509. <div style="width: 100%;">
  510. <div class="flot-chart-content" id="flot-line-chart" style='height: 400px;'></div>
  511. </div>
  512. </div>
  513. </div>
  514. </div>
  515. </div>
  516. </div>
  517. <script src="./js/content.min.js?v=1.0.0"></script>
  518. <script src="./js/echarts.common.min.js"></script>
  519. <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
  520. <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
  521. <script>
  522. var inval;
  523. $(document).ready(function () {
  524. teltotal();
  525. telhour();
  526. telday();
  527. worktotal();
  528. if (inval) {
  529. clearInterval(inval);
  530. }
  531. inval = setInterval(function () { teltotal(); telhour(); telday(); worktotal(); }, huayi.config.indextime);
  532. })
  533. function teltotal() {
  534. $.getJSON(huayi.config.callcenter_url + 'Index/GetTelRecordsTotal', { "token": $.cookie("token") }, function (result) {
  535. if (result.state.toLowerCase() == "success") {
  536. $(".style1").eq(0).find("h2").eq(1).text(result.data.dayin.count);
  537. $(".style1").eq(0).find("h3").text("总时长:" + result.data.dayin.totaltime + "s");
  538. $(".style1").eq(1).find("h2").eq(1).text(result.data.dayout.count);
  539. $(".style1").eq(1).find("h3").text("总时长:" + result.data.dayout.totaltime + "s");
  540. $(".style1").eq(2).find("h2").eq(1).text(result.data.monin.count);
  541. $(".style1").eq(2).find("h3").text("总时长:" + result.data.monin.totaltime + "s");
  542. $(".style1").eq(3).find("h2").eq(1).text(result.data.monout.count);
  543. $(".style1").eq(3).find("h3").text("总时长:" + result.data.monout.totaltime + "s");
  544. $(".style1").eq(4).find("h2").eq(1).text(result.data.daynocon);
  545. }
  546. })
  547. }
  548. //图一
  549. var myChart1 = echarts.init(document.getElementById('flot-pie-chart'));
  550. var option1 = {
  551. tooltip: {},
  552. xAxis: {
  553. data: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", ],
  554. axisLabel: {
  555. interval: 0,//横轴信息全部显示
  556. rotate: -0,//-30度角倾斜显示
  557. }
  558. },
  559. yAxis: {},
  560. series: [{
  561. name: '业绩',
  562. type: 'bar',
  563. itemStyle: {
  564. normal: {
  565. color: '#d5d5d5'
  566. }
  567. },
  568. barGap: '-100%',
  569. barMaxWidth: '100',
  570. data: [51, 30, 40, 25, 80, 40, 42, 86, 50, 26, 12, 30, 55, 15, 18, 55, 28, 26, 50, 46, 98, 66, 50, 85]
  571. }, {
  572. name: '销量',
  573. type: 'bar',
  574. itemStyle: {
  575. normal: {
  576. color: '#7abf62'
  577. }
  578. },
  579. barMaxWidth: '100',
  580. data: [5, 20, 36, 10, 15, 20, 28, 36, 20, 36, 5, 20, 36, 10, 15, 20, 28, 36, 20, 36, 88, 46, 30, 45]
  581. }]
  582. };
  583. function telhour() {
  584. $.getJSON(huayi.config.callcenter_url + 'Index/GetTelRecordsByHour', { "token": $.cookie("token") }, function (result) {
  585. if (result.state.toLowerCase() == "success") {
  586. option1.series[0].data = result.data.total;
  587. option1.series[1].data = result.data.count;
  588. myChart1.setOption(option1);
  589. }
  590. })
  591. }
  592. //myChart.setOption(option);
  593. //图3
  594. var option3={
  595. title: {
  596. text: '本月话务量及工单量折线图',
  597. x: -20
  598. },
  599. xAxis: {
  600. labels: {
  601. style: {
  602. color: '#19a0f5',//颜色
  603. fontSize: '12px' //字体
  604. }
  605. },
  606. categories: ['01日', '02日', '03日', '04日', '05日', '06日', '07日', '08日', '09日', '10日', '11日', '12日', '13日', '14日', '15日', '16日', '17日', '18日',
  607. '19日', '20日', '21日', '22日', '23日', '24日', '25日',
  608. '26日', '27日', '28日', '29日', '30日', '31日']
  609. },
  610. yAxis: {
  611. title: {
  612. text: '单位',
  613. rotation: 0,
  614. y: -180,
  615. style: {
  616. color: '#19a0f5',//颜色
  617. fontSize: '16px' //字体
  618. }
  619. },
  620. labels: {
  621. style: {
  622. color: '#19a0f5',//颜色
  623. fontSize: '14px' //字体
  624. }
  625. },
  626. plotLines: [{
  627. value: 0,
  628. width: 1,
  629. color: '#808080'
  630. }]
  631. },
  632. tooltip: {
  633. valueSuffix: '单'
  634. },
  635. legend: {
  636. align: 'right',
  637. verticalAlign: 'top',
  638. x: 0,
  639. y: 0
  640. },
  641. credits: {
  642. enabled: false
  643. },
  644. series: [{
  645. name: '工单量',
  646. data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3,
  647. 13.9, 9.6, 21.5, 25.2, 26.5, 23.3, 6.9, 9.5, 14.5, 18.2,
  648. 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 9.6, 21.5, 25.2],
  649. color: '#ffaaac'
  650. }, {
  651. name: '话务量',
  652. data: [2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1,
  653. 8.6, 2.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 9.6,
  654. 13.9, 9.6, 21.5, 25.2, 26.5, 23.3, 6.9, 9.5, 18.2, 21.5, 25.2
  655. ],
  656. color: '#d8e7ef'
  657. }]
  658. };
  659. function telday() {
  660. $.getJSON(huayi.config.callcenter_url + 'Index/GetWorkTelByDay', { "token": $.cookie("token") }, function (result) {
  661. if (result.state.toLowerCase() == "success") {
  662. $(".ibox-tools h3 strong").text(result.data.bl);
  663. option3.xAxis.categories = result.data.col;
  664. option3.series[0].data = result.data.worktotal;
  665. option3.series[1].data = result.data.teltotal;
  666. var chart3 = new Highcharts.Chart('flot-line-chart', option3);
  667. }
  668. })
  669. }
  670. //图2
  671. var myChart2 = echarts.init(document.getElementById('hx'));
  672. var option2 = {
  673. title: {
  674. text: '总计',
  675. subtext: '10000',
  676. x: 'center',
  677. y: 60,
  678. textStyle: {
  679. fontWeight: 'normal',
  680. fontSize: 16
  681. }
  682. },
  683. color: ['#bf8bd5', '#68cbcf'],
  684. series: [{
  685. type: 'pie',
  686. radius: ['50%', '80%'],
  687. center: ['50%', '30%'],
  688. avoidLabelOverlap: false,
  689. hoverAnimation: false,
  690. label: {
  691. normal: {
  692. show: false,
  693. position: 'center',
  694. formatter: "",
  695. },
  696. emphasis: {
  697. show: true,
  698. textStyle: {
  699. fontSize: '14',
  700. fontWeight: 'bold'
  701. }
  702. }
  703. },
  704. labelLine: {
  705. normal: {
  706. show: false
  707. }
  708. },
  709. data: [
  710. { value: 335, name: '直接访问' },
  711. { value: 210, name: '邮件营销' }
  712. ]
  713. }]
  714. };
  715. function worktotal() {
  716. $.getJSON(huayi.config.callcenter_url + 'Index/GetWorkTotal', { "token": $.cookie("token") }, function (result) {
  717. if (result.state.toLowerCase() == "success") {
  718. option2.title.subtext = result.data.daywc * 1 + result.data.daywwc * 1;
  719. option2.series[0].data = [{ value: result.data.daywwc, name: '今日待完成量' }, { value: result.data.daywc, name: '今日完成量' }]
  720. $(".bg-blues h3").find("span").text(result.data.daywc);
  721. $(".bg-purple h3").find("span").text(result.data.daywwc);
  722. $(".bg-yellow h3").find("span").text(result.data.monwwc);
  723. myChart2.setOption(option2);
  724. }
  725. })
  726. }
  727. </script>
  728. </body>
  729. <!-- Mirrored from www.zi-han.net/theme/hplus/widgets.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->
  730. </html>