12345市长热线标准版-前端

widgets.html 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911
  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: 25px;
  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);
  135. /* Opera 11.1 - 12.0 */
  136. /* Firefox 3.6 - 15 */
  137. /* 标准的语法 */
  138. }
  139. .bg_blue {
  140. /* Safari 5.1 - 6.0 */
  141. background: -webkit-linear-gradient(left, #f26997, #f080ce);
  142. background: -moz-linear-gradient(left, #f26997, #f080ce);
  143. background: -o-linear-gradient(left, #f26997, #f080ce);
  144. background: -webkit-gradient(linear, 100% 0, 0 0, from(#f080ce), to(#f26997));
  145. background: linear-gradient(left, #f26997, #f080ce);
  146. /* Opera 11.1 - 12.0 */
  147. /* Firefox 3.6 - 15 */
  148. /* 标准的语法 */
  149. }
  150. .bg_red {
  151. background: -webkit-linear-gradient(left, #fbc356, #fa9182);
  152. background: -moz-linear-gradient(left, #fbc356, #fa9182);
  153. background: -o-linear-gradient(left, #fbc356, #fa9182);
  154. background: -webkit-gradient(linear, 100% 0, 0 0, from(#fa9182), to(#fbc356));
  155. background: linear-gradient(left, #fbc356, #fa9182);
  156. /* Opera 11.1 - 12.0 */
  157. /* Firefox 3.6 - 15 */
  158. /* 标准的语法 */
  159. }
  160. .bg_black {
  161. background: -webkit-linear-gradient(left, #88eec0, #8bdedd);
  162. background: -moz-linear-gradient(left, #88eec0, #8bdedd);
  163. background: -o-linear-gradient(left, #88eec0, #8bdedd);
  164. background: -webkit-gradient(linear, 100% 0, 0 0, from(#8bdedd), to(#88eec0));
  165. background: linear-gradient(left, #88eec0, #8bdedd);
  166. /* Opera 11.1 - 12.0 */
  167. /* Firefox 3.6 - 15 */
  168. /* 标准的语法 */
  169. }
  170. .bg_wj {
  171. background: -webkit-linear-gradient(left, #6c77da, #7351ac);
  172. background: -moz-linear-gradient(left, #6c77da, #7351ac);
  173. background: -o-linear-gradient(left, #6c77da, #7351ac);
  174. background: -webkit-gradient(linear, 100% 0, 0 0, from(#7351ac), to(#6c77da));
  175. background: linear-gradient(left, #6c77da, #7351ac);
  176. /* Opera 11.1 - 12.0 */
  177. /* Firefox 3.6 - 15 */
  178. /* 标准的语法 */
  179. }
  180. .jg {
  181. letter-spacing: 2px;
  182. margin-top: -3px;
  183. font-weight: bolder;
  184. }
  185. .mt {
  186. margin-top: 10px;
  187. }
  188. .ibox-content {
  189. padding: 20px 20px 95px;
  190. background-color: #fefefe;
  191. border: 1px solid #EBEBEB;
  192. border-radius: 5px;
  193. -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  194. box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  195. }
  196. .size-20 {
  197. font-size: 20px;
  198. color: #4078ad;
  199. }
  200. .border_top {
  201. border-top: none;
  202. }
  203. /*.margin-tops{
  204. margin-top:-50px;
  205. }*/
  206. .padding-left-min {
  207. padding-left: 0;
  208. padding-top: 5px;
  209. }
  210. .mins-left {
  211. padding-left: 30px;
  212. padding-right: 0;
  213. }
  214. .widget h2,
  215. .widget h3 {
  216. margin-top: 0px;
  217. }
  218. .col-sm-2 {
  219. width: 20%;
  220. }
  221. .col-sm-4 {
  222. width: 29%;
  223. }
  224. .min_right {
  225. margin-right: 15px;
  226. }
  227. .col-xs-3 {
  228. padding-left: 5px;
  229. }
  230. .huan {
  231. background: url(./img/huan.png)no-repeat;
  232. }
  233. .min-padding {
  234. padding-bottom: 10px;
  235. padding-top: 10px;
  236. border-bottom-width: 1px;
  237. border-radius: 5px !important;
  238. padding-left: 10px;
  239. padding-right: 5px;
  240. }
  241. .progress {
  242. height: 5px;
  243. background-color: #CCCCCC;
  244. }
  245. .progress-bar-ff {
  246. background-color: #FFF;
  247. }
  248. .ff {
  249. color: #FFFFFF;
  250. }
  251. .c-bottom {
  252. margin-top: 5px;
  253. }
  254. .bg-purple {
  255. background: -ms-linear-gradient(right, #ea76dd, #8a9cf4);
  256. background: -webkit-gradient(linear, 100% 0, 0 0, from(#ea76dd), to(#8a9cf4));
  257. background: -webkit-linear-gradient(right, #ea76dd, #8a9cf4);
  258. background: -moz-linear-gradient(right, #ea76dd, #8a9cf4);
  259. background: -o-linear-gradient(right, #ea76dd, #8a9cf4);
  260. background: linear-gradient(right, #ea76dd, #8a9cf4);
  261. background: #ea76dd;
  262. /* Opera 11.1 - 12.0 */
  263. /* Firefox 3.6 - 15 */
  264. /* 标准的语法 */
  265. }
  266. .bg-blues {
  267. background: -ms-linear-gradient(right, #67aefe, #67aefe);
  268. background: -webkit-linear-gradient(right, #67aefe, #67aefe);
  269. background: -moz-linear-gradient(right, #67aefe, #7bd7fe);
  270. background: -o-linear-gradient(right, #67aefe, #7bd7fe);
  271. background: -webkit-gradient(linear, 100% 0, 0 0, from(#67aefe), to(#7bd7fe));
  272. background: linear-gradient(right, #67aefe, #7bd7fe);
  273. background: #67aefe;
  274. /* Opera 11.1 - 12.0 */
  275. /* Firefox 3.6 - 15 */
  276. /* 标准的语法 */
  277. }
  278. .bg-yellow {
  279. background: -ms-linear-gradient(right, #f95a84, #f86953);
  280. background: -webkit-linear-gradient(right, #f95a84, #f86953);
  281. background: -moz-linear-gradient(right, #f95a84, #f86953);
  282. background: -o-linear-gradient(right, #f95a84, #f86953);
  283. background: -webkit-gradient(linear, 100% 0, 0 0, from(#f95a84), to(#f86953));
  284. background: linear-gradient(right, #f95a84, #f86953);
  285. background: #f95a84;
  286. /* Opera 11.1 - 12.0 */
  287. /* Firefox 3.6 - 15 */
  288. /* 标准的语法 */
  289. }
  290. /*.p-xl{
  291. border-width: 5px;
  292. border-style: solid;
  293. border-color: #69cbd0 #69cbd0 #be8bd6 #47bde3 ;
  294. border-radius: 50%;
  295. }*/
  296. .c-bottom {
  297. width: 29%;
  298. overflow: hidden;
  299. margin-right: 5px;
  300. float: left;
  301. }
  302. .c-bottom ul {
  303. overflow: hidden;
  304. width: 100%;
  305. padding-left: 0px;
  306. list-style: none;
  307. margin-top: 3px;
  308. cursor: pointer;
  309. }
  310. .Text {
  311. width: 100%;
  312. padding-bottom: 30px;
  313. }
  314. .c-b-ul {
  315. list-style: none;
  316. padding-left: 0;
  317. }
  318. .Announcement_title span {
  319. font-size: 16px;
  320. font-weight: 800;
  321. line-height: 80px;
  322. }
  323. .rl {
  324. float: right;
  325. }
  326. .Announcement_common {
  327. font-size: 14px;
  328. }
  329. .Announcement_common li {
  330. margin-bottom: 10px;
  331. }
  332. .At_time {
  333. padding-right: 25px;
  334. }
  335. .Announcement_common li a {
  336. color: #000;
  337. }
  338. .Announcement_common li a:hover {
  339. color: #00a1cb;
  340. }
  341. .new_title {
  342. height: 100%;
  343. line-height: 30px;
  344. padding: 0 15px;
  345. }
  346. .new_title h1 {
  347. margin: 0;
  348. padding: 0;
  349. font-weight: normal;
  350. line-height: 30px;
  351. white-space: nowrap;
  352. overflow: hidden;
  353. text-overflow: ellipsis;
  354. float: left;
  355. width: 55%;
  356. }
  357. .new_list li {
  358. height: 30px;
  359. }
  360. li {
  361. list-style-type: none;
  362. }
  363. .new_title a {
  364. color: #000;
  365. display: block;
  366. width: 100%;
  367. color: #666;
  368. white-space: nowrap;
  369. overflow: hidden;
  370. text-overflow: ellipsis;
  371. }
  372. .s-14 {
  373. font-size: 14px;
  374. }
  375. .new_title em {
  376. font-style: normal;
  377. }
  378. </style>
  379. </head>
  380. <body class="gray-bg">
  381. <div class="wrapper wrapper-content animated fadeInRight">
  382. <div class="row">
  383. <div class="col-sm-2">
  384. <div class="widget style1 bc">
  385. <div class="row">
  386. <div class="col-xs-3 text-center">
  387. <i class="fa iconfont fa-4x bg_black">&#xe732;</i>
  388. </div>
  389. <div class="col-xs-9 text-left mins-left">
  390. <h2 class="size-16 jg min_bottom"> 今日来电 </h2>
  391. <h2 class="font-bold size-15 min_bottom">0</h2>
  392. <h3 class="font-bold size-12 ">总时长:0M</h3>
  393. </div>
  394. </div>
  395. </div>
  396. </div>
  397. <div class="col-sm-2">
  398. <div class="widget style1 bc ">
  399. <div class="row">
  400. <div class="col-xs-3">
  401. <i class="fa iconfont fa-4x bg_green">&#xe735;</i>
  402. </div>
  403. <div class="col-xs-9 text-left mins-left">
  404. <h2 class="size-16 jg min_bottom"> 今日去电 </h2>
  405. <h2 class="font-bold size-15 min_bottom">0</h2>
  406. <h3 class="font-bold size-12 ">总时长:0M</h3>
  407. </div>
  408. </div>
  409. </div>
  410. </div>
  411. <div class="col-sm-2">
  412. <div class="widget style1 bc">
  413. <div class="row">
  414. <div class="col-xs-3">
  415. <i class="fa iconfont fa-4x bg_blue">&#xe606;</i>
  416. </div>
  417. <div class="col-xs-9 text-left mins-left">
  418. <h2 class="size-16 jg min_bottom"> 本月来电 </h2>
  419. <h2 class="font-bold size-15 min_bottom">0</h2>
  420. <h3 class="font-bold size-12 ">总时长:0M</h3>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. <div class="col-sm-2">
  426. <div class="widget style1 bc ">
  427. <div class="row">
  428. <div class="col-xs-3">
  429. <i class="fa iconfont fa-4x bg_red">&#xe61f;</i>
  430. </div>
  431. <div class="col-xs-9 text-left mins-left">
  432. <h2 class="size-16 jg min_bottom"> 本月去电 </h2>
  433. <h2 class="font-bold size-15 min_bottom">0</h2>
  434. <h3 class="font-bold size-12 ">总时长:0M</h3>
  435. </div>
  436. </div>
  437. </div>
  438. </div>
  439. <div class="col-sm-2">
  440. <div class="widget style1 bc ">
  441. <div class="row">
  442. <div class="col-xs-3">
  443. <i class="fa iconfont fa-4x bg_wj">&#xe61f;</i>
  444. </div>
  445. <div class="col-xs-9 text-left mins-left">
  446. <h2 class="size-16 jg min_bottom"> 未接来电</h2>
  447. <h2 class="font-bold size-15 min_bottom">0</h2>
  448. </div>
  449. </div>
  450. </div>
  451. </div>
  452. </div>
  453. <div class="row">
  454. <div class="col-sm-4 ">
  455. <div class="left_box rows num_box">
  456. <div class="Announcement_box" style="width: 100%;">
  457. <div class="Announcement_title clearfix">
  458. <span class="fl" style="padding-left: 25px;">通知公告</span>
  459. <span class="rl" style="padding-right: 25px;">
  460. <a href="Announcement/AnnManagement.html">更多&gt;&gt;</a>
  461. </span>
  462. </div>
  463. <div class="Announcement_common">
  464. <ul style="padding: 0;" class="Ann">
  465. <!--<li>
  466. <div class="new_title clearfix">
  467. <h1 class="fl s-14">
  468. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  469. </h1>
  470. <em class="rl s-14">2017-5-21</em>
  471. </div>
  472. </li>
  473. <li>
  474. <div class="new_title clearfix">
  475. <h1 class="fl s-14">
  476. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  477. </h1>
  478. <em class="rl s-14">2017-5-21</em>
  479. </div>
  480. </li>
  481. <li>
  482. <div class="new_title clearfix">
  483. <h1 class="fl s-14">
  484. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  485. </h1>
  486. <em class="rl s-14">2017-5-21</em>
  487. </div>
  488. </li>
  489. <li>
  490. <div class="new_title clearfix">
  491. <h1 class="fl s-14">
  492. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  493. </h1>
  494. <em class="rl s-14">2017-5-21</em>
  495. </div>
  496. </li>
  497. <li>
  498. <div class="new_title clearfix">
  499. <h1 class="fl s-14">
  500. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  501. </h1>
  502. <em class="rl s-14">2017-5-21</em>
  503. </div>
  504. </li>-->
  505. </ul>
  506. </div>
  507. </div>
  508. </div>
  509. </div>
  510. <div class="col-sm-4 ">
  511. <div class="left_box rows num_box">
  512. <div style="margin-top: 30px; width: 100%;">
  513. <div style="padding-left: 25px;font-size: 16px;font-weight: 800">
  514. <span>工单信息</span>
  515. </div>
  516. <div class="col-md-7 clear">
  517. <div class="widgets p-xl ss" id="hx" style="height: 300px;">
  518. </div>
  519. </div>
  520. <div class="col-md-5 clear">
  521. <div class="widgets p-xl border_left" style="margin-top: 60px;">
  522. <ul class="c-b-ul clearfix">
  523. <li class="fl Text">今日完成量</li>
  524. <li class="fl Text">今日待完成量</li>
  525. <li class="fl Text">今日待完成量</li>
  526. </ul>
  527. </div>
  528. </div>
  529. </div>
  530. </div>
  531. </div>
  532. <div class="col-sm-4" style="width: 40%;">
  533. <div class="ibox float-e-margins mt">
  534. <div class="ibox-content">
  535. <div class="flot-chart">
  536. <div class="flot-chart-content" id="flot-pie-chart" style="height: 300px;width: 110%;"></div>
  537. </div>
  538. </div>
  539. </div>
  540. </div>
  541. </div>
  542. <div class="row">
  543. <div class="col-sm-12">
  544. <div class="ibox-content">
  545. <div class="ibox float-e-margins">
  546. <div class="ibox-title border_top padding-left-min">
  547. <div class="ibox-tools margin-tops">
  548. <h3>去年同月相比<strong> ↑ 4.3%</strong></h3>
  549. <!-- <h3 class="size-20">↑ <strong>4.3%</strong></h3>-->
  550. </div>
  551. </div>
  552. <div style="width: 100%;">
  553. <div class="flot-chart-content" id="flot-line-chart" style='height: 400px;'></div>
  554. </div>
  555. </div>
  556. </div>
  557. </div>
  558. </div>
  559. </div>
  560. <script src="./js/content.min.js?v=1.0.0"></script>
  561. <script src="./js/echarts.common.min.js"></script>
  562. <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
  563. <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
  564. <script>
  565. var inval;
  566. $(document).ready(function() {
  567. teltotal();
  568. telhour();
  569. telday();
  570. worktotal();
  571. Ann();
  572. if(inval) {
  573. clearInterval(inval);
  574. }
  575. inval = setInterval(function() {
  576. teltotal();
  577. telhour();
  578. telday();
  579. worktotal();
  580. }, huayi.config.indextime);
  581. })
  582. function Ann() {
  583. $.getJSON(huayi.config.callcenter_url + 'Notice/GetListTop', {
  584. top: 5,
  585. "token": $.cookie("token")
  586. }, function(result) {
  587. console.log(result);
  588. var a;
  589. $(result.rows).each(function(i, n) {
  590. console.log(n.F_CreateOn);
  591. var T = n.F_CreateOn.substring(0, n.F_CreateOn.indexOf(' '));
  592. a = '<li>' +
  593. '<div class="new_title clearfix">' +
  594. '<h1 class="fl s-14">' +
  595. '<a href="Announcement/AnnD.html?wid='+n.F_NoticeId+'"><strong>·</strong> &nbsp;&nbsp;' + n.F_Title + '</a>' +
  596. '</h1>' +
  597. '<em class="rl s-14">' + T + '</em>' +
  598. '</div>' +
  599. '</li>'
  600. $(a).appendTo($(".Ann"));
  601. })
  602. });
  603. }
  604. function teltotal() {
  605. $.getJSON(huayi.config.callcenter_url + 'Index/GetTelRecordsTotal', {
  606. "token": $.cookie("token")
  607. }, function(result) {
  608. if(result.state.toLowerCase() == "success") {
  609. $(".style1").eq(0).find("h2").eq(1).text(result.data.dayin.count);
  610. $(".style1").eq(0).find("h3").text("总时长:" + result.data.dayin.totaltime + "s");
  611. $(".style1").eq(1).find("h2").eq(1).text(result.data.dayout.count);
  612. $(".style1").eq(1).find("h3").text("总时长:" + result.data.dayout.totaltime + "s");
  613. $(".style1").eq(2).find("h2").eq(1).text(result.data.monin.count);
  614. $(".style1").eq(2).find("h3").text("总时长:" + result.data.monin.totaltime + "s");
  615. $(".style1").eq(3).find("h2").eq(1).text(result.data.monout.count);
  616. $(".style1").eq(3).find("h3").text("总时长:" + result.data.monout.totaltime + "s");
  617. $(".style1").eq(4).find("h2").eq(1).text(result.data.daynocon);
  618. }
  619. })
  620. }
  621. //图一
  622. var myChart1 = echarts.init(document.getElementById('flot-pie-chart'));
  623. var option1 = {
  624. tooltip: {},
  625. xAxis: {
  626. 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", ],
  627. axisLabel: {
  628. interval: 0, //横轴信息全部显示
  629. rotate: -0, //-30度角倾斜显示
  630. }
  631. },
  632. yAxis: {},
  633. series: [{
  634. name: '业绩',
  635. type: 'bar',
  636. itemStyle: {
  637. normal: {
  638. color: '#d5d5d5'
  639. }
  640. },
  641. barGap: '-100%',
  642. barMaxWidth: '100',
  643. 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]
  644. }, {
  645. name: '销量',
  646. type: 'bar',
  647. itemStyle: {
  648. normal: {
  649. color: '#7abf62'
  650. }
  651. },
  652. barMaxWidth: '100',
  653. 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]
  654. }]
  655. };
  656. function telhour() {
  657. $.getJSON(huayi.config.callcenter_url + 'Index/GetTelRecordsByHour', {
  658. "token": $.cookie("token")
  659. }, function(result) {
  660. if(result.state.toLowerCase() == "success") {
  661. option1.series[0].data = result.data.total;
  662. option1.series[1].data = result.data.count;
  663. myChart1.setOption(option1);
  664. }
  665. })
  666. }
  667. //myChart.setOption(option);
  668. //图3
  669. var option3 = {
  670. title: {
  671. text: '本月话务量及工单量折线图',
  672. x: -20
  673. },
  674. xAxis: {
  675. labels: {
  676. style: {
  677. color: '#19a0f5', //颜色
  678. fontSize: '12px' //字体
  679. }
  680. },
  681. categories: ['01日', '02日', '03日', '04日', '05日', '06日', '07日', '08日', '09日', '10日', '11日', '12日', '13日', '14日', '15日', '16日', '17日', '18日',
  682. '19日', '20日', '21日', '22日', '23日', '24日', '25日',
  683. '26日', '27日', '28日', '29日', '30日', '31日'
  684. ]
  685. },
  686. yAxis: {
  687. title: {
  688. text: '单位',
  689. rotation: 0,
  690. y: -180,
  691. style: {
  692. color: '#19a0f5', //颜色
  693. fontSize: '16px' //字体
  694. }
  695. },
  696. labels: {
  697. style: {
  698. color: '#19a0f5', //颜色
  699. fontSize: '14px' //字体
  700. }
  701. },
  702. plotLines: [{
  703. value: 0,
  704. width: 1,
  705. color: '#808080'
  706. }]
  707. },
  708. tooltip: {
  709. valueSuffix: '单'
  710. },
  711. legend: {
  712. align: 'right',
  713. verticalAlign: 'top',
  714. x: 0,
  715. y: 0
  716. },
  717. credits: {
  718. enabled: false
  719. },
  720. series: [{
  721. name: '工单量',
  722. data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3,
  723. 13.9, 9.6, 21.5, 25.2, 26.5, 23.3, 6.9, 9.5, 14.5, 18.2,
  724. 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 9.6, 21.5, 25.2
  725. ],
  726. color: '#ffaaac'
  727. }, {
  728. name: '话务量',
  729. data: [2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1,
  730. 8.6, 2.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 9.6,
  731. 13.9, 9.6, 21.5, 25.2, 26.5, 23.3, 6.9, 9.5, 18.2, 21.5, 25.2
  732. ],
  733. color: '#d8e7ef'
  734. }]
  735. };
  736. function telday() {
  737. $.getJSON(huayi.config.callcenter_url + 'Index/GetWorkTelByDay', {
  738. "token": $.cookie("token")
  739. }, function(result) {
  740. if(result.state.toLowerCase() == "success") {
  741. $(".ibox-tools h3 strong").text(result.data.bl);
  742. option3.xAxis.categories = result.data.col;
  743. option3.series[0].data = result.data.worktotal;
  744. option3.series[1].data = result.data.teltotal;
  745. var chart3 = new Highcharts.Chart('flot-line-chart', option3);
  746. }
  747. })
  748. }
  749. //图2
  750. var myChart2 = echarts.init(document.getElementById('hx'));
  751. var option2 = {
  752. title: {
  753. text: '总计',
  754. subtext: '10000',
  755. x: 'center',
  756. y: 60,
  757. textStyle: {
  758. fontWeight: 'normal',
  759. fontSize: 16
  760. }
  761. },
  762. color: ['#bf8bd5', '#68cbcf'],
  763. series: [{
  764. type: 'pie',
  765. radius: ['40%', '60%'],
  766. center: ['50%', '30%'],
  767. avoidLabelOverlap: false,
  768. hoverAnimation: false,
  769. label: {
  770. normal: {
  771. show: false,
  772. position: 'center',
  773. formatter: "",
  774. },
  775. emphasis: {
  776. show: true,
  777. textStyle: {
  778. fontSize: '14',
  779. fontWeight: 'bold'
  780. }
  781. }
  782. },
  783. labelLine: {
  784. normal: {
  785. show: false
  786. }
  787. },
  788. data: [{
  789. value: 335,
  790. name: '直接访问'
  791. },
  792. {
  793. value: 210,
  794. name: '邮件营销'
  795. }
  796. ]
  797. }]
  798. };
  799. function worktotal() {
  800. $.getJSON(huayi.config.callcenter_url + 'Index/GetWorkTotal', {
  801. "token": $.cookie("token")
  802. }, function(result) {
  803. if(result.state.toLowerCase() == "success") {
  804. option2.title.subtext = result.data.daywc * 1 + result.data.daywwc * 1;
  805. option2.series[0].data = [{
  806. value: result.data.daywwc,
  807. name: '今日待完成量'
  808. }, {
  809. value: result.data.daywc,
  810. name: '今日完成量'
  811. }]
  812. $(".bg-blues h3").find("span").text(result.data.daywc);
  813. $(".bg-purple h3").find("span").text(result.data.daywwc);
  814. $(".bg-yellow h3").find("span").text(result.data.monwwc);
  815. myChart2.setOption(option2);
  816. }
  817. })
  818. }
  819. </script>
  820. </body>
  821. <!-- 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 -->
  822. </html>