(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38dcb7f8"],{"365c":function(e,t,n){"use strict";n.d(t,"k",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"m",(function(){return o})),n.d(t,"f",(function(){return d})),n.d(t,"h",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"n",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"i",(function(){return h})),n.d(t,"l",(function(){return f})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return _})),n.d(t,"c",(function(){return g})),n.d(t,"j",(function(){return b}));var r=n("b775"),a=function(e){return Object(r["a"])({url:"/goods/get_goods_sku_sales_value",method:"get",params:e})},i=function(e){return Object(r["a"])({url:"/order/get_order_daily_sales",method:"get",params:e})},o=function(e){return Object(r["a"])({url:"/order/get_store_top10",method:"get",params:e})},d=function(e){return Object(r["a"])({url:"/index/index",method:"get",params:e})},u=function(e){return Object(r["a"])({url:"/index/get_sale_info",method:"get",params:e})},c=function(e){return Object(r["a"])({url:"/index/all_order_by",method:"get",params:e})},s=function(e){return Object(r["a"])({url:"/index/yesterday_order_by",method:"get",params:e})},l=function(e){return Object(r["a"])({url:"/index/get_history_total",method:"get",params:e})},h=function(e){return Object(r["a"])({url:"/index/get_sku_history_num",method:"get",params:e})},f=function(e){return Object(r["a"])({url:"/index/get_sku_order_by",method:"get",params:e})},m=function(e){return Object(r["a"])({url:"/index/get_every_add_agent",method:"get",params:e})},_=function(e){return Object(r["a"])({url:"/index/get_every_add_agent_sort",method:"get",params:e})},g=function(e){return Object(r["a"])({url:"/index/get_every_add_agent_line",method:"get",params:e})},b=function(e){return Object(r["a"])({url:"/index/get_agent_pay_rate",method:"get",params:e})}},5647:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期时间",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},on:{change:e.getOrderAccount},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}}),n("div",{ref:"style_num_echart",style:{height:e.height,width:e.width}})],1)},a=[],i=n("c7eb"),o=n("1da1"),d=(n("d3b7"),n("159b"),n("d81d"),n("b0c0"),n("313e")),u=n("feb2"),c=n("365c"),s={mixins:[u["a"]],props:{width:{type:String,default:"600px"},height:{type:String,default:"600px"}},data:function(){return{chart:null,timeLineMap:[],lengedMap:[],date:""}},created:function(){this.date=this.getTime(),this.getOrderAccount()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getTime:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,r=e.getDate()<10?"0"+e.getDate():e.getDate(),a=t+"-"+n+"-"+r;return a},createObjectByArray:function(e,t){var n={};return e.forEach((function(e){n[e]=t?[]:{}})),n},getOrderAccount:function(){var e=this;return Object(o["a"])(Object(i["a"])().mark((function t(){var n,r,a,o;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.timeLineMap=[],e.lengedMap=[],n=e.$loading(),t.prev=3,t.next=6,Object(c["b"])({date:e.date});case 6:r=t.sent,a=r.code,o=r.data,n.close(),200===a&&(o.map((function(t){e.timeLineMap.push(t.warea.name),e.lengedMap.push(t.count)})),e.initChart()),t.next=17;break;case 13:t.prev=13,t.t0=t["catch"](3),n.close(),console.log(t.t0);case 17:case"end":return t.stop()}}),t,null,[[3,13]])})))()},initChart:function(){var e=this;this.$nextTick((function(){e.chart=d["init"](e.$refs.style_num_echart),e.chart.clear(),e.chart.setOption({title:{text:"服务每日新增注册人数排行"},xAxis:{type:"category",data:e.timeLineMap,name:"服务",axisLabel:{textStyle:{color:"#000"},interval:0}},yAxis:{type:"value",name:"人数",axisLabel:{show:!0,textStyle:{color:"#000"}},axisLine:{show:!0}},series:[{data:e.lengedMap,type:"bar",label:{show:!0,position:"top",color:"black"},barWidth:30,itemStyle:{normal:{color:"#FB231F"}}}]}),window.onresize=e.chart.resize}))}}},l=s,h=n("2877"),f=Object(h["a"])(l,r,a,!1,null,null,null);t["default"]=f.exports},feb2:function(e,t,n){"use strict";var r=n("ed08");t["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){var e=this;this.__resizeHandler=Object(r["b"])((function(){e.chart&&e.chart.resize()}),100),window.addEventListener("resize",this.__resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.__resizeHandler),this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},methods:{$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.__resizeHandler()}}}}}]);