济源12345的前端

widgets.html 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969
  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: 30%;
  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. position: relative;
  314. }
  315. .c-b-ul {
  316. list-style: none;
  317. padding-left: 0;
  318. }
  319. .c-b-ul span{
  320. position: absolute;
  321. left: 20px;
  322. top: 62px;
  323. font-weight: 600;
  324. font-size: 15px;
  325. color: #676a6c;
  326. }
  327. .c-b-ul #jrdwcl{
  328. top: 112px;
  329. }
  330. .c-b-ul #dydwcl{
  331. top: 162px;
  332. }
  333. .Announcement_title span {
  334. font-size: 16px;
  335. font-weight: 800;
  336. line-height: 80px;
  337. }
  338. .rl {
  339. float: right;
  340. }
  341. .Announcement_common {
  342. font-size: 14px;
  343. }
  344. .Announcement_common li {
  345. margin-bottom: 10px;
  346. }
  347. .At_time {
  348. padding-right: 25px;
  349. }
  350. .Announcement_common li a {
  351. color: #000;
  352. }
  353. .Announcement_common li a:hover {
  354. color: #00a1cb;
  355. }
  356. .new_title {
  357. height: 100%;
  358. line-height: 30px;
  359. padding: 0 15px;
  360. }
  361. .new_title h1 {
  362. margin: 0;
  363. padding: 0;
  364. font-weight: normal;
  365. line-height: 30px;
  366. white-space: nowrap;
  367. overflow: hidden;
  368. text-overflow: ellipsis;
  369. float: left;
  370. width: 55%;
  371. }
  372. .new_list li {
  373. height: 30px;
  374. }
  375. li {
  376. list-style-type: none;
  377. }
  378. .new_title a {
  379. color: #000;
  380. display: block;
  381. width: 100%;
  382. color: #666;
  383. white-space: nowrap;
  384. overflow: hidden;
  385. text-overflow: ellipsis;
  386. }
  387. .s-14 {
  388. font-size: 14px;
  389. }
  390. .new_title em {
  391. font-style: normal;
  392. }
  393. .Widths {
  394. width: 50%;
  395. margin-top: 8%;
  396. }
  397. </style>
  398. </head>
  399. <body class="gray-bg">
  400. <div class="wrapper wrapper-content animated fadeInRight">
  401. <div class="row LISTS" style="display: none;">
  402. <div class="col-sm-2">
  403. <div class="widget style1 bc">
  404. <div class="row">
  405. <div class="col-xs-3 text-center">
  406. <i class="fa iconfont fa-4x bg_black">&#xe732;</i>
  407. </div>
  408. <div class="col-xs-9 text-left mins-left">
  409. <h2 class="size-16 jg min_bottom"> 今日来电 </h2>
  410. <h2 class="font-bold size-15 min_bottom">0</h2>
  411. <h3 class="font-bold size-12 ">总时长:0M</h3>
  412. </div>
  413. </div>
  414. </div>
  415. </div>
  416. <div class="col-sm-2">
  417. <div class="widget style1 bc ">
  418. <div class="row">
  419. <div class="col-xs-3">
  420. <i class="fa iconfont fa-4x bg_green">&#xe735;</i>
  421. </div>
  422. <div class="col-xs-9 text-left mins-left">
  423. <h2 class="size-16 jg min_bottom"> 今日去电 </h2>
  424. <h2 class="font-bold size-15 min_bottom">0</h2>
  425. <h3 class="font-bold size-12 ">总时长:0M</h3>
  426. </div>
  427. </div>
  428. </div>
  429. </div>
  430. <div class="col-sm-2">
  431. <div class="widget style1 bc">
  432. <div class="row">
  433. <div class="col-xs-3">
  434. <i class="fa iconfont fa-4x bg_blue">&#xe606;</i>
  435. </div>
  436. <div class="col-xs-9 text-left mins-left">
  437. <h2 class="size-16 jg min_bottom"> 本月来电 </h2>
  438. <h2 class="font-bold size-15 min_bottom">0</h2>
  439. <h3 class="font-bold size-12 ">总时长:0M</h3>
  440. </div>
  441. </div>
  442. </div>
  443. </div>
  444. <div class="col-sm-2">
  445. <div class="widget style1 bc ">
  446. <div class="row">
  447. <div class="col-xs-3">
  448. <i class="fa iconfont fa-4x bg_red">&#xe61f;</i>
  449. </div>
  450. <div class="col-xs-9 text-left mins-left">
  451. <h2 class="size-16 jg min_bottom"> 本月去电 </h2>
  452. <h2 class="font-bold size-15 min_bottom">0</h2>
  453. <h3 class="font-bold size-12 ">总时长:0M</h3>
  454. </div>
  455. </div>
  456. </div>
  457. </div>
  458. <div class="col-sm-2">
  459. <div class="widget style1 bc ">
  460. <div class="row">
  461. <div class="col-xs-3">
  462. <i class="fa iconfont fa-4x bg_wj">&#xe61f;</i>
  463. </div>
  464. <div class="col-xs-9 text-left mins-left">
  465. <h2 class="size-16 jg min_bottom"> 未接来电</h2>
  466. <h2 class="font-bold size-15 min_bottom">0</h2>
  467. </div>
  468. </div>
  469. </div>
  470. </div>
  471. </div>
  472. <div class="row" style="margin-bottom: 20px;">
  473. <div class="col-sm-4 LIST_">
  474. <div class="left_box rows num_box">
  475. <div class="Announcement_box" style="width: 100%;">
  476. <div class="Announcement_title clearfix">
  477. <span class="fl" style="padding-left: 25px;">通知公告</span>
  478. <span class="rl" style="padding-right: 25px;">
  479. <a href="Announcement/NoAnnManagement.html">更多&gt;&gt;</a>
  480. </span>
  481. </div>
  482. <div class="Announcement_common">
  483. <ul style="padding: 0;" class="Ann">
  484. <!--<li>
  485. <div class="new_title clearfix">
  486. <h1 class="fl s-14">
  487. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  488. </h1>
  489. <em class="rl s-14">2017-5-21</em>
  490. </div>
  491. </li>
  492. <li>
  493. <div class="new_title clearfix">
  494. <h1 class="fl s-14">
  495. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  496. </h1>
  497. <em class="rl s-14">2017-5-21</em>
  498. </div>
  499. </li>
  500. <li>
  501. <div class="new_title clearfix">
  502. <h1 class="fl s-14">
  503. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  504. </h1>
  505. <em class="rl s-14">2017-5-21</em>
  506. </div>
  507. </li>
  508. <li>
  509. <div class="new_title clearfix">
  510. <h1 class="fl s-14">
  511. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  512. </h1>
  513. <em class="rl s-14">2017-5-21</em>
  514. </div>
  515. </li>
  516. <li>
  517. <div class="new_title clearfix">
  518. <h1 class="fl s-14">
  519. <a ><strong>·</strong> &nbsp;&nbsp;关于有关政策落实情况汇报</a>
  520. </h1>
  521. <em class="rl s-14">2017-5-21</em>
  522. </div>
  523. </li>-->
  524. </ul>
  525. </div>
  526. </div>
  527. </div>
  528. </div>
  529. <div class="col-sm-4 LIST_ ">
  530. <div class="left_box rows num_box">
  531. <div style="margin-top: 30px; width: 100%;">
  532. <div style="padding-left: 25px;font-size: 16px;font-weight: 800">
  533. <span>工单信息</span>
  534. </div>
  535. <div class="col-md-7 clear">
  536. <div class="widgets p-xl ss" id="hx" style="height: 300px;">
  537. </div>
  538. </div>
  539. <div class="col-md-5 clear">
  540. <div class="widgets p-xl border_left" style="margin-top:26px;">
  541. <ul class="c-b-ul clearfix">
  542. <li class="fl Text">今日完成量:</li>
  543. <span id="jrwcl"></span>
  544. <li class="fl Text">今日待完成量:</li>
  545. <span id="jrdwcl"></span>
  546. <li class="fl Text">当月待完成量:</li>
  547. <span id="dydwcl"></span>
  548. </ul>
  549. </div>
  550. </div>
  551. </div>
  552. </div>
  553. </div>
  554. <div class="col-sm-4 LISTS " style="width: 40%;display: none;">
  555. <div class="ibox float-e-margins mt">
  556. <div class="ibox-content">
  557. <div class="flot-chart">
  558. <div class="flot-chart-content" id="flot-pie-chart" style="height: 295px;width: 100%;"></div>
  559. </div>
  560. </div>
  561. </div>
  562. </div>
  563. </div>
  564. <div class="row LISTS" style="display: none;">
  565. <div class="col-sm-12">
  566. <div class="ibox-content">
  567. <div class="ibox float-e-margins">
  568. <div class="ibox-title border_top padding-left-min">
  569. <div class="ibox-tools margin-tops">
  570. <h3>去年同月相比<strong> ↑ 4.3%</strong></h3>
  571. <!-- <h3 class="size-20">↑ <strong>4.3%</strong></h3>-->
  572. </div>
  573. </div>
  574. <div style="width: 100%;">
  575. <div class="flot-chart-content" id="flot-line-chart" style='height: 400px;'></div>
  576. </div>
  577. <input type="hidden" id="RoleCode" />
  578. </div>
  579. </div>
  580. </div>
  581. </div>
  582. </div>
  583. <script src="./js/content.min.js?v=1.0.0"></script>
  584. <script src="./js/echarts.common.min.js"></script>
  585. <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
  586. <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
  587. <!--<script src="./js/highcharts.js"></script>-->
  588. <script>
  589. var inval;
  590. $(document).ready(function() {
  591. teltotal();
  592. telhour();
  593. telday();
  594. worktotal();
  595. Ann();
  596. DL();
  597. if(inval) {
  598. clearInterval(inval);
  599. }
  600. inval = setInterval(function() {
  601. teltotal();
  602. telhour();
  603. telday();
  604. worktotal();
  605. }, huayi.config.indextime);
  606. })
  607. if ($.cookie("token") == null) {
  608. window.location.href = "login.html";
  609. }
  610. function DL() {
  611. $.getJSON(huayi.config.callcenter_url + 'UserAccount/GetNowUser', {
  612. "token": $.cookie("token")
  613. }, function(result) {
  614. if(result.state.toLowerCase() == "success") {
  615. $("#RoleCode").val(result.data.user.F_RoleCode);
  616. if(result.data.user.F_RoleCode == "WLDW"){//改为除网络单位看不到,其他都能看到
  617. $(".LISTS").hide();
  618. $(".LIST_").addClass("Widths")
  619. } else {
  620. $(".LISTS").show();
  621. }
  622. }
  623. })
  624. }
  625. function Ann() {
  626. $.getJSON(huayi.config.callcenter_url + 'Notice/GetListTop', {
  627. top: 5,
  628. "token": $.cookie("token")
  629. }, function(result) {
  630. //console.log(result);
  631. var a;
  632. $(result.rows).each(function(i, n) {
  633. //console.log(n.F_CreateOn);
  634. var T = n.F_CreateOn.substring(0, n.F_CreateOn.indexOf(' '));
  635. a = '<li>' +
  636. '<div class="new_title clearfix">' +
  637. '<h1 class="fl s-14">' +
  638. '<a href="Announcement/AnnD.html?wid=' + n.F_NoticeId + '"><strong>·</strong> &nbsp;&nbsp;' + n.F_Title + '</a>' +
  639. '</h1>' +
  640. '<em class="rl s-14">' + T + '</em>' +
  641. '</div>' +
  642. '</li>'
  643. $(a).appendTo($(".Ann"));
  644. })
  645. });
  646. }
  647. function teltotal() {
  648. $.getJSON(huayi.config.callcenter_url + 'Index/GetTelRecordsTotal', {
  649. "token": $.cookie("token")
  650. }, function(result) {
  651. if(result.state.toLowerCase() == "success") {
  652. $(".style1").eq(0).find("h2").eq(1).text(result.data.dayin.count);
  653. $(".style1").eq(0).find("h3").text("总时长:" + result.data.dayin.totaltime + "");
  654. $(".style1").eq(1).find("h2").eq(1).text(result.data.dayout.count);
  655. $(".style1").eq(1).find("h3").text("总时长:" + result.data.dayout.totaltime + "");
  656. $(".style1").eq(2).find("h2").eq(1).text(result.data.monin.count);
  657. $(".style1").eq(2).find("h3").text("总时长:" + result.data.monin.totaltime + "");
  658. $(".style1").eq(3).find("h2").eq(1).text(result.data.monout.count);
  659. $(".style1").eq(3).find("h3").text("总时长:" + result.data.monout.totaltime + "");
  660. $(".style1").eq(4).find("h2").eq(1).text(result.data.daynocon);
  661. }
  662. })
  663. }
  664. function telhour() {
  665. $.getJSON(huayi.config.callcenter_url + 'Index/GetTelRecordsByHour', {
  666. "token": $.cookie("token")
  667. }, function(result) {
  668. if(result.state.toLowerCase() == "success") {
  669. // option1.series[0].data = result.data.total;
  670. // option1.series[1].data = result.data.count;
  671. // myChart1.setOptions(option1);
  672. //图一
  673. $('#flot-pie-chart').highcharts({
  674. chart: {
  675. type: 'column'
  676. },
  677. credits: {
  678. enabled: false // 禁用版权信息
  679. },
  680. exporting: {
  681. enabled: false
  682. },
  683. title: {
  684. text: ''
  685. },
  686. xAxis: {
  687. //categories: ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", ],
  688. categories: result.data.col,
  689. crosshair: true
  690. },
  691. yAxis: {
  692. min: 0,
  693. title: {
  694. text: ''
  695. }
  696. },
  697. tooltip: {
  698. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  699. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  700. '<td style="padding:0"><b>{point.y} </b></td></tr>',
  701. footerFormat: '</table>',
  702. shared: true,
  703. useHTML: true
  704. },
  705. series: [{
  706. name: '来电数量',
  707. data: result.data.total
  708. }, {
  709. name: '接通数量',
  710. data: result.data.count
  711. }]
  712. });
  713. }
  714. })
  715. }
  716. //myChart.setOption(option);
  717. //图3
  718. var option3 = {
  719. title: {
  720. text: '本月话务量及工单量折线图',
  721. x: -20
  722. },
  723. xAxis: {
  724. labels: {
  725. style: {
  726. color: '#19a0f5', //颜色
  727. fontSize: '12px' //字体
  728. }
  729. },
  730. categories: ['01日', '02日', '03日', '04日', '05日', '06日', '07日', '08日', '09日', '10日', '11日', '12日', '13日', '14日', '15日', '16日', '17日', '18日',
  731. '19日', '20日', '21日', '22日', '23日', '24日', '25日',
  732. '26日', '27日', '28日', '29日', '30日', '31日'
  733. ]
  734. },
  735. yAxis: {
  736. title: {
  737. text: '单位',
  738. rotation: 0,
  739. y: -180,
  740. style: {
  741. color: '#19a0f5', //颜色
  742. fontSize: '16px' //字体
  743. }
  744. },
  745. labels: {
  746. style: {
  747. color: '#19a0f5', //颜色
  748. fontSize: '14px' //字体
  749. }
  750. },
  751. plotLines: [{
  752. value: 0,
  753. width: 1,
  754. color: '#808080'
  755. }]
  756. },
  757. tooltip: {
  758. valueSuffix: '单'
  759. },
  760. legend: {
  761. align: 'right',
  762. verticalAlign: 'top',
  763. x: 0,
  764. y: 0
  765. },
  766. credits: {
  767. enabled: false
  768. },
  769. series: [{
  770. name: '工单量',
  771. data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3,
  772. 13.9, 9.6, 21.5, 25.2, 26.5, 23.3, 6.9, 9.5, 14.5, 18.2,
  773. 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 9.6, 21.5, 25.2
  774. ],
  775. color: '#ffaaac'
  776. }, {
  777. name: '话务量',
  778. data: [2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1,
  779. 8.6, 2.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 9.6,
  780. 13.9, 9.6, 21.5, 25.2, 26.5, 23.3, 6.9, 9.5, 18.2, 21.5, 25.2
  781. ],
  782. color: '#d8e7ef'
  783. }]
  784. };
  785. function telday() {
  786. $.getJSON(huayi.config.callcenter_url + 'Index/GetWorkTelByDay', {
  787. "token": $.cookie("token")
  788. }, function(result) {
  789. if(result.state.toLowerCase() == "success") {
  790. $(".ibox-tools h3 strong").text(result.data.bl);
  791. option3.xAxis.categories = result.data.col;
  792. option3.series[0].data = result.data.worktotal;
  793. option3.series[1].data = result.data.teltotal;
  794. var chart3 = new Highcharts.Chart('flot-line-chart', option3);
  795. }
  796. })
  797. }
  798. //图2
  799. var myChart2 = echarts.init(document.getElementById('hx'));
  800. var option2 = {
  801. title: {
  802. text: '总计',
  803. subtext: '10000',
  804. x: 'center',
  805. y: 60,
  806. textStyle: {
  807. fontWeight: 'normal',
  808. fontSize: 16
  809. }
  810. },
  811. color: ['#bf8bd5', '#68cbcf'],
  812. series: [{
  813. type: 'pie',
  814. radius: ['40%', '60%'],
  815. center: ['50%', '30%'],
  816. avoidLabelOverlap: false,
  817. hoverAnimation: false,
  818. label: {
  819. normal: {
  820. show: false,
  821. position: 'center',
  822. formatter: "",
  823. },
  824. emphasis: {
  825. show: true,
  826. textStyle: {
  827. fontSize: '14',
  828. fontWeight: 'bold'
  829. }
  830. }
  831. },
  832. labelLine: {
  833. normal: {
  834. show: false
  835. }
  836. },
  837. data: [{
  838. value: 335,
  839. name: '直接访问'
  840. },
  841. {
  842. value: 210,
  843. name: '邮件营销'
  844. }
  845. ]
  846. }]
  847. };
  848. function worktotal() {
  849. $.getJSON(huayi.config.callcenter_url + 'Index/GetWorkTotal', {
  850. "token": $.cookie("token")
  851. }, function(result) {
  852. if(result.state.toLowerCase() == "success") {
  853. option2.title.subtext = result.data.daywc * 1 + result.data.daywwc * 1;
  854. option2.series[0].data = [{
  855. value: result.data.daywwc,
  856. name: '今日待完成量'
  857. }, {
  858. value: result.data.daywc,
  859. name: '今日完成量'
  860. }];
  861. $('#jrwcl').text(result.data.daywc);
  862. $('#jrdwcl').text(result.data.daywwc);
  863. $('#dydwcl').text(result.data.monwwc);
  864. // $(".bg-blues h3").find("span").text(result.data.daywc);
  865. // $(".bg-purple h3").find("span").text(result.data.daywwc);
  866. // $(".bg-yellow h3").find("span").text(result.data.monwwc);
  867. myChart2.setOption(option2);
  868. }
  869. })
  870. }
  871. </script>
  872. </body>
  873. <!-- 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 -->
  874. </html>