chunk-1ec6.23e050c5.js 2.1 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1ec6"],{bQ12:function(t,a,e){},lAbF:function(t,a,e){"use strict";e.r(a);var n=e("t3Un");var i=e("7BsA"),o=e.n(i),d=e("MT78"),s={components:{CountTo:o.a},data:function(){return{goodsCount:0,waitStockCount:0}},created:function(){var t=this;Object(n.a)({method:"get",params:{_gp:"admin.dashboard",_mt:"integral"}}).then(function(a){var e=d.init(document.getElementById("orderChart")),n=d.init(document.getElementById("sumChart")),i=d.init(document.getElementById("areaChart")),o=d.init(document.getElementById("channelChart"));t.waitStockCount=a.data.data.waitStockCount,t.goodsCount=a.data.data.goodsCount,e.setOption({title:{text:"7日订单"},legend:{data:["订单数"],right:1},yAxis:[{name:"订单数",type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#666",fontSize:12}}],xAxis:{axisTick:{show:!1},axisLabel:{color:"#666",fontSize:12,margin:12},data:a.data.data.daysOrder[0]},series:[{name:"订单数",yAxisIndex:0,data:a.data.data.daysOrder[1],type:"bar",color:"#00B5FF",barWidth:30}]}),n.setOption({title:{text:"7日成交金额"},legend:{data:["订单数"],right:1},yAxis:[{name:"订单数",type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#666",fontSize:12}}],xAxis:{axisTick:{show:!1},axisLabel:{color:"#666",fontSize:12,margin:12},data:a.data.data.daysSum[0]},series:[{name:"订单数",yAxisIndex:0,data:a.data.data.daysSum[1],type:"line",color:"#20B2AA"}]}),i.setOption({title:{text:"订单地区分布"},legend:{data:["地区分布"],right:1,color:"#20B2AA"},series:[{type:"pie",name:"地区分布",data:a.data.data.area}]}),o.setOption({title:{text:"订单渠道分布"},legend:{data:["渠道分布"],right:1,color:"#20B2AA"},series:[{type:"pie",name:"地区分布",data:a.data.data.channel}]})})},methods:{handleSetLineChartData:function(t){this.$emit("handleSetLineChartData",t)}}},r=(e("lfWx"),e("KHd+")),l=Object(r.a)(s,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"dashboard-editor-container"})},[],!1,null,"daf31b66",null);l.options.__file="index.vue";a.default=l.exports},lfWx:function(t,a,e){"use strict";var n=e("bQ12");e.n(n).a}}]);