| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-570e6f58"],{"10a0":function(t,s,a){},"4ab8":function(t,s,a){"use strict";a("10a0")},e74b:function(t,s,a){"use strict";a.r(s);a("14d9"),a("0643"),a("4e3e");var e=a("9ab4"),i=a("1b40"),o=a("22b4"),r=a("4cb5"),l=a("3620"),n=a("f175");const c=t=>n.a.get("/workbench/topGoods50",{params:t}),d=t=>n.a.get("/workbench/topUser50",{params:t});var p=a("3c50"),_=a("4b2a"),g=a("9394"),v=a("ff32"),u=a("bb6f"),f=a("f95e"),h=a("6ddb");o.a([r.a,_.a,f.a,g.a,v.a,u.a,l.a]);let m=class extends i.e{constructor(){super(...arguments),this.visitor={tooltip:{trigger:"axis"},legend:{data:["访客"]},xAxis:{type:"category",data:["周一","周二","周三","周四","周五","周六","周日"],splitLine:{show:!0,interval:"1"}},yAxis:{},series:[{name:"访客",type:"line",stack:"总量",data:[]}]},this.business={tooltip:{trigger:"axis"},legend:{data:["营业额","商品数量","订单数量"]},xAxis:{type:"category",data:["周一","周二","周三","周四","周五","周六","周日"],splitLine:{show:!0,interval:"1"}},yAxis:{type:"value"},series:[{name:"营业额",type:"line",stack:"总量",data:[]},{name:"商品数量",type:"line",stack:"总量",data:[]},{name:"订单数量",type:"line",stack:"总量",data:[]}]},this.indexData={shop_info:{logo:""},today:{today_order_num:"",today_order_amount:"",today_new_user:"",today_visitor:""},pending:{wait_shipped:"",wait_audit:"",wait_reply:"",no_stock_goods:""}},this.pagerTopGoods=new h.a,this.pagerTopUser=new h.a}getWorkbenchIndexData(){var t;this.business.xAxis.data=[],this.business.legend.data=[],(t={},n.a.get("/workbench/index",t)).then(t=>{this.indexData=t,t.business15.list[0].data=t.business15.list[0].data.reverse(),t.visitor15.list[0].data=t.visitor15.list[0].data.reverse(),this.business.xAxis.data=t.business15.date.reverse(),this.visitor.xAxis.data=t.visitor15.date.reverse(),t.business15.list.forEach((t,s)=>{this.business.series[s].data=t.data,this.business.series[s].name=t.name,this.business.legend.data[s]=t.name}),t.visitor15.list.forEach((t,s)=>{this.visitor.series[s].data=t.data,this.visitor.series[s].name=t.name})})}goPage(t){this.$router.push({path:t})}getTopGoods(){this.pagerTopGoods.request({callback:c}).then(t=>{})}getTopUser(){this.pagerTopUser.request({callback:d}).then(t=>{})}created(){this.getWorkbenchIndexData(),this.getTopGoods(),this.getTopUser()}};m=Object(e.a)([Object(i.a)({components:{LsPagination:p.a}})],m);var C=m,b=(a("4ab8"),a("2877")),x=Object(b.a)(C,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"ls-home"},[a("el-row",{staticClass:"ls-home__top col-stretch",attrs:{gutter:16,type:"flex"}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"ls-card ls-top__store"},[a("div",{staticClass:"title weight-500"},[t._v("商城信息")]),a("div",{staticClass:"content"},[a("div",{staticClass:"flex"},[a("el-image",{staticStyle:{width:"58px",height:"58px","border-radius":"50%"},attrs:{fit:"scale-down",src:t.indexData.shop_info.logo}}),a("div",{staticClass:"m-l-20"},[a("div",{staticClass:"store-name sm flex weight-600"},[a("span",[t._v(t._s(t.indexData.shop_info.name))])]),a("div",{staticClass:"store-status m-t-14 flex"},[a("span",{staticClass:"label"},[t._v("版本号:")]),a("span",[t._v(t._s(t.$store.getters.config.version))])])])],1),a("div",{staticClass:"store-time m-t-14 flex"}),t.$store.getters.config.document_status?a("div",{staticClass:"flex m-l-40"},[a("el-tag",{staticClass:"m-r-8",attrs:{type:"success",effect:"dark",size:"small"}},[a("a",{attrs:{href:"https://www.likeshop.cn/",target:"_blank"}},[t._v("官网 ")])]),a("el-tag",{staticClass:"m-l-4 m-r-4",attrs:{type:"danger",effect:"dark",size:"small"}},[a("a",{attrs:{href:"https://www.likeshop.cn/doc",target:"_blank"}},[t._v(" 开发文档 ")])])],1):t._e()])])]),a("el-col",{attrs:{span:18}},[a("div",{staticClass:"ls-card ls-top__data"},[a("div",{staticClass:"title"},[t._v("今日数据")]),a("div",{staticClass:"content"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"lighter"},[t._v("营业额(元)")]),a("div",{staticClass:"m-t-8 font-size-30"},[t._v(" "+t._s(t.indexData.today.today_order_amount)+" ")])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"lighter"},[t._v("成交订单(笔)")]),a("div",{staticClass:"m-t-8 font-size-30"},[t._v(" "+t._s(t.indexData.today.today_order_num)+" ")])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"lighter"},[t._v("访客数(人)")]),a("div",{staticClass:"m-t-8 font-size-30"},[t._v(" "+t._s(t.indexData.today.today_visitor)+" ")])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"lighter"},[t._v("新增用户(人)")]),a("div",{staticClass:"m-t-8 font-size-30"},[t._v(" "+t._s(t.indexData.today.today_new_user)+" ")])])],1)],1)])])],1),a("div",{staticClass:"ls-card ls-home_todo m-t-16"},[a("div",{staticClass:"title"},[t._v("待办事项")]),a("div",{staticClass:"content"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"pointer",on:{click:function(s){return t.goPage("order/order")}}},[a("div",{staticClass:"lighter"},[t._v("待发货订单")]),a("div",{staticClass:"m-t-8 font-size-30"},[t._v(" "+t._s(t.indexData.pending.wait_shipped)+" ")])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"pointer",on:{click:function(s){return t.goPage("/order/after_sales")}}},[a("div",{staticClass:"lighter"},[t._v("待审核售后申请")]),a("div",{staticClass:"m-t-8 font-size-30"},[t._v(" "+t._s(t.indexData.pending.wait_audit)+" ")])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"pointer",on:{click:function(s){return t.goPage("/goods/evaluation")}}},[a("div",{staticClass:"lighter"},[t._v("待审核商品评价")]),a("div",{staticClass:"m-t-8 font-size-30"},[t._v(" "+t._s(t.indexData.pending.wait_process)+" ")])])]),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"pointer",on:{click:function(s){return t.goPage("/goods/lists")}}},[a("div",{staticClass:"lighter"},[t._v("售罄商品")]),a("div",{staticClass:"m-t-8 font-size-30"},[t._v(" "+t._s(t.indexData.pending.no_stock_goods)+" ")])])])],1)],1)]),a("el-row",{staticClass:"ls-home__chart m-t-16",attrs:{gutter:16}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"ls-card ls-chart--turnover"},[a("div",{staticClass:"title"},[t._v("近15天营业额(元)")]),a("div",{staticClass:"content"},[a("e-chart",{staticClass:"chart",attrs:{option:t.business}})],1)])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"ls-card ls-chart--visitors"},[a("div",{staticClass:"title"},[t._v("近15天访客数(人)")]),a("div",{staticClass:"content"},[a("e-chart",{staticClass:"chart",attrs:{option:t.visitor}})],1)])])],1),a("el-row",{staticClass:"ls-home__rank m-t-16",attrs:{gutter:16}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"ls-card"},[a("div",{staticClass:"title"},[t._v("商品销量排行")]),a("div",{staticClass:"content"},[a("el-table",{attrs:{data:t.pagerTopGoods.lists,size:"mini"}},[a("el-table-column",{attrs:{label:"排名","min-width":"70"},scopedSlots:t._u([{key:"default",fn:function(s){return[s.$index+(t.pagerTopGoods._page-1)*t.pagerTopGoods._size==0?a("div",{staticClass:"icon",staticStyle:{background:"#f86056",color:"#fff"}},[t._v(" "+t._s(s.$index+1+(t.pagerTopGoods._page-1)*t.pagerTopGoods._size)+" ")]):t._e(),s.$index+(t.pagerTopGoods._page-1)*t.pagerTopGoods._size==1?a("div",{staticClass:"icon",staticStyle:{background:"#fc8d2e",color:"#fff"}},[t._v(" "+t._s(s.$index+1+(t.pagerTopGoods._page-1)*t.pagerTopGoods._size)+" ")]):t._e(),s.$index+(t.pagerTopGoods._page-1)*t.pagerTopGoods._size==2?a("div",{staticClass:"icon",staticStyle:{background:"#fcbc2e",color:"#fff"}},[t._v(" "+t._s(s.$index+1+(t.pagerTopGoods._page-1)*t.pagerTopGoods._size)+" ")]):t._e(),s.$index+(t.pagerTopGoods._page-1)*t.pagerTopGoods._size>=3?a("div",{staticClass:"icon"},[t._v(" "+t._s(s.$index+1+(t.pagerTopGoods._page-1)*t.pagerTopGoods._size)+" ")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"商品信息","min-width":"300","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(s){return[a("div",{staticClass:"flex"},[a("el-image",{staticClass:"flex-none",staticStyle:{width:"34px",height:"34px"},attrs:{src:s.row.image}}),a("div",{staticClass:"m-l-10 line-1"},[t._v(" "+t._s(s.row.name)+" ")])],1)]}}])}),a("el-table-column",{attrs:{prop:"total_num",label:"销量"}}),a("el-table-column",{attrs:{prop:"total_pay_price",label:"销售额"},scopedSlots:t._u([{key:"default",fn:function(s){return[t._v(" ¥"+t._s(s.row.total_pay_price)+" ")]}}])})],1)],1),a("div",{staticClass:"flex row-right m-t-16 row-right"},[a("ls-pagination",{on:{change:t.getTopGoods},model:{value:t.pagerTopGoods,callback:function(s){t.pagerTopGoods=s},expression:"pagerTopGoods"}})],1)])]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"ls-card"},[a("div",{staticClass:"title"},[t._v("用户购买能力排行")]),a("div",{staticClass:"content"},[a("el-table",{attrs:{data:t.pagerTopUser.lists,size:"mini"}},[a("el-table-column",{attrs:{label:"排名","min-width":"70"},scopedSlots:t._u([{key:"default",fn:function(s){return[s.$index+(t.pagerTopUser._page-1)*t.pagerTopUser._size==0?a("div",{staticClass:"icon",staticStyle:{background:"#f86056",color:"#fff"}},[t._v(" "+t._s(s.$index+1+(t.pagerTopUser._page-1)*t.pagerTopUser._size)+" ")]):t._e(),s.$index+(t.pagerTopUser._page-1)*t.pagerTopUser._size==1?a("div",{staticClass:"icon",staticStyle:{background:"#fc8d2e",color:"#fff"}},[t._v(" "+t._s(s.$index+1+(t.pagerTopUser._page-1)*t.pagerTopUser._size)+" ")]):t._e(),s.$index+(t.pagerTopUser._page-1)*t.pagerTopUser._size==2?a("div",{staticClass:"icon",staticStyle:{background:"#fcbc2e",color:"#fff"}},[t._v(" "+t._s(s.$index+1+(t.pagerTopUser._page-1)*t.pagerTopUser._size)+" ")]):t._e(),s.$index+(t.pagerTopUser._page-1)*t.pagerTopUser._size>=3?a("div",{staticClass:"icon"},[t._v(" "+t._s(s.$index+1+(t.pagerTopUser._page-1)*t.pagerTopUser._size)+" ")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"用户信息","min-width":"300","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(s){return[a("div",{staticClass:"flex"},[a("el-image",{staticClass:"flex-none",staticStyle:{width:"34px",height:"34px"},attrs:{src:s.row.avatar}}),a("div",{staticClass:"m-l-10 line-1"},[t._v(" "+t._s(s.row.nickname)+" ")])],1)]}}])}),a("el-table-column",{attrs:{prop:"total_num",label:"成交单数"}}),a("el-table-column",{attrs:{prop:"total_order_amount",label:"消费金额"},scopedSlots:t._u([{key:"default",fn:function(s){return[t._v(" ¥"+t._s(s.row.total_order_amount)+" ")]}}])})],1)],1),a("div",{staticClass:"flex row-right m-t-16 row-right"},[a("ls-pagination",{on:{change:t.getTopUser},model:{value:t.pagerTopUser,callback:function(s){t.pagerTopUser=s},expression:"pagerTopUser"}})],1)])])],1)],1)}),[],!1,null,"ebdb168e",null);s.default=x.exports}}]);
|