商丘市柘城县——前端

Census.html 33KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177
  1. <!doctype html>
  2. <html lang="en" class="feedback">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>数据统计</title>
  7. <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
  8. <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
  9. <style>
  10. .mui-control-content {
  11. background-color: white;
  12. min-height: 215px;
  13. }
  14. .mui-control-content .mui-loading {
  15. margin-top: 50px;
  16. }
  17. .chart {
  18. height: 260px;
  19. margin: 0px;
  20. padding: 0px;
  21. }
  22. .mui-slider .mui-slider-group {
  23. height: 500px;
  24. }
  25. #CS {
  26. position: absolute;
  27. right: 0;
  28. height: 100%;
  29. padding: 0;
  30. padding-left: 5px;
  31. border: none;
  32. z-index: 30;
  33. width: 100%;
  34. }
  35. .mui-scroll {
  36. height: 100%;
  37. }
  38. #lineChart {
  39. position: absolute;
  40. top: 0;
  41. right: 0;
  42. bottom: 0;
  43. left: 0;
  44. padding: 10px;
  45. -webkit-box-sizing: border-box;
  46. box-sizing: border-box;
  47. }
  48. .mui-grid-bottom {
  49. height: 2px;
  50. background-color: #57cebf;
  51. display: block;
  52. width: 20px;
  53. margin: 0 auto;
  54. }
  55. </style>
  56. </head>
  57. <body>
  58. <header class="mui-bar mui-bar-nav">
  59. <h1 id="title" class="mui-title">区域报表</h1>
  60. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
  61. </header>
  62. <div class="mui-content ">
  63. <form id='login-form' class="mui-input-group">
  64. <!--logo-->
  65. <div class="mui-input-row">
  66. <label>区域:</label>
  67. <select name="" class="mui-select">
  68. </select>
  69. </div>
  70. <div class="mui-input-row mui-password">
  71. <label>时间:</label>
  72. <!--<input id='password' type="datetime-local" class=" mui-input" >-->
  73. <input id='demo1' data-options='{}' type="text" class="mui-input-clear btn contact" />
  74. </div>
  75. </form>
  76. <div id="slider" class="mui-slider">
  77. <div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
  78. <a class="mui-control-item mui-active" href="#item1mobile" index="1">
  79. 日报
  80. </a>
  81. <a class="mui-control-item" href="#item2mobile" index="2">
  82. 周报
  83. </a>
  84. <a class="mui-control-item" href="#item3mobile" index="3">
  85. 月报
  86. </a>
  87. </div>
  88. <div class="mui-slider-group">
  89. <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
  90. <div id="scroll1" class="mui-scroll-wrapper">
  91. <div class="mui-scroll">
  92. <div class="chart" id="pieChart"></div>
  93. <div>
  94. <ul class="mui-table-view mui-grid-view mui-grid-9">
  95. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  96. <a href="#">
  97. <span class="size-20" id="jsblrate"></span>
  98. <div class="mui-media-body size-14">即时办理率</div>
  99. </a>
  100. <span class="mui-grid-bottom"></span>
  101. </li>
  102. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  103. <a href="#">
  104. <span class="size-20" id="wlzbrate"></span>
  105. <div class="mui-media-body size-14">转办率</div>
  106. </a>
  107. <span class="mui-grid-bottom"></span>
  108. </li>
  109. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  110. <a href="#">
  111. <span class="size-20" id="zbbjrate"></span>
  112. <div class="mui-media-body size-14">转办办结率</div>
  113. </a>
  114. <span class="mui-grid-bottom"></span>
  115. </li>
  116. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  117. <a href="#">
  118. <span class="size-20" id="bjrate"></span>
  119. <div class="mui-media-body size-14">办结率</div>
  120. </a>
  121. <span class="mui-grid-bottom"></span>
  122. </li>
  123. </ul>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <div id="item2mobile" class="mui-slider-item mui-control-content">
  129. <div id="scroll2" class="mui-scroll-wrapper">
  130. <div class="mui-scroll">
  131. <div class="chart" id="barChart"></div>
  132. <div>
  133. <ul class="mui-table-view mui-grid-view mui-grid-9">
  134. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  135. <a href="#">
  136. <span class="size-20" id="week-jsblrate"></span>
  137. <div class="mui-media-body size-14">即时办理率</div>
  138. </a>
  139. </li>
  140. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  141. <a href="#">
  142. <span class="size-20" id="week-wlzbrate"></span>
  143. <div class="mui-media-body size-14">转办率</div>
  144. </a>
  145. </li>
  146. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  147. <a href="#">
  148. <span class="size-20" id="week-zbbjrate"></span>
  149. <div class="mui-media-body size-14">转办办结率</div>
  150. </a>
  151. </li>
  152. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  153. <a href="#">
  154. <span class="size-20" id="week-bjrate"></span>
  155. <div class="mui-media-body size-14">办结率</div>
  156. </a>
  157. </li>
  158. </ul>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. <div id="item3mobile" class="mui-slider-item mui-control-content">
  164. <div id="scroll2" class="mui-scroll-wrapper">
  165. <div class="mui-scroll">
  166. <div class="chart" id="Chart">5555</div>
  167. <div>
  168. <ul class="mui-table-view mui-grid-view mui-grid-9">
  169. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  170. <a href="#">
  171. <span class="size-20" id="month-jsblrate"></span>
  172. <div class="mui-media-body size-14">即时办理率</div>
  173. </a>
  174. </li>
  175. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  176. <a href="#">
  177. <span class="size-20" id="month-wlzbrate"></span>
  178. <div class="mui-media-body size-14">转办率</div>
  179. </a>
  180. </li>
  181. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  182. <a href="#">
  183. <span class="size-20" id="month-zbbjrate"></span>
  184. <div class="mui-media-body size-14">转办办结率</div>
  185. </a>
  186. </li>
  187. <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
  188. <a href="#">
  189. <span class="size-20" id="month-bjrate"></span>
  190. <div class="mui-media-body size-14">办结率</div>
  191. </a>
  192. </li>
  193. </ul>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <script src="../js/zepto.js"></script>
  202. <script src="../js/mui.min.js"></script>
  203. <script src="../js/echarts.common.min.js"></script>
  204. <script src="../js/huayi.config.js"></script>
  205. <script src="../js/mui.picker.min.js"></script>
  206. <script type="text/javascript">
  207. mui.init();
  208. window.onload = function() {
  209. mui('.mui-scroll-wrapper').scroll({
  210. deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
  211. });
  212. }
  213. var usercode = localStorage.getItem("user"); //获取本地存储
  214. var goodslist;
  215. var index_=1;
  216. //本周图表
  217. var xAxis = [];
  218. var yAxis = [];
  219. var yAxiss = [];
  220. //本月
  221. var xAxis_math = [];
  222. var yAxis_math = [];
  223. var yAxiss_math = []
  224. mui.plusReady(function() {
  225. var wv = plus.webview.currentWebview();
  226. var index = wv.index;
  227. plus.nativeUI.closeWaiting();
  228. //显示当前页面
  229. mui.currentWebview.show();
  230. //下拉框
  231. $.ajax({
  232. type: "get",
  233. url: huayi.config.callcenter_url + '/APP/GetAreaList',
  234. async: false,
  235. dataType: 'json',
  236. data: {
  237. usercode: usercode
  238. },
  239. success: function(data) {
  240. console.log(data.state);
  241. if(data.state == "success") {
  242. goodslist = data.data;
  243. bindseat($(".mui-select"));
  244. }
  245. },
  246. error: function(data) {
  247. console.log(data.message);
  248. }
  249. });
  250. //下拉框
  251. function bindseat(obj) {
  252. obj.empty();
  253. // obj.append('<option value="0" selected="true">所有区域</option>');
  254. $(goodslist).each(function(i, n) {
  255. obj.append('<option value="' + n.F_AreaId + '">' + n.F_AreaName + '</option>');
  256. })
  257. }
  258. AreaL();//日报
  259. AreaLs();//周报
  260. Month();//月报
  261. //日期
  262. var dates = new Date();
  263. var time = dates.getFullYear() + "-" + (dates.getMonth() + 1) + '-' + dates.getDate();
  264. $("#demo1").val(time);
  265. //时间选择
  266. var btns = mui('.btn');
  267. btns.each(function(i, btn) {  
  268. btn.addEventListener('tap', function() {   
  269. var dtPicker = new mui.DtPicker({    
  270. type: "date", //设置日历初始视图模式
  271.   
  272. });  
  273. dtPicker.show(function(e) {
  274. $("#demo1").val(e);
  275. AreaL();//日报
  276. AreaLs();//周报
  277. }); 
  278. }, false);
  279. })
  280. $(".mui-select").on('change', function() {
  281. console.log($('.mui-select').val());
  282. AreaL();//日报
  283. AreaLs();//周报
  284. Month();//月报
  285. })
  286. //日报的数据
  287. function AreaL() {
  288. console.log($('.mui-select').val());
  289. $.ajax({
  290. type: "get",
  291. url: huayi.config.callcenter_url + '/app/GetAPPWorkReportSingle',
  292. async: true,
  293. dataType: 'json',
  294. data: {
  295. usercode: usercode,
  296. datetype: index_,
  297. date: $("#demo1").val(),
  298. datatype:index,
  299. dataid: $('.mui-select').val()
  300. },
  301. success: function(data) {
  302. if(data.state == "success") {
  303. var Data = data.data.APPDayWeekMonthReportSingle[0];
  304. // alert(JSON.stringify(Data))
  305. $("#bjrate").text(Data.bjrate);
  306. $("#jsblrate").text(Data.jsblrate);
  307. $("#wlzbrate").text(Data.wlzbrate);
  308. $("#zbbjrate").text(Data.zbbjrate);
  309. var option = {
  310. tooltip: {
  311. formatter: "{b} : {c} ({d}%)"
  312. },
  313. legend: {
  314. orient: 'vertical',
  315. top: 'middle',
  316. x: 'top',
  317. left: 10,
  318. top: 3,
  319. data: ['即时办结', '网络转办', '转办办结']
  320. },
  321. series: [{
  322. type: 'pie',
  323. radius: '55%',
  324. selectedMode: 'single',
  325. center: ['50%', '60%'],
  326. label: {
  327. normal: {
  328. formatter: "{b} : {c} ",
  329. }
  330. },
  331. labelLine: {
  332. normal: {
  333. show: false
  334. }
  335. },
  336. data: [{
  337. value: data.data.APPDayWeekMonthReportSingle[0].jsblcount,
  338. name: '即时办结',
  339. },
  340. {
  341. value: data.data.APPDayWeekMonthReportSingle[0].wlzbcount,
  342. name: '网络转办',
  343. },
  344. {
  345. value: data.data.APPDayWeekMonthReportSingle[0].zbbjcount,
  346. name: '转办办结',
  347. }
  348. ],
  349. }]
  350. };
  351. echartsPie = echarts.init(document.getElementById('pieChart'));
  352. echartsPie.setOption(option);
  353. }
  354. },
  355. error: function(data) {
  356. console.log(data.message);
  357. }
  358. });
  359. }
  360. AreaLs();
  361. Month();
  362. //周报
  363. function AreaLs() {
  364. console.log($('.mui-select').val());
  365. $.ajax({
  366. type: "get",
  367. url: huayi.config.callcenter_url + '/app/GetAPPWorkReportSingle',
  368. async: true,
  369. dataType: 'json',
  370. data: {
  371. usercode: usercode,
  372. datetype: 2,
  373. date: $("#demo1").val(),
  374. datatype:index,
  375. dataid: $('.mui-select').val()
  376. },
  377. success: function(data) {
  378. if(data.state == "success") {
  379. var Data = data.data.APPDayWeekMonthReportSingle[0];
  380. // alert(JSON.stringify(Data))
  381. $("#week-bjrate").text(Data.bjrate)
  382. $("#week-jsblrate").text(Data.jsblrate);
  383. $("#week-wlzbrate").text(Data.wlzbrate);
  384. $("#week-zbbjrate").text(Data.zbbjrate);
  385. var option = {
  386. tooltip: {
  387. formatter: "{b} : {c} ({d}%)"
  388. },
  389. legend: {
  390. orient: 'vertical',
  391. top: 'middle',
  392. x: 'left',
  393. left: 5,
  394. top: 5,
  395. data: ['即时办结', '网络转办', '转办办结']
  396. },
  397. series: [{
  398. type: 'pie',
  399. radius: '55%',
  400. selectedMode: 'single',
  401. center: ['50%', '60%'],
  402. label: {
  403. normal: {
  404. formatter: "{a} {b} : {c} ",
  405. }
  406. },
  407. labelLine: {
  408. normal: {
  409. show: false
  410. }
  411. },
  412. data: [{
  413. value: data.data.APPDayWeekMonthReportSingle[0].jsblcount,
  414. name: '即时办结',
  415. },
  416. {
  417. value: data.data.APPDayWeekMonthReportSingle[0].wlzbcount,
  418. name: '网络转办',
  419. },
  420. {
  421. value: data.data.APPDayWeekMonthReportSingle[0].zbbjcount,
  422. name: '转办办结',
  423. }
  424. ],
  425. }]
  426. };
  427. echartsPie = echarts.init(document.getElementById('barChart'));
  428. echartsPie.setOption(option);
  429. }
  430. },
  431. error: function(data) {
  432. console.log(data.message);
  433. }
  434. });
  435. }
  436. //月报
  437. function Month(){
  438. console.log($('.mui-select').val());
  439. $.ajax({
  440. type: "get",
  441. url: huayi.config.callcenter_url + '/app/GetAPPWorkReportSingle',
  442. async: true,
  443. dataType: 'json',
  444. data: {
  445. usercode: usercode,
  446. datetype: 3,
  447. date: $("#demo1").val(),
  448. datatype:index,
  449. dataid: $('.mui-select').val()
  450. },
  451. success: function(data) {
  452. if(data.state == "success") {
  453. var Data = data.data.APPDayWeekMonthReportSingle[0];
  454. // alert(JSON.stringify(Data))
  455. $("#month-bjrate").text(Data.bjrate)
  456. $("#month-jsblrate").text(Data.jsblrate);
  457. $("#month-wlzbrate").text(Data.wlzbrate);
  458. $("#month-zbbjrate").text(Data.zbbjrate);
  459. var option = {
  460. tooltip: {
  461. formatter: "{a} <br/>{b} : {c} ({d}%)"
  462. },
  463. legend: {
  464. orient: 'vertical',
  465. x: 'left',
  466. left: 10,
  467. top: 10,
  468. data: ['即时办结', '网络转办', '转办办结']
  469. },
  470. series: [{
  471. type: 'pie',
  472. radius: '55%',
  473. selectedMode: 'single',
  474. center: ['50%', '60%'],
  475. label: {
  476. normal: {
  477. formatter: "{a} {b} : {c} ",
  478. }
  479. },
  480. labelLine: {
  481. normal: {
  482. show: false
  483. }
  484. },
  485. data: [{
  486. value: data.data.APPDayWeekMonthReportSingle[0].jsblcount,
  487. name: '即时办结',
  488. },
  489. {
  490. value: data.data.APPDayWeekMonthReportSingle[0].wlzbcount,
  491. name: '网络转办',
  492. },
  493. {
  494. value: data.data.APPDayWeekMonthReportSingle[0].zbbjcount,
  495. name: '转办办结',
  496. }
  497. ],
  498. }]
  499. };
  500. echartsPie = echarts.init(document.getElementById('Chart'));
  501. echartsPie.setOption(option);
  502. }
  503. },
  504. error: function(data) {
  505. console.log(data.message);
  506. }
  507. });
  508. }
  509. //切换
  510. $(".mui-control-item").on('tap',function(){
  511. var indexs=$(this).attr('index');
  512. index_=indexs;
  513. AreaL();
  514. AreaLs();
  515. Month();
  516. })
  517. //本周
  518. // $.ajax({
  519. // type: "get",
  520. // url: huayi.config.callcenter_url + 'WorkOrder/GetWeekReport',
  521. // async: true,
  522. // dataType: 'json',
  523. // data: {
  524. // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
  525. // },
  526. // success: function(data) {
  527. // console.log(data.state);
  528. // if(data.state == "success") {
  529. // console.log(data.data[0].unfinish);
  530. // $("#Workfinish").text(data.data[7].finish);
  531. // $("#Workunfinifh").text(data.data[7].unfinish);
  532. // $("#WorkTotal").text(data.data[7].finish + data.data[0].unfinish);
  533. // for(var i = 0; i < data.data.length; i++) {
  534. // xAxis.push(data.data[i].ID);
  535. //
  536. // yAxis.push(data.data[i].unfinish);
  537. // yAxiss.push(data.data[i].finish)
  538. // }
  539. //
  540. // var option = {
  541. // grid: {
  542. // x: 35,
  543. // x2: 10,
  544. // y: 30,
  545. // y2: 25,
  546. // borderWidth: 0
  547. // },
  548. // toolbox: {
  549. // show: false,
  550. // feature: {
  551. // mark: {
  552. // show: true
  553. // },
  554. // dataView: {
  555. // show: true,
  556. // readOnly: false
  557. // },
  558. // magicType: {
  559. // show: true,
  560. // type: ['line', 'bar']
  561. // },
  562. // restore: {
  563. // show: true
  564. // },
  565. // saveAsImage: {
  566. // show: true
  567. // }
  568. // }
  569. // },
  570. // legend: {
  571. // top: 20,
  572. // data: ['已完成', '未完成', ]
  573. // },
  574. //
  575. // calculable: false,
  576. // xAxis: [{
  577. // axisLabel: {
  578. // interval: 0
  579. // },
  580. //
  581. // splitArea: {
  582. // show: false,
  583. // },
  584. // splitLine: {
  585. // show: false
  586. // }, //去除网格线
  587. // type: 'category',
  588. // data: xAxis
  589. // }],
  590. // yAxis: [{
  591. // show: false,
  592. // splitLine: {
  593. // show: false
  594. // }, //去除网格线
  595. // type: 'value',
  596. // splitArea: {
  597. // show: false,
  598. // }
  599. // }],
  600. // series: [{
  601. // name: '已完成',
  602. // type: 'bar',
  603. // barWidth: 10, //柱图宽度
  604. // itemStyle: {
  605. // normal: {
  606. // label: {
  607. // show: true
  608. // }
  609. // }
  610. // },
  611. // data: yAxis
  612. // }, {
  613. // name: '未完成',
  614. // type: 'bar',
  615. // barWidth: 10, //柱图宽度
  616. // itemStyle: {
  617. // normal: {
  618. // label: {
  619. // show: true
  620. // }
  621. // }
  622. // },
  623. // data: yAxiss
  624. // }]
  625. // };
  626. // echartsPie = echarts.init(document.getElementById('barChart'));
  627. // echartsPie.setOption(option);
  628. // }
  629. //
  630. // },
  631. // error: function(data) {
  632. // console.log(data.message);
  633. // }
  634. // });
  635. //本月
  636. // $.ajax({
  637. // type: "get",
  638. // url: huayi.config.callcenter_url + 'WorkOrder/GetMonthReport',
  639. // async: true,
  640. // dataType: 'json',
  641. // data: {
  642. // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
  643. // },
  644. // success: function(data) {
  645. // console.log(data.state);
  646. // if(data.state == "success") {
  647. // console.log(data.data[0].unfinish);
  648. // $("#Workfinish").text(data.data[7].finish);
  649. // $("#Workunfinifh").text(data.data[7].unfinish);
  650. // $("#WorkTotal").text(data.data[7].finish + data.data[0].unfinish);
  651. // for(var i = 0; i < data.data.length; i++) {
  652. // xAxis_math.push(data.data[i].ID);
  653. //
  654. // yAxis_math.push(data.data[i].unfinish);
  655. // yAxiss_math.push(data.data[i].finish)
  656. // }
  657. //
  658. // // var option = {
  659. // // grid: {
  660. // // x: 35,
  661. // // x2: 10,
  662. // // y: 30,
  663. // // y2: 50,
  664. // // borderWidth: 0
  665. // // },
  666. // // toolbox: {
  667. // // show: false,
  668. // // feature: {
  669. // // mark: {
  670. // // show: true
  671. // // },
  672. // // dataView: {
  673. // // show: true,
  674. // // readOnly: false
  675. // // },
  676. // // magicType: {
  677. // // show: true,
  678. // // type: ['line', 'bar']
  679. // // },
  680. // // restore: {
  681. // // show: true
  682. // // },
  683. // // saveAsImage: {
  684. // // show: true
  685. // // }
  686. // // }
  687. // // },
  688. // // legend: {
  689. // //
  690. // // data: ['已完成', '未完成', ]
  691. // // },
  692. // //
  693. // // calculable: false,
  694. // // xAxis: [{
  695. // // axisLabel: {
  696. // // interval: 10
  697. // // },
  698. // // axisLabel: {
  699. // // rotate: 45, //字体倾斜度数
  700. // // interval: 0, //interval 是指间隔多少个类别画栅格,为 0 时则每个数据都画,为 1 时间隔 1 个画,以此类推
  701. // // textStyle: {
  702. // // color: "red", //字体颜色
  703. // // fontSize: 10 //字体大小
  704. // // }
  705. // // },
  706. // // splitArea: {
  707. // // show: false,
  708. // // },
  709. // // splitLine: {
  710. // // show: false
  711. // // }, //去除网格线
  712. // // type: 'category',
  713. // // data:xAxis_math
  714. // // }],
  715. // // yAxis: [{
  716. // // show: false,
  717. // // splitLine: {
  718. // // show: false
  719. // // }, //去除网格线
  720. // // type: 'value',
  721. // // splitArea: {
  722. // // show: false,
  723. // // }
  724. // // }],
  725. // // series: [{
  726. // // name: '已完成',
  727. // // type: 'bar',
  728. // // barWidth: 10, //柱图宽度
  729. // // itemStyle: {
  730. // // normal: {
  731. // // label: {
  732. // // show: true
  733. // // }
  734. // // }
  735. // // },
  736. // // data: yAxis_math,
  737. // //
  738. // // },
  739. // // {
  740. // // name: '未完成',
  741. // // type: 'bar',
  742. // // barWidth: 5, //柱图宽度
  743. // // itemStyle: {
  744. // // normal: {
  745. // // label: {
  746. // // show: true
  747. // // }
  748. // // }
  749. // // },
  750. // // data: yAxiss_math,
  751. // //
  752. // // }
  753. // // ]
  754. // // };
  755. //
  756. // var option = {
  757. // tooltip: {
  758. // trigger: 'axis',
  759. // axisPointer: {
  760. // type: 'shadow'
  761. // }
  762. // },
  763. // legend: {
  764. // data: ['未完成', '已完成']
  765. // },
  766. // grid: {
  767. // left: '3%',
  768. // right: '4%',
  769. // bottom: '3%',
  770. // containLabel: true
  771. // },
  772. // xAxis: {
  773. // type: 'value',
  774. // boundaryGap: [0, 0.01]
  775. // },
  776. // yAxis: {
  777. // type: 'category',
  778. // data: xAxis_math
  779. // },
  780. // series: [{
  781. // name: '未完成',
  782. // type: 'bar',
  783. // barWidth: 10,
  784. // data: yAxis_math
  785. // },
  786. // {
  787. // name: '已完成',
  788. // type: 'bar',
  789. // barWidth: 10,
  790. // data: yAxiss_math
  791. // }
  792. // ]
  793. // };
  794. // echartsPie = echarts.init(document.getElementById('lineChart'));
  795. // echartsPie.setOption(option);
  796. // }
  797. //
  798. // },
  799. // error: function(data) {
  800. // console.log(data.message);
  801. // }
  802. // });
  803. ///全部
  804. // $.ajax({
  805. // type: "get",
  806. // url: huayi.config.callcenter_url + 'WorkOrder/GetTotalReport',
  807. // async: true,
  808. // dataType: 'json',
  809. // data: {
  810. // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
  811. // },
  812. // success: function(data) {
  813. // console.log(data.state);
  814. // if(data.state == "success") {
  815. // console.log(data.data[0].unfinish);
  816. // $("#finish").text(data.data[0].finish);
  817. // $("#unfinifh").text(data.data[0].unfinish);
  818. // $("#RTotal").text(data.data[0].finish + data.data[0].unfinish);
  819. // var option = {
  820. // tooltip: {
  821. // formatter: "{a} <br/>{b} : {c} ({d}%)"
  822. // },
  823. // legend: {
  824. // orient: 'vertical',
  825. // // top: 'middle',
  826. //
  827. // x: 'left',
  828. // left: 25,
  829. // top: 80,
  830. // data: ['未完成', '已完成']
  831. // },
  832. // series: [{
  833. // type: 'pie',
  834. // radius: '65%',
  835. // center: ['50%', '50%'],
  836. // selectedMode: 'single',
  837. // data: [
  838. //
  839. // {
  840. // value: data.data[0].unfinish,
  841. // name: '未完成',
  842. // label: {
  843. // normal: {
  844. // formatter: "{b}: {c} ({d}%)"
  845. // }
  846. // }
  847. // },
  848. // {
  849. // value: data.data[0].finish,
  850. // name: '已完成',
  851. // label: {
  852. // normal: {
  853. // formatter: "{b}: {c} ({d}%)"
  854. // }
  855. // }
  856. // }
  857. //
  858. // ],
  859. // itemStyle: {
  860. // emphasis: {
  861. // shadowBlur: 10,
  862. // shadowOffsetX: 0,
  863. // shadowColor: 'rgba(0, 0, 0, 0.5)'
  864. // }
  865. // }
  866. // }]
  867. // };
  868. //
  869. // echartsPie = echarts.init(document.getElementById('lineCharts'));
  870. // echartsPie.setOption(option);
  871. // }
  872. //
  873. // },
  874. // error: function(data) {
  875. // console.log(data.message);
  876. // }
  877. // });
  878. //分类
  879. // $.ajax({
  880. // type: "get",
  881. // url: huayi.config.callcenter_url + 'WorkOrder/GetReportByFL',
  882. // async: true,
  883. // dataType: 'json',
  884. // data: {
  885. // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
  886. // },
  887. // success: function(data) {
  888. // console.log(data.state);
  889. // if(data.state == "success") {
  890. // console.log(data.data[0].unfinish);
  891. // var xAxis_fl = [];
  892. // var yAxis_ = [];
  893. // var yAxiss_ = [];
  894. // // $("#Workfinish").text(data.data[7].finish);
  895. // // $("#Workunfinifh").text(data.data[7].unfinish);
  896. // // $("#WorkTotal").text(data.data[7].finish + data.data[0].unfinish);
  897. // for(var i = 0; i < data.data.length; i++) {
  898. // xAxis_fl.push(data.data[i].fl);
  899. // yAxis_.push(data.data[i].unfinish);
  900. // yAxiss_.push(data.data[i].finish)
  901. // }
  902. // console.log(yAxis_);
  903. // var option = {
  904. // grid: {
  905. // x: 35,
  906. // x2: 10,
  907. // y: 30,
  908. // y2: 50,
  909. // borderWidth: 0
  910. // },
  911. // toolbox: {
  912. // show: false,
  913. // feature: {
  914. // mark: {
  915. // show: true
  916. // },
  917. // dataView: {
  918. // show: true,
  919. // readOnly: false
  920. // },
  921. // magicType: {
  922. // show: true,
  923. // type: ['line', 'bar']
  924. // },
  925. // restore: {
  926. // show: true
  927. // },
  928. // saveAsImage: {
  929. // show: true
  930. // }
  931. // }
  932. // },
  933. // legend: {
  934. // top: 20,
  935. // data: ['已完成', '未完成', ]
  936. // },
  937. //
  938. // calculable: false,
  939. // xAxis: [{
  940. // axisLabel: {
  941. // interval: 0
  942. // },
  943. // axisLabel: {
  944. // rotate: 40, //字体倾斜度数
  945. // interval: 0, //interval 是指间隔多少个类别画栅格,为 0 时则每个数据都画,为 1 时间隔 1 个画,以此类推
  946. // textStyle: {
  947. // color: "red", //字体颜色
  948. // fontSize: 10 //字体大小
  949. // }
  950. // },
  951. // splitArea: {
  952. // show: false,
  953. // },
  954. // splitLine: {
  955. // show: false
  956. // }, //去除网格线
  957. // type: 'category',
  958. // data: xAxis_fl
  959. // }],
  960. // yAxis: [{
  961. // show: false,
  962. // splitLine: {
  963. // show: false
  964. // }, //去除网格线
  965. // type: 'value',
  966. // splitArea: {
  967. // show: false,
  968. // }
  969. // }],
  970. // series: [{
  971. // name: '已完成',
  972. // type: 'bar',
  973. // barWidth: 10, //柱图宽度
  974. // itemStyle: {
  975. // normal: {
  976. // label: {
  977. // show: true
  978. // }
  979. // }
  980. // },
  981. // data: yAxiss_
  982. // }, {
  983. // name: '未完成',
  984. // type: 'bar',
  985. // barWidth: 10, //柱图宽度
  986. // itemStyle: {
  987. // normal: {
  988. // label: {
  989. // show: true
  990. // }
  991. // }
  992. // },
  993. // data: yAxis_
  994. // }]
  995. // };
  996. // echartsPie = echarts.init(document.getElementById('bar-Chart'));
  997. // echartsPie.setOption(option);
  998. // }
  999. //
  1000. // },
  1001. // error: function(data) {
  1002. // console.log(data.message);
  1003. // }
  1004. // });
  1005. //部门
  1006. // $.ajax({
  1007. // type: "get",
  1008. // url: huayi.config.callcenter_url + 'WorkOrder/GetReportByDept',
  1009. // async: true,
  1010. // dataType: 'json',
  1011. // data: {
  1012. // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
  1013. // },
  1014. // success: function(data) {
  1015. // console.log(data.state);
  1016. // if(data.state == "success") {
  1017. // console.log(data.data[0].unfinish);
  1018. // var xAxis_fl = [];
  1019. // var yAxis_ = [];
  1020. // var yAxiss_ = [];
  1021. // // $("#Workfinish").text(data.data[7].finish);
  1022. // // $("#Workunfinifh").text(data.data[7].unfinish);
  1023. // // $("#WorkTotal").text(data.data[7].finish + data.data[0].unfinish);
  1024. // for(var i = 0; i < data.data.length; i++) {
  1025. // xAxis_fl.push(data.data[i].dept);
  1026. // yAxis_.push(data.data[i].unfinish);
  1027. // yAxiss_.push(data.data[i].finish)
  1028. // }
  1029. //
  1030. // var option = {
  1031. // grid: {
  1032. // x: 35,
  1033. // x2: 10,
  1034. // y: 30,
  1035. // y2: 50,
  1036. // borderWidth: 0
  1037. // },
  1038. // toolbox: {
  1039. // show: false,
  1040. // feature: {
  1041. // mark: {
  1042. // show: true
  1043. // },
  1044. // dataView: {
  1045. // show: true,
  1046. // readOnly: false
  1047. // },
  1048. // magicType: {
  1049. // show: true,
  1050. // type: ['line', 'bar']
  1051. // },
  1052. // restore: {
  1053. // show: true
  1054. // },
  1055. // saveAsImage: {
  1056. // show: true
  1057. // }
  1058. // }
  1059. // },
  1060. // legend: {
  1061. // top: 20,
  1062. // data: ['已完成', '未完成', ]
  1063. // },
  1064. //
  1065. // calculable: false,
  1066. // xAxis: [{
  1067. // axisLabel: {
  1068. // interval: 0
  1069. // },
  1070. // axisLabel: {
  1071. // rotate: 40, //字体倾斜度数
  1072. // interval: 0, //interval 是指间隔多少个类别画栅格,为 0 时则每个数据都画,为 1 时间隔 1 个画,以此类推
  1073. // textStyle: {
  1074. // color: "red", //字体颜色
  1075. // fontSize: 10 //字体大小
  1076. // }
  1077. // },
  1078. // splitArea: {
  1079. // show: false,
  1080. // },
  1081. // splitLine: {
  1082. // show: false
  1083. // }, //去除网格线
  1084. // type: 'category',
  1085. // data: xAxis_fl
  1086. // }],
  1087. // yAxis: [{
  1088. // show: false,
  1089. // splitLine: {
  1090. // show: false
  1091. // }, //去除网格线
  1092. // type: 'value',
  1093. // splitArea: {
  1094. // show: false,
  1095. // }
  1096. // }],
  1097. // series: [{
  1098. // name: '已完成',
  1099. // type: 'bar',
  1100. // barWidth: 10, //柱图宽度
  1101. // itemStyle: {
  1102. // normal: {
  1103. // label: {
  1104. // show: true
  1105. // }
  1106. // }
  1107. // },
  1108. // data: yAxis_
  1109. // }, {
  1110. // name: '未完成',
  1111. // type: 'bar',
  1112. // barWidth: 10, //柱图宽度
  1113. // itemStyle: {
  1114. // normal: {
  1115. // label: {
  1116. // show: true
  1117. // }
  1118. // }
  1119. // },
  1120. // data: yAxiss_
  1121. // }]
  1122. // };
  1123. // echartsPie = echarts.init(document.getElementById('bar-Chart2'));
  1124. // echartsPie.setOption(option);
  1125. // }
  1126. //
  1127. // },
  1128. // error: function(data) {
  1129. // console.log(data.message);
  1130. // }
  1131. // });
  1132. //获取区域
  1133. });
  1134. </script>
  1135. </body>
  1136. </html>