chunk-614a09ce.7ce39476.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-614a09ce"],{"05ed":function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t._self._c;return a("a-card",{attrs:{loading:t.loading,"body-style":{padding:"20px 24px 8px"},bordered:!1}},[a("div",{staticClass:"chart-card-header"},[a("div",{staticClass:"meta"},[a("span",{staticClass:"chart-card-title"},[t._v(t._s(t.title))]),a("span",{staticClass:"chart-card-action"},[t._t("action")],2)]),a("div",{staticClass:"total"},[a("span",[t._v(t._s(t.total))])])]),a("div",{staticClass:"chart-card-content"},[a("div",{staticClass:"content-fix"},[t._t("default")],2)]),a("div",{staticClass:"chart-card-footer"},[a("div",{staticClass:"field"},[t._t("footer")],2)])])},n=[],i={name:"ChartCard",props:{title:{type:String,default:""},total:{type:String,default:""},loading:{type:Boolean,default:!1}}},s=i,o=(e("d3bc"),e("2877")),l=Object(o["a"])(s,r,n,!1,null,"bc1c776e",null);a["default"]=l.exports},"0923":function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t._self._c;return a("div",{staticClass:"rank"},[a("h4",{staticClass:"title"},[t._v(t._s(t.title))]),a("ul",{staticClass:"list",style:{height:t.height?"".concat(t.height,"px"):"auto",overflow:"auto"}},t._l(t.list,(function(e,r){return a("li",{key:r},[a("span",{class:r<3?"active":null},[t._v(t._s(r+1))]),a("span",[t._v(t._s(e.name))]),a("span",[t._v(t._s(e.total))])])})),0)])},n=[],i={name:"RankList",props:{title:{type:String,default:""},list:{type:Array,default:null},height:{type:Number,default:null}}},s=i,o=(e("6762"),e("2877")),l=Object(o["a"])(s,r,n,!1,null,"83c80048",null);a["default"]=l.exports},"1c61":function(t,a,e){"use strict";e("d4dc")},"1d43":function(t,a,e){"use strict";e.r(a);for(var r=function(){var t=this,a=t._self._c;return a("div",{staticClass:"antv-chart-mini"},[a("div",{staticClass:"chart-wrapper",style:{height:46}},[a("v-chart",{attrs:{"force-fit":!0,height:t.height,data:t.data,scale:t.scale,padding:[36,0,18,0]}},[a("v-tooltip"),a("v-smooth-area",{attrs:{position:"x*y"}})],1)],1)])},n=[],i=e("5a0c"),s=e.n(i),o=[],l=(new Date).getTime(),c=0;c<10;c++)o.push({x:s()(new Date(l+864e5*c)).format("YYYY-MM-DD"),y:Math.round(10*Math.random())});var d={name:"MiniArea",props:{dataSource:{type:Array,default:function(){return[]}},x:{type:String,default:"x"},y:{type:String,default:"y"}},data:function(){return{data:[],height:100}},computed:{scale:function(){return[{dataKey:"x",title:this.x,alias:this.x},{dataKey:"y",title:this.y,alias:this.y}]}},created:function(){0===this.dataSource.length?this.data=o:this.data=this.dataSource}},u=d,f=(e("db929"),e("2877")),p=Object(f["a"])(u,r,n,!1,null,"1efcadbe",null);a["default"]=p.exports},"2e41":function(t,a,e){},"4ec6":function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t._self._c;return a("div",{style:{padding:"0 0 32px 32px"}},[a("h4",{style:{marginBottom:"20px"}},[t._v(t._s(t.title))]),a("v-chart",{attrs:{"force-fit":!0,height:t.height,data:t.data,scale:t.scale,onClick:t.handleClick}},[a("v-tooltip"),a("v-axis"),a("v-legend"),a("v-line",{attrs:{position:"type*y",color:"x"}}),a("v-point",{attrs:{position:"type*y",color:"x",size:4,"v-style":t.style,shape:"circle"}})],1)],1)},n=[],i=e("7104"),s=e("c917");function o(t,a){var e="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=l(t))||a&&t&&"number"===typeof t.length){e&&(t=e);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,o=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return s=t.done,t},e:function(t){o=!0,i=t},f:function(){try{s||null==e.return||e.return()}finally{if(o)throw i}}}}function l(t,a){if(t){if("string"===typeof t)return c(t,a);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,a):void 0}}function c(t,a){(null==a||a>t.length)&&(a=t.length);for(var e=0,r=new Array(a);e<a;e++)r[e]=t[e];return r}var d={name:"LineChartMultid",mixins:[s["a"]],props:{title:{type:String,default:""},dataSource:{type:Array,default:function(){return[{type:"Jan",jeecg:7,jeebt:3.9},{type:"Feb",jeecg:6.9,jeebt:4.2},{type:"Mar",jeecg:9.5,jeebt:5.7},{type:"Apr",jeecg:14.5,jeebt:8.5},{type:"May",jeecg:18.4,jeebt:11.9},{type:"Jun",jeecg:21.5,jeebt:15.2},{type:"Jul",jeecg:25.2,jeebt:17},{type:"Aug",jeecg:26.5,jeebt:16.6},{type:"Sep",jeecg:23.3,jeebt:14.2},{type:"Oct",jeecg:18.3,jeebt:10.3},{type:"Nov",jeecg:13.9,jeebt:6.6},{type:"Dec",jeecg:9.6,jeebt:4.8}]}},fields:{type:Array,default:function(){return["jeecg","jeebt"]}},aliases:{type:Array,default:function(){return[]}},height:{type:Number,default:254}},data:function(){return{scale:[{dataKey:"x",min:0,max:1}],style:{stroke:"#fff",lineWidth:1}}},computed:{data:function(){var t=this,a=(new i["DataSet"].View).source(this.dataSource);a.transform({type:"fold",fields:this.fields,key:"x",value:"y"});var e=a.rows;return e.forEach((function(a){var e,r=o(t.aliases);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(n.field===a.x){a.x=n.alias;break}}}catch(i){r.e(i)}finally{r.f()}})),e}}},u=d,f=e("2877"),p=Object(f["a"])(u,r,n,!1,null,"7ba9da5d",null);a["default"]=p.exports},6762:function(t,a,e){"use strict";e("a35a")},"73c4":function(t,a,e){},"81d1":function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t._self._c;return a("div",{staticClass:"head-info",class:t.center&&"center"},[a("span",[t._v(t._s(t.title))]),a("p",[t._v(t._s(t.content))]),t.bordered?a("em"):t._e()])},n=[],i={name:"HeadInfo",props:{title:{type:String,default:""},content:{type:String,default:""},bordered:{type:Boolean,default:!1},center:{type:Boolean,default:!0}}},s=i,o=(e("c5b5"),e("2877")),l=Object(o["a"])(s,r,n,!1,null,"35671dcd",null);a["default"]=l.exports},"8e56":function(t,a,e){},"8fe8":function(t,a,e){},"942d":function(t,a,e){"use strict";e.r(a);for(var r=function(){var t=this,a=t._self._c;return a("div",{style:{width:null==t.width?"auto":t.width+"px"}},[a("v-chart",{attrs:{forceFit:null==t.width,height:t.height,data:t.data,padding:"0"}},[a("v-tooltip"),a("v-bar",{attrs:{position:"x*y"}})],1)],1)},n=[],i=e("5a0c"),s=e.n(i),o=[],l=(new Date).getTime(),c=0;c<10;c++)o.push({x:s()(new Date(l+864e5*c)).format("YYYY-MM-DD"),y:Math.round(10*Math.random())});var d=["x*y",function(t,a){return{name:t,value:a}}],u=[{dataKey:"x",min:2},{dataKey:"y",title:"时间",min:1,max:30}],f={name:"MiniBar",props:{dataSource:{type:Array,default:function(){return[]}},width:{type:Number,default:null},height:{type:Number,default:200}},created:function(){0===this.dataSource.length?this.data=o:this.data=this.dataSource},data:function(){return{tooltip:d,data:[],scale:u}}},p=f,h=(e("fc33"),e("2877")),y=Object(h["a"])(p,r,n,!1,null,"ebc8c03c",null);a["default"]=y.exports},"94bb":function(t,a,e){"use strict";e.r(a);for(var r=function(){var t=this,a=t._self._c;return a("div",{staticClass:"page-header-index-wide"},[a("a-row",{attrs:{gutter:24}},[a("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[a("chart-card",{attrs:{loading:t.loading,title:"总销售额",total:"¥126,560"}},[a("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[a("a-icon",{attrs:{type:"info-circle-o"}})],1),a("div",[a("trend",{staticStyle:{"margin-right":"16px"},attrs:{flag:"up"}},[a("span",{attrs:{slot:"term"},slot:"term"},[t._v("周同比")]),t._v("\n 12%\n ")]),a("trend",{attrs:{flag:"down"}},[a("span",{attrs:{slot:"term"},slot:"term"},[t._v("日同比")]),t._v("\n 11%\n ")])],1),a("template",{slot:"footer"},[t._v("日均销售额"),a("span",[t._v("¥ 234.56")])])],2)],1),a("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[a("chart-card",{attrs:{loading:t.loading,title:"订单量",total:t._f("NumberFormat")(8846)}},[a("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[a("a-icon",{attrs:{type:"info-circle-o"}})],1),a("div",[a("mini-area")],1),a("template",{slot:"footer"},[t._v("日订单量"),a("span",[t._v(" "+t._s(t._f("NumberFormat")("1234")))])])],2)],1),a("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[a("chart-card",{attrs:{loading:t.loading,title:"支付笔数",total:t._f("NumberFormat")(6560)}},[a("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[a("a-icon",{attrs:{type:"info-circle-o"}})],1),a("div",[a("mini-bar",{attrs:{height:40}})],1),a("template",{slot:"footer"},[t._v("转化率 "),a("span",[t._v("60%")])])],2)],1),a("a-col",{style:{marginBottom:"24px"},attrs:{sm:24,md:12,xl:6}},[a("chart-card",{attrs:{loading:t.loading,title:"运营活动效果",total:"78%"}},[a("a-tooltip",{attrs:{slot:"action",title:"指标说明"},slot:"action"},[a("a-icon",{attrs:{type:"info-circle-o"}})],1),a("div",[a("mini-progress",{attrs:{color:"rgb(19, 194, 194)",target:80,percentage:78,height:8}})],1),a("template",{slot:"footer"},[a("trend",{staticStyle:{"margin-right":"16px"},attrs:{flag:"down"}},[a("span",{attrs:{slot:"term"},slot:"term"},[t._v("同周比")]),t._v("\n 12%\n ")]),a("trend",{attrs:{flag:"up"}},[a("span",{attrs:{slot:"term"},slot:"term"},[t._v("日环比")]),t._v("\n 80%\n ")])],1)],2)],1)],1),a("a-card",{attrs:{loading:t.loading,bordered:!1,"body-style":{padding:"0"}}},[a("div",{staticClass:"salesCard"},[a("a-tabs",{attrs:{"default-active-key":"1",size:"large","tab-bar-style":{marginBottom:"24px",paddingLeft:"16px"}}},[a("div",{staticClass:"extra-wrapper",attrs:{slot:"tabBarExtraContent"},slot:"tabBarExtraContent"},[a("div",{staticClass:"extra-item"},[a("a",[t._v("今日")]),a("a",[t._v("本周")]),a("a",[t._v("本月")]),a("a",[t._v("本年")])]),a("a-range-picker",{style:{width:"256px"}})],1),a("a-tab-pane",{key:"1",attrs:{loading:"true",tab:"销售额"}},[a("a-row",[a("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[a("bar",{attrs:{title:"销售额排行",dataSource:t.barData}})],1),a("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[a("rank-list",{attrs:{title:"门店销售排行榜",list:t.rankList}})],1)],1)],1),a("a-tab-pane",{key:"2",attrs:{tab:"销售趋势"}},[a("a-row",[a("a-col",{attrs:{xl:16,lg:12,md:12,sm:24,xs:24}},[a("bar",{attrs:{title:"销售额趋势",dataSource:t.barData}})],1),a("a-col",{attrs:{xl:8,lg:12,md:12,sm:24,xs:24}},[a("rank-list",{attrs:{title:"门店销售排行榜",list:t.rankList}})],1)],1)],1)],1)],1)]),a("a-row",[a("a-col",{attrs:{span:24}},[a("a-card",{style:{marginTop:"24px"},attrs:{loading:t.loading,bordered:!1,title:"最近一周访问量统计"}},[a("a-row",[a("a-col",{attrs:{span:6}},[a("head-info",{attrs:{title:"今日IP",content:t.loginfo.todayIp}})],1),a("a-col",{attrs:{span:2}},[a("a-spin",{staticClass:"circle-cust"},[a("a-icon",{staticStyle:{"font-size":"24px"},attrs:{slot:"indicator",type:"environment"},slot:"indicator"})],1)],1),a("a-col",{attrs:{span:6}},[a("head-info",{attrs:{title:"今日访问",content:t.loginfo.todayVisitCount}})],1),a("a-col",{attrs:{span:2}},[a("a-spin",{staticClass:"circle-cust"},[a("a-icon",{staticStyle:{"font-size":"24px"},attrs:{slot:"indicator",type:"team"},slot:"indicator"})],1)],1),a("a-col",{attrs:{span:6}},[a("head-info",{attrs:{title:"总访问量",content:t.loginfo.totalVisitCount}})],1),a("a-col",{attrs:{span:2}},[a("a-spin",{staticClass:"circle-cust"},[a("a-icon",{staticStyle:{"font-size":"24px"},attrs:{slot:"indicator",type:"rise"},slot:"indicator"})],1)],1)],1),a("line-chart-multid",{attrs:{fields:t.visitFields,dataSource:t.visitInfo}})],1)],1)],1)],1)},n=[],i=e("05ed"),s=e("da05"),o=e("3896"),l=e("1d43"),c=e("942d"),d=e("bf13"),u=e("0923"),f=e("edd9"),p=e("4ec6"),h=e("81d1"),y=e("611e"),g=e("4ec3"),v=[],m=0;m<7;m++)v.push({name:"白鹭岛 "+(m+1)+" 号店",total:1234.56-100*m});for(var b=[],x=0;x<12;x+=1)b.push({x:"".concat(x+1,"月"),y:Math.floor(1e3*Math.random())+200});var _={name:"IndexChart",components:{ATooltip:o["a"],ACol:s["b"],ChartCard:i["default"],MiniArea:l["default"],MiniBar:c["default"],MiniProgress:d["default"],RankList:u["default"],Bar:f["default"],Trend:y["a"],LineChartMultid:p["default"],HeadInfo:h["default"]},data:function(){var t=this.$createElement;return{loading:!0,center:null,rankList:v,barData:b,loginfo:{},visitFields:["ip","visit"],visitInfo:[],indicator:t("a-icon",{attrs:{type:"loading",spin:!0},style:"font-size: 24px"})}},created:function(){var t=this;setTimeout((function(){t.loading=!t.loading}),1e3),this.initLogInfo()},methods:{initLogInfo:function(){var t=this;Object(g["u"])(null).then((function(a){a.success&&(Object.keys(a.result).forEach((function(t){a.result[t]=a.result[t]+""})),t.loginfo=a.result)})),Object(g["B"])().then((function(a){a.success&&(t.visitInfo=a.result)}))}}},C=_,j=(e("c861"),e("2877")),w=Object(j["a"])(C,r,n,!1,null,"26521da6",null);a["default"]=w.exports},a35a:function(t,a,e){},bf13:function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t._self._c;return a("div",{staticClass:"chart-mini-progress"},[a("div",{staticClass:"target",style:{left:t.target+"%"}},[a("span",{style:{backgroundColor:t.color}}),a("span",{style:{backgroundColor:t.color}})]),a("div",{staticClass:"progress-wrapper"},[a("div",{staticClass:"progress",style:{backgroundColor:t.color,width:t.percentage+"%",height:t.height+"px"}})])])},n=[],i={name:"MiniProgress",props:{target:{type:Number,default:0},height:{type:Number,default:10},color:{type:String,default:"#13C2C2"},percentage:{type:Number,default:0}}},s=i,o=(e("1c61"),e("2877")),l=Object(o["a"])(s,r,n,!1,null,"bc81620e",null);a["default"]=l.exports},c5b5:function(t,a,e){"use strict";e("d8dd")},c861:function(t,a,e){"use strict";e("73c4")},c917:function(t,a,e){"use strict";e.d(a,"a",(function(){return r}));var r={methods:{handleClick:function(t,a){this.handleEvent("click",t,a)},handleEvent:function(t,a,e){this.$emit(t,a,e)}}}},d3bc:function(t,a,e){"use strict";e("8e56")},d4dc:function(t,a,e){},d8dd:function(t,a,e){},db929:function(t,a,e){"use strict";e("8fe8")},edd9:function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t._self._c;return a("div",{style:{padding:"0 0 32px 32px"}},[a("h4",{style:{marginBottom:"20px"}},[t._v(t._s(t.title))]),a("v-chart",{attrs:{forceFit:!0,height:t.height,data:t.dataSource,scale:t.scale,padding:t.padding}},[a("v-tooltip"),a("v-axis"),a("v-bar",{attrs:{position:"x*y"}})],1)],1)},n=[],i=e("ca00"),s={name:"Bar",props:{dataSource:{type:Array,required:!0},yaxisText:{type:String,default:"y"},title:{type:String,default:""},height:{type:Number,default:254}},data:function(){return{padding:["auto","auto","40","50"]}},computed:{scale:function(){return[{dataKey:"y",alias:this.yaxisText}]}},mounted:function(){Object(i["k"])()}},o=s,l=e("2877"),c=Object(l["a"])(o,r,n,!1,null,null,null);a["default"]=c.exports},fc33:function(t,a,e){"use strict";e("2e41")}}]);