(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26f85d70"],{"4d1d":function(t,e,i){"use strict";var a=i("ed08");e["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){var t=this;this.__resizeHandler=Object(a["b"])((function(){t.chart&&t.chart.resize()}),100),window.addEventListener("resize",this.__resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.__resizeHandler),this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},methods:{$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.__resizeHandler()}}}},a2c6:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.className,style:{height:t.height,width:t.width},attrs:{id:t.id}})},n=[],r=i("313e"),s=i.n(r),d=i("4d1d"),c={mixins:[d["a"]],props:{className:{type:String,default:"chart"},id:{type:String,default:"chart"},width:{type:String,default:"600px"},height:{type:String,default:"400px"},title:{type:String,default:""},desc:{type:String,default:""},showTitle:{type:String,default:""},seriesData:{type:Array,default:function(){return[]}}},data:function(){return{chart:null}},computed:{legendData:function(){var t=Object.assign([],this.seriesData);t.length<1&&(t=[0,0]);var e=[];return t.map((function(t){e.push([t.date||0,t.value||0])})),e}},watch:{seriesData:{handler:function(t,e){this.initChart()},deep:!0}},mounted:function(){this.initChart()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){var t=this;this.$nextTick((function(){t.chart=s.a.init(document.getElementById(t.id)),t.chart.clear(),t.chart.setOption({title:{text:t.title},tooltip:{trigger:"axis"},legend:{data:["邮件营销","联盟广告","视频广告","直接访问","搜索引擎"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:["周一","周二","周三","周四","周五","周六","周日",1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]},yAxis:{type:"value"},dataZoom:[{startValue:"2014-06-01"},{type:"inside"}],series:[{name:"邮件营销",type:"line",stack:"总量",data:[120,132,101,134,90,230,210,110,120,195,285,360,1150,1902,3800,1100,356,780,709]},{name:"联盟广告",type:"line",stack:"总量",data:[220,182,191,234,290,330,310]},{name:"视频广告",type:"line",stack:"总量",data:[150,232,201,154,190,330,410]},{name:"直接访问",type:"line",stack:"总量",data:[320,332,301,334,390,330,320]},{name:"搜索引擎",type:"line",stack:"总量",data:[820,932,901,934,1290,1330,1320]}]}),window.onresize=t.chart.resize}))},changeTime:function(){var t=new Date;return"".concat(t.getFullYear(),"-").concat(t.getMonth()+1,"-").concat(t.getDate())}}},l=c,o=i("2877"),h=Object(o["a"])(l,a,n,!1,null,null,null);e["default"]=h.exports}}]);