| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177 |
- <!doctype html>
- <html lang="en" class="feedback">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title>数据统计</title>
- <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
- <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
- <style>
- .mui-control-content {
- background-color: white;
- min-height: 215px;
- }
-
- .mui-control-content .mui-loading {
- margin-top: 50px;
- }
-
- .chart {
- height: 260px;
- margin: 0px;
- padding: 0px;
- }
-
- .mui-slider .mui-slider-group {
- height: 500px;
- }
-
- #CS {
- position: absolute;
- right: 0;
- height: 100%;
- padding: 0;
- padding-left: 5px;
- border: none;
- z-index: 30;
- width: 100%;
- }
-
- .mui-scroll {
- height: 100%;
- }
-
- #lineChart {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: 10px;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- }
-
- .mui-grid-bottom {
- height: 2px;
- background-color: #57cebf;
- display: block;
- width: 20px;
- margin: 0 auto;
- }
- </style>
- </head>
- <body>
- <header class="mui-bar mui-bar-nav">
- <h1 id="title" class="mui-title">区域报表</h1>
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
- </header>
- <div class="mui-content ">
- <form id='login-form' class="mui-input-group">
- <!--logo-->
- <div class="mui-input-row">
- <label>区域:</label>
- <select name="" class="mui-select">
- </select>
- </div>
- <div class="mui-input-row mui-password">
- <label>时间:</label>
- <!--<input id='password' type="datetime-local" class=" mui-input" >-->
- <input id='demo1' data-options='{}' type="text" class="mui-input-clear btn contact" />
- </div>
- </form>
- <div id="slider" class="mui-slider">
- <div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
- <a class="mui-control-item mui-active" href="#item1mobile" index="1">
- 日报
- </a>
- <a class="mui-control-item" href="#item2mobile" index="2">
- 周报
- </a>
- <a class="mui-control-item" href="#item3mobile" index="3">
- 月报
- </a>
- </div>
- <div class="mui-slider-group">
- <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
- <div id="scroll1" class="mui-scroll-wrapper">
- <div class="mui-scroll">
- <div class="chart" id="pieChart"></div>
- <div>
- <ul class="mui-table-view mui-grid-view mui-grid-9">
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="jsblrate"></span>
- <div class="mui-media-body size-14">即时办理率</div>
- </a>
- <span class="mui-grid-bottom"></span>
- </li>
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="wlzbrate"></span>
- <div class="mui-media-body size-14">转办率</div>
- </a>
- <span class="mui-grid-bottom"></span>
- </li>
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="zbbjrate"></span>
- <div class="mui-media-body size-14">转办办结率</div>
- </a>
- <span class="mui-grid-bottom"></span>
- </li>
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="bjrate"></span>
- <div class="mui-media-body size-14">办结率</div>
- </a>
- <span class="mui-grid-bottom"></span>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div id="item2mobile" class="mui-slider-item mui-control-content">
- <div id="scroll2" class="mui-scroll-wrapper">
- <div class="mui-scroll">
- <div class="chart" id="barChart"></div>
- <div>
- <ul class="mui-table-view mui-grid-view mui-grid-9">
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="week-jsblrate"></span>
- <div class="mui-media-body size-14">即时办理率</div>
- </a>
- </li>
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="week-wlzbrate"></span>
- <div class="mui-media-body size-14">转办率</div>
- </a>
- </li>
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="week-zbbjrate"></span>
- <div class="mui-media-body size-14">转办办结率</div>
- </a>
- </li>
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="week-bjrate"></span>
- <div class="mui-media-body size-14">办结率</div>
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div id="item3mobile" class="mui-slider-item mui-control-content">
- <div id="scroll2" class="mui-scroll-wrapper">
- <div class="mui-scroll">
- <div class="chart" id="Chart">5555</div>
- <div>
- <ul class="mui-table-view mui-grid-view mui-grid-9">
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="month-jsblrate"></span>
- <div class="mui-media-body size-14">即时办理率</div>
- </a>
- </li>
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="month-wlzbrate"></span>
- <div class="mui-media-body size-14">转办率</div>
- </a>
- </li>
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="month-zbbjrate"></span>
- <div class="mui-media-body size-14">转办办结率</div>
- </a>
- </li>
- <li class="mui-table-view-cell mui-media mui-col-xs-6 ">
- <a href="#">
- <span class="size-20" id="month-bjrate"></span>
- <div class="mui-media-body size-14">办结率</div>
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="../js/zepto.js"></script>
- <script src="../js/mui.min.js"></script>
- <script src="../js/echarts.common.min.js"></script>
- <script src="../js/huayi.config.js"></script>
- <script src="../js/mui.picker.min.js"></script>
- <script type="text/javascript">
- mui.init();
- window.onload = function() {
- mui('.mui-scroll-wrapper').scroll({
- deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
- });
- }
- var usercode = localStorage.getItem("user"); //获取本地存储
- var goodslist;
- var index_=1;
- //本周图表
- var xAxis = [];
- var yAxis = [];
- var yAxiss = [];
- //本月
- var xAxis_math = [];
- var yAxis_math = [];
- var yAxiss_math = []
- mui.plusReady(function() {
- var wv = plus.webview.currentWebview();
- var index = wv.index;
- plus.nativeUI.closeWaiting();
- //显示当前页面
- mui.currentWebview.show();
- //下拉框
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + '/APP/GetAreaList',
- async: false,
- dataType: 'json',
- data: {
- usercode: usercode
- },
- success: function(data) {
- console.log(data.state);
- if(data.state == "success") {
- goodslist = data.data;
- bindseat($(".mui-select"));
- }
- },
- error: function(data) {
- console.log(data.message);
- }
- });
-
- //下拉框
- function bindseat(obj) {
- obj.empty();
- // obj.append('<option value="0" selected="true">所有区域</option>');
- $(goodslist).each(function(i, n) {
- obj.append('<option value="' + n.F_AreaId + '">' + n.F_AreaName + '</option>');
- })
- }
- AreaL();//日报
- AreaLs();//周报
- Month();//月报
- //日期
- var dates = new Date();
- var time = dates.getFullYear() + "-" + (dates.getMonth() + 1) + '-' + dates.getDate();
- $("#demo1").val(time);
- //时间选择
- var btns = mui('.btn');
- btns.each(function(i, btn) {
- btn.addEventListener('tap', function() {
- var dtPicker = new mui.DtPicker({
- type: "date", //设置日历初始视图模式
-
- });
- dtPicker.show(function(e) {
- $("#demo1").val(e);
- AreaL();//日报
- AreaLs();//周报
- });
- }, false);
- })
-
- $(".mui-select").on('change', function() {
- console.log($('.mui-select').val());
- AreaL();//日报
- AreaLs();//周报
- Month();//月报
- })
- //日报的数据
- function AreaL() {
- console.log($('.mui-select').val());
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + '/app/GetAPPWorkReportSingle',
- async: true,
- dataType: 'json',
- data: {
- usercode: usercode,
- datetype: index_,
- date: $("#demo1").val(),
- datatype:index,
- dataid: $('.mui-select').val()
- },
- success: function(data) {
- if(data.state == "success") {
- var Data = data.data.APPDayWeekMonthReportSingle[0];
- // alert(JSON.stringify(Data))
- $("#bjrate").text(Data.bjrate);
- $("#jsblrate").text(Data.jsblrate);
- $("#wlzbrate").text(Data.wlzbrate);
- $("#zbbjrate").text(Data.zbbjrate);
- var option = {
- tooltip: {
- formatter: "{b} : {c} ({d}%)"
- },
- legend: {
- orient: 'vertical',
- top: 'middle',
- x: 'top',
- left: 10,
- top: 3,
- data: ['即时办结', '网络转办', '转办办结']
- },
- series: [{
- type: 'pie',
- radius: '55%',
- selectedMode: 'single',
- center: ['50%', '60%'],
- label: {
- normal: {
- formatter: "{b} : {c} ",
- }
- },
- labelLine: {
- normal: {
- show: false
- }
- },
- data: [{
- value: data.data.APPDayWeekMonthReportSingle[0].jsblcount,
- name: '即时办结',
- },
- {
- value: data.data.APPDayWeekMonthReportSingle[0].wlzbcount,
- name: '网络转办',
- },
- {
- value: data.data.APPDayWeekMonthReportSingle[0].zbbjcount,
- name: '转办办结',
- }
- ],
- }]
- };
- echartsPie = echarts.init(document.getElementById('pieChart'));
-
- echartsPie.setOption(option);
- }
- },
- error: function(data) {
- console.log(data.message);
- }
- });
- }
- AreaLs();
- Month();
- //周报
- function AreaLs() {
- console.log($('.mui-select').val());
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + '/app/GetAPPWorkReportSingle',
- async: true,
- dataType: 'json',
- data: {
- usercode: usercode,
- datetype: 2,
- date: $("#demo1").val(),
- datatype:index,
- dataid: $('.mui-select').val()
- },
- success: function(data) {
- if(data.state == "success") {
- var Data = data.data.APPDayWeekMonthReportSingle[0];
- // alert(JSON.stringify(Data))
- $("#week-bjrate").text(Data.bjrate)
- $("#week-jsblrate").text(Data.jsblrate);
- $("#week-wlzbrate").text(Data.wlzbrate);
- $("#week-zbbjrate").text(Data.zbbjrate);
- var option = {
- tooltip: {
- formatter: "{b} : {c} ({d}%)"
- },
- legend: {
- orient: 'vertical',
- top: 'middle',
- x: 'left',
- left: 5,
- top: 5,
- data: ['即时办结', '网络转办', '转办办结']
- },
- series: [{
- type: 'pie',
- radius: '55%',
- selectedMode: 'single',
- center: ['50%', '60%'],
- label: {
- normal: {
- formatter: "{a} {b} : {c} ",
- }
- },
- labelLine: {
- normal: {
- show: false
- }
- },
- data: [{
- value: data.data.APPDayWeekMonthReportSingle[0].jsblcount,
- name: '即时办结',
- },
- {
- value: data.data.APPDayWeekMonthReportSingle[0].wlzbcount,
- name: '网络转办',
- },
- {
- value: data.data.APPDayWeekMonthReportSingle[0].zbbjcount,
- name: '转办办结',
- }
- ],
- }]
- };
- echartsPie = echarts.init(document.getElementById('barChart'));
-
- echartsPie.setOption(option);
- }
- },
- error: function(data) {
- console.log(data.message);
- }
- });
- }
- //月报
- function Month(){
- console.log($('.mui-select').val());
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + '/app/GetAPPWorkReportSingle',
- async: true,
- dataType: 'json',
- data: {
- usercode: usercode,
- datetype: 3,
- date: $("#demo1").val(),
- datatype:index,
- dataid: $('.mui-select').val()
- },
- success: function(data) {
- if(data.state == "success") {
- var Data = data.data.APPDayWeekMonthReportSingle[0];
- // alert(JSON.stringify(Data))
- $("#month-bjrate").text(Data.bjrate)
- $("#month-jsblrate").text(Data.jsblrate);
- $("#month-wlzbrate").text(Data.wlzbrate);
- $("#month-zbbjrate").text(Data.zbbjrate);
- var option = {
- tooltip: {
- formatter: "{a} <br/>{b} : {c} ({d}%)"
- },
- legend: {
- orient: 'vertical',
- x: 'left',
- left: 10,
- top: 10,
- data: ['即时办结', '网络转办', '转办办结']
- },
- series: [{
- type: 'pie',
- radius: '55%',
- selectedMode: 'single',
- center: ['50%', '60%'],
- label: {
- normal: {
- formatter: "{a} {b} : {c} ",
- }
- },
- labelLine: {
- normal: {
- show: false
- }
- },
- data: [{
- value: data.data.APPDayWeekMonthReportSingle[0].jsblcount,
- name: '即时办结',
- },
- {
- value: data.data.APPDayWeekMonthReportSingle[0].wlzbcount,
- name: '网络转办',
- },
- {
- value: data.data.APPDayWeekMonthReportSingle[0].zbbjcount,
- name: '转办办结',
- }
- ],
- }]
- };
- echartsPie = echarts.init(document.getElementById('Chart'));
-
- echartsPie.setOption(option);
- }
- },
- error: function(data) {
- console.log(data.message);
- }
- });
- }
- //切换
- $(".mui-control-item").on('tap',function(){
- var indexs=$(this).attr('index');
- index_=indexs;
- AreaL();
- AreaLs();
- Month();
- })
- //本周
- // $.ajax({
- // type: "get",
- // url: huayi.config.callcenter_url + 'WorkOrder/GetWeekReport',
- // async: true,
- // dataType: 'json',
- // data: {
- // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
- // },
- // success: function(data) {
- // console.log(data.state);
- // if(data.state == "success") {
- // console.log(data.data[0].unfinish);
- // $("#Workfinish").text(data.data[7].finish);
- // $("#Workunfinifh").text(data.data[7].unfinish);
- // $("#WorkTotal").text(data.data[7].finish + data.data[0].unfinish);
- // for(var i = 0; i < data.data.length; i++) {
- // xAxis.push(data.data[i].ID);
- //
- // yAxis.push(data.data[i].unfinish);
- // yAxiss.push(data.data[i].finish)
- // }
- //
- // var option = {
- // grid: {
- // x: 35,
- // x2: 10,
- // y: 30,
- // y2: 25,
- // borderWidth: 0
- // },
- // toolbox: {
- // show: false,
- // feature: {
- // mark: {
- // show: true
- // },
- // dataView: {
- // show: true,
- // readOnly: false
- // },
- // magicType: {
- // show: true,
- // type: ['line', 'bar']
- // },
- // restore: {
- // show: true
- // },
- // saveAsImage: {
- // show: true
- // }
- // }
- // },
- // legend: {
- // top: 20,
- // data: ['已完成', '未完成', ]
- // },
- //
- // calculable: false,
- // xAxis: [{
- // axisLabel: {
- // interval: 0
- // },
- //
- // splitArea: {
- // show: false,
- // },
- // splitLine: {
- // show: false
- // }, //去除网格线
- // type: 'category',
- // data: xAxis
- // }],
- // yAxis: [{
- // show: false,
- // splitLine: {
- // show: false
- // }, //去除网格线
- // type: 'value',
- // splitArea: {
- // show: false,
- // }
- // }],
- // series: [{
- // name: '已完成',
- // type: 'bar',
- // barWidth: 10, //柱图宽度
- // itemStyle: {
- // normal: {
- // label: {
- // show: true
- // }
- // }
- // },
- // data: yAxis
- // }, {
- // name: '未完成',
- // type: 'bar',
- // barWidth: 10, //柱图宽度
- // itemStyle: {
- // normal: {
- // label: {
- // show: true
- // }
- // }
- // },
- // data: yAxiss
- // }]
- // };
- // echartsPie = echarts.init(document.getElementById('barChart'));
- // echartsPie.setOption(option);
- // }
- //
- // },
- // error: function(data) {
- // console.log(data.message);
- // }
- // });
- //本月
- // $.ajax({
- // type: "get",
- // url: huayi.config.callcenter_url + 'WorkOrder/GetMonthReport',
- // async: true,
- // dataType: 'json',
- // data: {
- // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
- // },
- // success: function(data) {
- // console.log(data.state);
- // if(data.state == "success") {
- // console.log(data.data[0].unfinish);
- // $("#Workfinish").text(data.data[7].finish);
- // $("#Workunfinifh").text(data.data[7].unfinish);
- // $("#WorkTotal").text(data.data[7].finish + data.data[0].unfinish);
- // for(var i = 0; i < data.data.length; i++) {
- // xAxis_math.push(data.data[i].ID);
- //
- // yAxis_math.push(data.data[i].unfinish);
- // yAxiss_math.push(data.data[i].finish)
- // }
- //
- // // var option = {
- // // grid: {
- // // x: 35,
- // // x2: 10,
- // // y: 30,
- // // y2: 50,
- // // borderWidth: 0
- // // },
- // // toolbox: {
- // // show: false,
- // // feature: {
- // // mark: {
- // // show: true
- // // },
- // // dataView: {
- // // show: true,
- // // readOnly: false
- // // },
- // // magicType: {
- // // show: true,
- // // type: ['line', 'bar']
- // // },
- // // restore: {
- // // show: true
- // // },
- // // saveAsImage: {
- // // show: true
- // // }
- // // }
- // // },
- // // legend: {
- // //
- // // data: ['已完成', '未完成', ]
- // // },
- // //
- // // calculable: false,
- // // xAxis: [{
- // // axisLabel: {
- // // interval: 10
- // // },
- // // axisLabel: {
- // // rotate: 45, //字体倾斜度数
- // // interval: 0, //interval 是指间隔多少个类别画栅格,为 0 时则每个数据都画,为 1 时间隔 1 个画,以此类推
- // // textStyle: {
- // // color: "red", //字体颜色
- // // fontSize: 10 //字体大小
- // // }
- // // },
- // // splitArea: {
- // // show: false,
- // // },
- // // splitLine: {
- // // show: false
- // // }, //去除网格线
- // // type: 'category',
- // // data:xAxis_math
- // // }],
- // // yAxis: [{
- // // show: false,
- // // splitLine: {
- // // show: false
- // // }, //去除网格线
- // // type: 'value',
- // // splitArea: {
- // // show: false,
- // // }
- // // }],
- // // series: [{
- // // name: '已完成',
- // // type: 'bar',
- // // barWidth: 10, //柱图宽度
- // // itemStyle: {
- // // normal: {
- // // label: {
- // // show: true
- // // }
- // // }
- // // },
- // // data: yAxis_math,
- // //
- // // },
- // // {
- // // name: '未完成',
- // // type: 'bar',
- // // barWidth: 5, //柱图宽度
- // // itemStyle: {
- // // normal: {
- // // label: {
- // // show: true
- // // }
- // // }
- // // },
- // // data: yAxiss_math,
- // //
- // // }
- // // ]
- // // };
- //
- // var option = {
- // tooltip: {
- // trigger: 'axis',
- // axisPointer: {
- // type: 'shadow'
- // }
- // },
- // legend: {
- // data: ['未完成', '已完成']
- // },
- // grid: {
- // left: '3%',
- // right: '4%',
- // bottom: '3%',
- // containLabel: true
- // },
- // xAxis: {
- // type: 'value',
- // boundaryGap: [0, 0.01]
- // },
- // yAxis: {
- // type: 'category',
- // data: xAxis_math
- // },
- // series: [{
- // name: '未完成',
- // type: 'bar',
- // barWidth: 10,
- // data: yAxis_math
- // },
- // {
- // name: '已完成',
- // type: 'bar',
- // barWidth: 10,
- // data: yAxiss_math
- // }
- // ]
- // };
- // echartsPie = echarts.init(document.getElementById('lineChart'));
- // echartsPie.setOption(option);
- // }
- //
- // },
- // error: function(data) {
- // console.log(data.message);
- // }
- // });
- ///全部
- // $.ajax({
- // type: "get",
- // url: huayi.config.callcenter_url + 'WorkOrder/GetTotalReport',
- // async: true,
- // dataType: 'json',
- // data: {
- // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
- // },
- // success: function(data) {
- // console.log(data.state);
- // if(data.state == "success") {
- // console.log(data.data[0].unfinish);
- // $("#finish").text(data.data[0].finish);
- // $("#unfinifh").text(data.data[0].unfinish);
- // $("#RTotal").text(data.data[0].finish + data.data[0].unfinish);
- // var option = {
- // tooltip: {
- // formatter: "{a} <br/>{b} : {c} ({d}%)"
- // },
- // legend: {
- // orient: 'vertical',
- // // top: 'middle',
- //
- // x: 'left',
- // left: 25,
- // top: 80,
- // data: ['未完成', '已完成']
- // },
- // series: [{
- // type: 'pie',
- // radius: '65%',
- // center: ['50%', '50%'],
- // selectedMode: 'single',
- // data: [
- //
- // {
- // value: data.data[0].unfinish,
- // name: '未完成',
- // label: {
- // normal: {
- // formatter: "{b}: {c} ({d}%)"
- // }
- // }
- // },
- // {
- // value: data.data[0].finish,
- // name: '已完成',
- // label: {
- // normal: {
- // formatter: "{b}: {c} ({d}%)"
- // }
- // }
- // }
- //
- // ],
- // itemStyle: {
- // emphasis: {
- // shadowBlur: 10,
- // shadowOffsetX: 0,
- // shadowColor: 'rgba(0, 0, 0, 0.5)'
- // }
- // }
- // }]
- // };
- //
- // echartsPie = echarts.init(document.getElementById('lineCharts'));
- // echartsPie.setOption(option);
- // }
- //
- // },
- // error: function(data) {
- // console.log(data.message);
- // }
- // });
- //分类
- // $.ajax({
- // type: "get",
- // url: huayi.config.callcenter_url + 'WorkOrder/GetReportByFL',
- // async: true,
- // dataType: 'json',
- // data: {
- // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
- // },
- // success: function(data) {
- // console.log(data.state);
- // if(data.state == "success") {
- // console.log(data.data[0].unfinish);
- // var xAxis_fl = [];
- // var yAxis_ = [];
- // var yAxiss_ = [];
- // // $("#Workfinish").text(data.data[7].finish);
- // // $("#Workunfinifh").text(data.data[7].unfinish);
- // // $("#WorkTotal").text(data.data[7].finish + data.data[0].unfinish);
- // for(var i = 0; i < data.data.length; i++) {
- // xAxis_fl.push(data.data[i].fl);
- // yAxis_.push(data.data[i].unfinish);
- // yAxiss_.push(data.data[i].finish)
- // }
- // console.log(yAxis_);
- // var option = {
- // grid: {
- // x: 35,
- // x2: 10,
- // y: 30,
- // y2: 50,
- // borderWidth: 0
- // },
- // toolbox: {
- // show: false,
- // feature: {
- // mark: {
- // show: true
- // },
- // dataView: {
- // show: true,
- // readOnly: false
- // },
- // magicType: {
- // show: true,
- // type: ['line', 'bar']
- // },
- // restore: {
- // show: true
- // },
- // saveAsImage: {
- // show: true
- // }
- // }
- // },
- // legend: {
- // top: 20,
- // data: ['已完成', '未完成', ]
- // },
- //
- // calculable: false,
- // xAxis: [{
- // axisLabel: {
- // interval: 0
- // },
- // axisLabel: {
- // rotate: 40, //字体倾斜度数
- // interval: 0, //interval 是指间隔多少个类别画栅格,为 0 时则每个数据都画,为 1 时间隔 1 个画,以此类推
- // textStyle: {
- // color: "red", //字体颜色
- // fontSize: 10 //字体大小
- // }
- // },
- // splitArea: {
- // show: false,
- // },
- // splitLine: {
- // show: false
- // }, //去除网格线
- // type: 'category',
- // data: xAxis_fl
- // }],
- // yAxis: [{
- // show: false,
- // splitLine: {
- // show: false
- // }, //去除网格线
- // type: 'value',
- // splitArea: {
- // show: false,
- // }
- // }],
- // series: [{
- // name: '已完成',
- // type: 'bar',
- // barWidth: 10, //柱图宽度
- // itemStyle: {
- // normal: {
- // label: {
- // show: true
- // }
- // }
- // },
- // data: yAxiss_
- // }, {
- // name: '未完成',
- // type: 'bar',
- // barWidth: 10, //柱图宽度
- // itemStyle: {
- // normal: {
- // label: {
- // show: true
- // }
- // }
- // },
- // data: yAxis_
- // }]
- // };
- // echartsPie = echarts.init(document.getElementById('bar-Chart'));
- // echartsPie.setOption(option);
- // }
- //
- // },
- // error: function(data) {
- // console.log(data.message);
- // }
- // });
- //部门
- // $.ajax({
- // type: "get",
- // url: huayi.config.callcenter_url + 'WorkOrder/GetReportByDept',
- // async: true,
- // dataType: 'json',
- // data: {
- // openid: 'oKOqcv31fh76rtNmJDjKc39oIsfA'
- // },
- // success: function(data) {
- // console.log(data.state);
- // if(data.state == "success") {
- // console.log(data.data[0].unfinish);
- // var xAxis_fl = [];
- // var yAxis_ = [];
- // var yAxiss_ = [];
- // // $("#Workfinish").text(data.data[7].finish);
- // // $("#Workunfinifh").text(data.data[7].unfinish);
- // // $("#WorkTotal").text(data.data[7].finish + data.data[0].unfinish);
- // for(var i = 0; i < data.data.length; i++) {
- // xAxis_fl.push(data.data[i].dept);
- // yAxis_.push(data.data[i].unfinish);
- // yAxiss_.push(data.data[i].finish)
- // }
- //
- // var option = {
- // grid: {
- // x: 35,
- // x2: 10,
- // y: 30,
- // y2: 50,
- // borderWidth: 0
- // },
- // toolbox: {
- // show: false,
- // feature: {
- // mark: {
- // show: true
- // },
- // dataView: {
- // show: true,
- // readOnly: false
- // },
- // magicType: {
- // show: true,
- // type: ['line', 'bar']
- // },
- // restore: {
- // show: true
- // },
- // saveAsImage: {
- // show: true
- // }
- // }
- // },
- // legend: {
- // top: 20,
- // data: ['已完成', '未完成', ]
- // },
- //
- // calculable: false,
- // xAxis: [{
- // axisLabel: {
- // interval: 0
- // },
- // axisLabel: {
- // rotate: 40, //字体倾斜度数
- // interval: 0, //interval 是指间隔多少个类别画栅格,为 0 时则每个数据都画,为 1 时间隔 1 个画,以此类推
- // textStyle: {
- // color: "red", //字体颜色
- // fontSize: 10 //字体大小
- // }
- // },
- // splitArea: {
- // show: false,
- // },
- // splitLine: {
- // show: false
- // }, //去除网格线
- // type: 'category',
- // data: xAxis_fl
- // }],
- // yAxis: [{
- // show: false,
- // splitLine: {
- // show: false
- // }, //去除网格线
- // type: 'value',
- // splitArea: {
- // show: false,
- // }
- // }],
- // series: [{
- // name: '已完成',
- // type: 'bar',
- // barWidth: 10, //柱图宽度
- // itemStyle: {
- // normal: {
- // label: {
- // show: true
- // }
- // }
- // },
- // data: yAxis_
- // }, {
- // name: '未完成',
- // type: 'bar',
- // barWidth: 10, //柱图宽度
- // itemStyle: {
- // normal: {
- // label: {
- // show: true
- // }
- // }
- // },
- // data: yAxiss_
- // }]
- // };
- // echartsPie = echarts.init(document.getElementById('bar-Chart2'));
- // echartsPie.setOption(option);
- // }
- //
- // },
- // error: function(data) {
- // console.log(data.message);
- // }
- // });
- //获取区域
- });
- </script>
- </body>
- </html>
|