封丘民意调查

widgets.html 21KB

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