| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-66919ebd","chunk-3e88096d"],{"1a91":function(t,a,s){"use strict";s("b6ee")},"1f40":function(t,a,s){},"4a12":function(t,a,s){"use strict";s.r(a);var i=function(){var t=this,a=t._self._c;return a("div",{staticClass:"home"},[a("el-row",{staticClass:"card-statistics",attrs:{gutter:20}},[a("el-col",{attrs:{md:12,xl:6}},[a("div",{staticClass:"card block"},[a("div",{staticClass:"val"},[a("div",{staticClass:"left"},[a("i",{staticClass:"el-icon-s-goods"})]),a("div",{staticClass:"right"},[a("p",[t._v("总收入")]),a("p",[t._v("¥15,650")])])]),a("div",{staticClass:"desc"},[a("i",{staticClass:"el-icon-warning"}),a("span",[t._v("25% lower growth")])])])]),a("el-col",{attrs:{md:12,xl:6}},[a("div",{staticClass:"card block"},[a("div",{staticClass:"val"},[a("div",{staticClass:"left"},[a("i",{staticClass:"el-icon-s-flag"})]),a("div",{staticClass:"right"},[a("p",[t._v("订单")]),a("p",[t._v("1822")])])]),a("div",{staticClass:"desc"},[a("i",{staticClass:"el-icon-warning"}),a("span",[t._v("Product-wise sales")])])])]),a("el-col",{attrs:{md:12,xl:6}},[a("div",{staticClass:"card block"},[a("div",{staticClass:"val"},[a("div",{staticClass:"left"},[a("i",{staticClass:"el-icon-s-marketing"})]),a("div",{staticClass:"right"},[a("p",[t._v("销售")]),a("p",[t._v("312")])])]),a("div",{staticClass:"desc"},[a("i",{staticClass:"el-icon-warning"}),a("span",[t._v("Weekly Sales")])])])]),a("el-col",{attrs:{md:12,xl:6}},[a("div",{staticClass:"card block"},[a("div",{staticClass:"val"},[a("div",{staticClass:"left"},[a("i",{staticClass:"el-icon-s-custom"})]),a("div",{staticClass:"right"},[a("p",[t._v("用户")]),a("p",[t._v("2246")])])]),a("div",{staticClass:"desc"},[a("i",{staticClass:"el-icon-warning"}),a("span",[t._v("Product-wise sales")])])])])],1),a("div",{staticClass:"card card-visitor"},[a("p",{staticClass:"card-title"},[t._v("用户访客")]),a("div",{staticClass:"card-body"},[a("echart1")],1)])],1)},e=[],l=(s("7c3c"),s("fadf"),s("a371")),c={components:{Echart1:l["default"]},data:function(){return{crud:{service:this.$service.test,table:{columns:[{type:"index",align:"center",width:100},{label:"名字",prop:"name",align:"center"},{label:"进展",prop:"process",align:"center"},{label:"总量",prop:"price",align:"center"},{label:"销售",prop:"salesRate",align:"center"},{label:"最后期限",prop:"endTime",align:"center"}],op:{hidden:!0},props:{"max-height":"500px"}},layout:[["data-table"]]}}},methods:{toDocs:function(){window.open("https://docs.x-admin.com/#/")},onCrudLoad:function(t){var a=t.ctx,s=t.app;a({service:this.$service.test,table:{columns:[{type:"index",align:"center",width:100},{label:"名字",prop:"name",align:"center"},{label:"进展",prop:"process",align:"center"},{label:"总量",prop:"price",align:"center"},{label:"销售",prop:"salesRate",align:"center"},{label:"最后期限",prop:"endTime",align:"center"}],op:{visible:!1},props:{"max-height":"500px"}},layout:[["data-table"]]}).done(),s.refresh()}}},n=c,r=(s("1a91"),s("1805")),o=Object(r["a"])(n,i,e,!1,null,"3e04ddbc",null);a["default"]=o.exports},a371:function(t,a,s){"use strict";s.r(a);var i=function(){var t=this,a=t._self._c;return a("e-charts",{attrs:{options:t.options}})},e=[],l=(s("f16c"),s("b144"),s("5f45"),s("6678")),c=s.n(l),n=(s("44e5"),{name:"echart",components:{ECharts:c.a},props:{chartData:{type:Object}},data:function(){return{chart:null,options:{}}},watch:{chartData:{deep:!0,handler:function(t){if(!this.chart)return!1;this.initChart()}}},methods:{initChart:function(){if(this.chart=!0,this.$util.isEmpty(this.chartData))return!1;var t=JSON.parse(JSON.stringify(this.chartData)),a=[],s=[];for(var i in t)a.push(i),s.push(t[i]);this.setOptions({nameData:a,numData:s})},setOptions:function(t){this.options={tooltip:{trigger:"axis"},grid:{left:"3%",right:"3%",top:"30",bottom:"0",containLabel:!0},xAxis:[{type:"category",data:t.nameData,axisLine:{lineStyle:{color:"#999"}}}],yAxis:[{type:"value",splitNumber:9,splitLine:{lineStyle:{type:"dashed",color:"#DDD"}},axisLine:{show:!1,lineStyle:{color:"#333"}},nameTextStyle:{color:"#999"},splitArea:{show:!1}}],series:[{name:"统计",type:"line",data:t.numData,lineStyle:{normal:{width:2,color:{type:"linear",colorStops:[{offset:0,color:"#3385ff"},{offset:1,color:"#3385ff"}],globalCoord:!1},shadowColor:"rgba(72,216,191, 0)",shadowBlur:10,shadowOffsetY:20}},itemStyle:{normal:{color:"#fff",borderWidth:2,borderColor:"#3385ff"}},smooth:!0}]}}}}),r=n,o=(s("d84a"),s("1805")),d=Object(o["a"])(r,i,e,!1,null,"9815122a",null);a["default"]=d.exports},b6ee:function(t,a,s){},d84a:function(t,a,s){"use strict";s("1f40")}}]);
|