UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 3.67 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d724421a"],{"1b6c":function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i}));var o=r("5530"),a=r("bf0f");function n(t,e){return function(){return Object(a["b"])(t,Object(o["a"])({},e))}}function i(t,e){return Object(a["b"])(t,Object(o["a"])({},e))}},7015:function(t,e,r){"use strict";r.d(e,"e",(function(){return a})),r.d(e,"a",(function(){return n})),r.d(e,"c",(function(){return i})),r.d(e,"d",(function(){return s})),r.d(e,"b",(function(){return c})),r.d(e,"f",(function(){return d}));var o=r("b775");function a(t){return Object(o["b"])({url:"/tongji/real-time-data",method:"post",params:t})}function n(t){return Object(o["b"])({url:"/tongji/goods-num",method:"post",params:t})}function i(t){return Object(o["b"])({url:"/tongji/order-data",method:"post",params:t})}function s(t){return Object(o["b"])({url:"/tongji/order-money",method:"post",params:t})}function c(t){return Object(o["b"])({url:"/tongji/goods-sales",method:"post",params:t})}function d(t){return Object(o["b"])({url:"/tongji/user-buy",method:"post",params:t})}},b1e2:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t._self._c;return e("div",{ref:"portaletDiv"},[e("a-card",{attrs:{bordered:!1}},[e("div",{ref:"commandstats",staticStyle:{height:"380px"}})])],1)},a=[],n=r("5530"),i=(r("b64b"),r("d81d"),r("07ac"),r("313e")),s=r("5880"),c=r("7015"),d=r("1b6c"),u={name:"Cache",data:function(){return{commandstats:null}},filters:{},created:function(){},mounted:function(){var t=this;this.getOrderData(),window.addEventListener("resize",(function(){t.commandstats.resize()})),this.$emit("setHeight",this.$refs.portaletDiv.offsetHeight)},computed:Object(n["a"])({},Object(s["mapGetters"])(["shopId"])),watch:{},methods:{getOrderData:function(){var t=this,e={};this.shopId&&(e.shop_id=this.shopId),Object(c["c"])(e).then((function(e){e&&(t.thirtyDays=Object.keys(e.order_data_list),t.payOrder=Object.values(e.order_data_list).map((function(t){return t})),t.noPayOrder=Object.values(e.order_data_other_list).map((function(t){return t})),t.getFirstChart())}))},getFirstChart:function(){this.commandstats=i["b"](this.$refs.commandstats,"macarons"),this.commandstats.setOption({title:{text:Object(d["b"])("view.home.worktable.order.data"),textStyle:{fontSize:16,fontWeight:"600",color:"#333"},left:8,top:8},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{top:10,right:20,textStyle:{color:"#666"},itemGap:20,itemWidth:10,data:[Object(d["b"])("view.home.worktable.order.data.pay"),Object(d["b"])("view.home.worktable.order.data.unpay")]},toolbox:{feature:{}},grid:{left:"1%",right:"1%",bottom:"2%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:this.thirtyDays,axisLabel:{show:!0,rotate:0,margin:8,textStyle:{color:"#666",fontSize:"12"}},axisLine:{lineStyle:{color:"#dfe6ff",width:1}}}],yAxis:[{type:"value",textStyle:{color:"#666",fontSize:"12"}}],series:[{name:Object(d["b"])("view.home.worktable.order.data.pay"),type:"line",stack:"总量",itemStyle:{color:"rgba(160,101,251,1)"},symbolSize:2,areaStyle:{color:new i["a"].LinearGradient(0,0,0,1,[{offset:0,color:"rgba(160,101,251,0.2)"},{offset:1,color:"rgba(160,101,251,0.01)"}])},data:this.payOrder},{name:Object(d["b"])("view.home.worktable.order.data.unpay"),type:"line",stack:"总量",itemStyle:{color:"rgba(58,150,253,1)"},areaStyle:{color:new i["a"].LinearGradient(0,0,0,1,[{offset:0,color:"rgba(58,150,253,0.2)"},{offset:1,color:"rgba(58,77,233,0.01)"}])},data:this.noPayOrder}]})}}},l=u,b=r("2877"),f=Object(b["a"])(l,o,a,!1,null,null,null);e["default"]=f.exports}}]);