webpackJsonp([73],{NB3z:function(t,a){},tqu3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("Xxa5"),n=e.n(r),i=e("exGp"),s=e.n(i),c=e("5i7M"),o={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return s()(n.a.mark(function a(){var e;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){a.next=3;break}return a.abrupt("return");case 3:e=t.handleData(t.charData),t.chart=new c.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(e,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:5,nice:!0},times:{min:0,tickCount:5,nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Number(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return(t>=1?t:0)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(105,200,168,1)","rgba(251, 159, 45, 1)"]),t.chart.line().position("date*times").color("type",["rgba(251, 159, 45, 1)"]),t.chart.render();case 15:case"end":return a.stop()}},a,t)}))()},handleData:function(t){var a=[];return t.forEach(function(t){a.push({date:t.bizDate,type:"今日添加人数",num:t.addNum}),a.push({date:t.bizDate,type:"今日点击人数",num:t.clickNum}),a.push({date:t.bizDate,type:"今日点击人次",times:t.clickTimes})}),a}}},h={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():a("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"image-120",attrs:{src:e("es7N")}}),this._v(" "),a("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var u=e("VU/8")(o,h,!1,function(t){e("NB3z")},"data-v-867bb266",null);a.default=u.exports}});