You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
12 KiB
1 line
12 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6355b5eb"],{"05ed":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;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)])])},i=[],r={name:"ChartCard",props:{title:{type:String,default:""},total:{type:String,default:""},loading:{type:Boolean,default:!1}}},s=r,o=(a("7227"),a("2877")),l=Object(o["a"])(s,n,i,!1,null,"bc1c776e",null);e["default"]=l.exports},"0923":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"rank"},[a("h4",{staticClass:"title"},[t._v(t._s(t.title))]),a("ul",{staticClass:"list",style:{height:t.height?t.height+"px":"auto",overflow:"auto"}},t._l(t.list,(function(e,n){return a("li",{key:n},[a("span",{class:n<3?"active":null},[t._v(t._s(n+1))]),a("span",[t._v(t._s(e.name))]),a("span",[t._v(t._s(e.total))])])})),0)])},i=[],r={name:"RankList",props:{title:{type:String,default:""},list:{type:Array,default:null},height:{type:Number,default:null}}},s=r,o=(a("cd1e"),a("2877")),l=Object(o["a"])(s,n,i,!1,null,"83c80048",null);e["default"]=l.exports},"1d43":function(t,e,a){"use strict";a.r(e);for(var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;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)])},i=[],r=a("5a0c"),s=a.n(r),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 u={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}},d=u,f=(a("9815"),a("2877")),p=Object(f["a"])(d,n,i,!1,null,"1efcadbe",null);e["default"]=p.exports},"3c24":function(t,e,a){"use strict";a("bbed")},"435d":function(t,e,a){},"4ec6":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;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)},i=[],r=a("7104"),s=a("c917");function o(t,e){var a;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=l(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 r,s=!0,o=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return s=t.done,t},e:function(t){o=!0,r=t},f:function(){try{s||null==a.return||a.return()}finally{if(o)throw r}}}}function l(t,e){if(t){if("string"===typeof t)return c(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}var u={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:[{type:"cat",dataKey:"x",min:0,max:1}],style:{stroke:"#fff",lineWidth:1}}},computed:{data:function(){var t=this,e=(new r["DataSet"].View).source(this.dataSource);e.transform({type:"fold",fields:this.fields,key:"x",value:"y"});var a=e.rows;return a.forEach((function(e){var a,n=o(t.aliases);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i.field===e.x){e.x=i.alias;break}}}catch(r){n.e(r)}finally{n.f()}})),a}}},d=u,f=a("2877"),p=Object(f["a"])(d,n,i,!1,null,"527dc525",null);e["default"]=p.exports},"596c":function(t,e,a){},"5e01":function(t,e,a){},6837:function(t,e,a){},"70f7":function(t,e,a){},7227:function(t,e,a){"use strict";a("6837")},"726f":function(t,e,a){},"81d1":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;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()])},i=[],r={name:"HeadInfo",props:{title:{type:String,default:""},content:{type:String,default:""},bordered:{type:Boolean,default:!1},center:{type:Boolean,default:!0}}},s=r,o=(a("c002"),a("2877")),l=Object(o["a"])(s,n,i,!1,null,"35671dcd",null);e["default"]=l.exports},"942d":function(t,e,a){"use strict";a.r(e);for(var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;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)},i=[],r=a("5a0c"),s=a.n(r),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 u=["x*y",function(t,e){return{name:t,value:e}}],d=[{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:u,data:[],scale:d}}},p=f,h=(a("a8f1"),a("2877")),y=Object(h["a"])(p,n,i,!1,null,"ebc8c03c",null);e["default"]=y.exports},"94bb":function(t,e,a){"use strict";a.r(e);for(var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-header-index-wide"},[a("a-row",[a("a-col",{attrs:{xl:12,lg:12,md:12,sm:24,xs:24}},[a("a-card",[a("bar",{attrs:{title:"销售额排行",dataSource:t.barData}})],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)},i=[],r=a("05ed"),s=a("da05"),o=a("3896"),l=a("1d43"),c=a("942d"),u=a("bf13"),d=a("0923"),f=a("edd9"),p=a("4ec6"),h=a("81d1"),y=a("611e"),v=a("4ec3"),g=[],m=0;m<7;m++)g.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:r["default"],MiniArea:l["default"],MiniBar:c["default"],MiniProgress:u["default"],RankList:d["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:g,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(v["u"])(null).then((function(e){e.success&&(Object.keys(e.result).forEach((function(t){e.result[t]=e.result[t]+""})),t.loginfo=e.result)})),Object(v["B"])().then((function(e){e.success&&(t.visitInfo=e.result)}))}}},j=_,C=(a("e1f2"),a("2877")),S=Object(C["a"])(j,n,i,!1,null,"3460d948",null);e["default"]=S.exports},9815:function(t,e,a){"use strict";a("726f")},a8f1:function(t,e,a){"use strict";a("435d")},bbed:function(t,e,a){},bf13:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;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"}})])])},i=[],r={name:"MiniProgress",props:{target:{type:Number,default:0},height:{type:Number,default:10},color:{type:String,default:"#13C2C2"},percentage:{type:Number,default:0}}},s=r,o=(a("3c24"),a("2877")),l=Object(o["a"])(s,n,i,!1,null,"bc81620e",null);e["default"]=l.exports},c002:function(t,e,a){"use strict";a("596c")},c917:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var n={methods:{handleClick:function(t,e){this.handleEvent("click",t,e)},handleEvent:function(t,e,a){this.$emit(t,e,a)}}}},cd1e:function(t,e,a){"use strict";a("5e01")},e1f2:function(t,e,a){"use strict";a("70f7")},edd9:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;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)},i=[],r=a("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(r["o"])()}},o=s,l=a("2877"),c=Object(l["a"])(o,n,i,!1,null,null,null);e["default"]=c.exports}}]); |