| | |
| | | */ |
| | | |
| | | |
| | | layui.define(function(exports){ |
| | | layui.define(function (exports) { |
| | | |
| | | |
| | | /* |
| | | 下面通过 layui.use 分段加载不同的模块,实现不同区域的同时渲染,从而保证视图的快速呈现 |
| | |
| | | |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //数据概览 |
| | | layui.use(['admin', 'carousel', 'echarts'], function(){ |
| | | var $ = layui.$ |
| | | ,admin = layui.admin |
| | | ,carousel = layui.carousel |
| | | ,echarts = layui.echarts; |
| | | |
| | | |
| | | //汇报单数量 |
| | | var quantity = []; |
| | | //汇报时间辖区 |
| | | var time = []; |
| | | |
| | | get_Display(); |
| | | |
| | | var echartsApp = [], options = [ |
| | | //今日产量趋势 |
| | | { |
| | |
| | | xAxis : [{ |
| | | type : 'category', |
| | | boundaryGap : false, |
| | | data: ['06:00','06:30','07:00','07:30','08:00','08:30','09:00','09:30','10:00','11:30','12:00','12:30','13:00','13:30','14:00','14:30','15:00','15:30','16:00','16:30','17:00','17:30','18:00','18:30','19:00','19:30','20:00','20:30','21:00','21:30','22:00','22:30','23:00','23:30'] |
| | | data: time |
| | | }], |
| | | yAxis : [{ |
| | | type : 'value' |
| | |
| | | name:'PV', |
| | | type:'line', |
| | | smooth:true, |
| | | itemStyle: {normal: {areaStyle: {type: 'default'}}}, |
| | | data: [111,222,333,444,555,666,3333,33333,55555,66666,33333,3333,6666,11888,26666,38888,56666,42222,39999,28888,17777,9666,6555,5555,3333,2222,3111,6999,5888,2777,1666,999,888,777] |
| | | itemStyle: { normal: { areaStyle: { type: 'default' } } }, |
| | | data: quantity |
| | | },{ |
| | | name:'UV', |
| | | type:'line', |
| | | smooth:true, |
| | | itemStyle: {normal: {areaStyle: {type: 'default'}}}, |
| | | data: [11,22,33,44,55,66,333,3333,5555,12666,3333,333,666,1188,2666,3888,6666,4222,3999,2888,1777,966,655,555,333,222,311,699,588,277,166,99,88,77] |
| | | itemStyle: { normal: { areaStyle: { type: 'default' } } }, |
| | | data: quantity |
| | | }] |
| | | }, |
| | | |
| | |
| | | layui.admin.on('hash(tab)', function(){ |
| | | layui.router().path.join('') || renderDataView(carouselIndex); |
| | | }); |
| | | |
| | | |
| | | |
| | | //查询 |
| | | function get_Display() { |
| | | var index = layer.load(0, { shade: false }); |
| | | var ajaxLoad = layer.load(); |
| | | //进入页面显示的缓存列表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Web/GetICMOBillWorkQtyStatus_Tmp', |
| | | type: "GET", |
| | | async: false, |
| | | data: {}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | quantity = []; |
| | | time = []; |
| | | |
| | | for (var i = 0; i < data1.data.length; i++) { |
| | | time.push(data1.data[i].date); |
| | | quantity.push(data1.data[i].quantity); |
| | | } |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("接口请求失败!", { icon: 5 }); |
| | | } |
| | | }); |
| | | layer.close(index); |
| | | } |
| | | }); |
| | | |
| | | //最新订单 |