1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5cf60954"],{"0b65":function(t,e,n){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,n=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,n))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},"0c9f":function(t,e,n){"use strict";n.d(e,"k",(function(){return i})),n.d(e,"p",(function(){return r})),n.d(e,"n",(function(){return s})),n.d(e,"m",(function(){return o})),n.d(e,"q",(function(){return c})),n.d(e,"s",(function(){return l})),n.d(e,"t",(function(){return u})),n.d(e,"w",(function(){return d})),n.d(e,"u",(function(){return h})),n.d(e,"v",(function(){return f})),n.d(e,"r",(function(){return m})),n.d(e,"o",(function(){return g})),n.d(e,"l",(function(){return p})),n.d(e,"g",(function(){return b})),n.d(e,"j",(function(){return w})),n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return x})),n.d(e,"d",(function(){return D})),n.d(e,"e",(function(){return C})),n.d(e,"f",(function(){return O})),n.d(e,"h",(function(){return _})),n.d(e,"i",(function(){return L}));var a=n("b6bd");function i(t){return Object(a.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function r(t){return Object(a.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function s(t){return Object(a.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function o(t){return Object(a.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function c(t){return Object(a.a)({url:"/statistic/user/get_basic",method:"get",params:t})}function l(t){return Object(a.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function u(t){return Object(a.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function d(t){return Object(a.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function h(t){return Object(a.a)({url:"/statistic/user/get_region",method:"get",params:t})}function f(t){return Object(a.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function m(t){return Object(a.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function g(t){return Object(a.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function p(t){return Object(a.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function b(t){return Object(a.a)({url:"finance/flow/get_list",method:"get",params:t})}function w(t,e){return Object(a.a)({url:"finance/flow/set_mark/".concat(t),method:"post",data:e})}function v(t){return Object(a.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function y(t){return Object(a.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function x(t){return Object(a.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function D(t){return Object(a.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function C(t){return Object(a.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function O(t){return Object(a.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function _(t){return Object(a.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function L(t){return Object(a.a)({url:"/statistic/order/get_type",method:"get",params:t})}},"3be2":function(t,e,n){"use strict";var a=n("83f9");n.n(a).a},"5dd9":function(t,e,n){"use strict";var a=n("fd59");n.n(a).a},"61f7":function(t,e,n){"use strict";function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(n,!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var a in n)if(new RegExp("(".concat(a,")")).test(e)){var i=n[a]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?i:o(i))}return e}function o(t){return("00"+t).substr(t.length)}n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return d}));var c={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},l=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function u(t){return i({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function d(t){return h.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}l(u,"请输入%s"),l(d,"%s格式不正确");var h=Object.keys(c).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s="range"===e?{min:t[0],max:t[1]}:r({},e,t);return i({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},s,{},a)},l(t[e],c[e]),t}),{})},"6d5b":function(t,e,n){"use strict";n.r(e);var a=n("a34a"),i=n.n(a),r=n("a584"),s=n("c71e"),o=n("0c9f"),c=n("61f7"),l=n("9901"),u=n("0b65"),d=n("2f62");function h(t,e,n,a,i,r,s){try{var o=t[r](s),c=o.value}catch(t){return void n(t)}o.done?e(c):Promise.resolve(c).then(a,i)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g={name:"index",components:{cardsData:r.a,echartsNew:s.a,echartsFrom:l.a},data:function(){return{timeVal:[],style:{height:"400px"},infoList:{},infoList2:{},echartLeft:!0,echartRight:!1,loading:!1,loading2:!1,fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"本周",val:"week"},{text:"本月",val:"month"},{text:"本季度",val:"quarter"},{text:"本年",val:"year"}]},formValidate:{time:""},cardLists:[{col:4,count:0,name:"支付订单数",className:"md-rose"},{col:4,count:0,name:"实付金额",className:"ios-speedometer-outline"},{col:4,count:0,name:"退款订单量",className:"ios-speedometer-outline"},{col:4,count:0,name:"退款金额",className:"md-rose"},{col:4,count:0,name:"用券金额",className:"md-ribbon"},{col:4,count:0,name:"用券数量",className:"md-ribbon"}],optionData:{},spinShow:!1,options:u.a,columns:[{title:"序号",type:"index",width:60,align:"center"},{title:"来源",key:"name",minWidth:80,align:"center"},{title:"金额",width:180,key:"value",align:"center"},{title:"占比率",slot:"percent",minWidth:100,align:"center"}],columns1:[],tabList:[],tabList2:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(n,!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(d.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){var t=JSON.parse(JSON.stringify(this.columns));t.splice(2,1,{title:"订单量",width:180,key:"value",align:"center"}),this.columns1=t;var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),this.timeVal=[n,e],this.formValidate.time=Object(c.a)(n,"yyyy/MM/dd")+"-"+Object(c.a)(e,"yyyy/MM/dd"),this.onInit()},methods:{onInit:function(){this.getBasic(),this.getTrend(),this.getChannel(),this.getType()},onSelectDate:function(t){this.formValidate.time=t,this.onInit()},timeG:function(t){var e=new Date(t);return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()},getBasic:function(){var t=this;Object(o.e)(this.formValidate).then((function(e){var n=["pay_count","pay_price","refund_count","refund_price","coupon_price","coupon_count"];t.cardLists.map((function(t,a){t.count=e.data[n[a]]}))}))},getChannel:function(){var t=this;this.loading=!0,Object(o.f)(this.formValidate).then((function(e){t.infoList=e.data,t.tabList=e.data.list,t.loading=!1}))},getType:function(){var t=this;this.loading2=!0,Object(o.i)(this.formValidate).then((function(e){t.infoList2=e.data,t.tabList2=e.data.list,t.loading2=!1}))},selectChange:function(t){},onchangeTime:function(t){this.timeVal=t,this.formValidate.time=this.timeVal[0]?this.timeVal.join("-"):"",this.name=this.formValidate.time,this.getBasic(),this.formValidate.time&&this.getTrend(),this.getChannel(),this.getType()},getTrend:function(){var t=this;this.spinShow=!0,Object(o.h)(this.formValidate).then(function(){var e,n=(e=i.a.mark((function e(n){var a,r,s,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.data.series.map((function(t){return t.name})),r=n.data.xAxis,s=["#5B8FF9","#5AD8A6","#FFAB2B","#5D7092"],o=[],n.data.series.map((function(t,e){o.push({name:t.name,type:"line",data:t.data,itemStyle:{normal:{color:s[e]}},smooth:0})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:a},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}},right:"5%"},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:r},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:o},t.spinShow=!1;case 7:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,i){var r=e.apply(t,n);function s(t){h(r,a,i,s,o,"next",t)}function o(t){h(r,a,i,s,o,"throw",t)}s(void 0)}))});return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg),t.spinShow=!1}))}}},p=(n("3be2"),n("2877")),b=Object(p.a)(g,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"formInline",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""}},[n("FormItem",{attrs:{label:"选择时间:"}},[n("DatePicker",{staticClass:"mr20",staticStyle:{width:"200px"},attrs:{editable:!1,clearable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"请选择时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)],1)],1),t.cardLists.length>=0?n("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),n("Card",{attrs:{bordered:!1,"dis-hover":""}},[n("h3",[t._v("营业趋势")]),t.optionData?n("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e()],1),t.spinShow?n("Spin",{attrs:{size:"large",fix:""}}):t._e(),n("div",{staticClass:"code-row-bg"},[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"acea-row row-between-wrapper"},[n("h3",{staticClass:"header-title"},[t._v("订单来源分析")]),n("div",{staticClass:"change-style",on:{click:function(e){t.echartLeft=!t.echartLeft}}},[t._v("\n 切换样式\n ")])]),n("div",{staticClass:"ech-box"},[t.echartLeft?n("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList,echartsTitle:"circle"}}):t._e(),n("Table",{directives:[{name:"show",rawName:"v-show",value:!t.echartLeft,expression:"!echartLeft"}],ref:"selection",attrs:{columns:t.columns1,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"percent",fn:function(e){var a=e.row;return[n("div",{staticClass:"percent-box"},[n("div",{staticClass:"line"},[n("div",{staticClass:"bg"}),n("div",{staticClass:"percent",style:"width:"+a.percent+"%;"})]),n("div",{staticClass:"num"},[t._v(t._s(a.percent)+"%")])])]}}])})],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"acea-row row-between-wrapper"},[n("h3",{staticClass:"header-title"},[t._v("订单类型分析")]),n("div",{staticClass:"change-style",on:{click:function(e){t.echartRight=!t.echartRight}}},[t._v("\n 切换样式\n ")])]),n("div",{staticClass:"ech-box",staticStyle:{"max-height":"350px",overflow:"auto"}},[t.echartRight?n("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList2,echartsTitle:"circle"}}):t._e(),n("Table",{directives:[{name:"show",rawName:"v-show",value:!t.echartRight,expression:"!echartRight"}],ref:"selection",attrs:{columns:t.columns,data:t.tabList2,loading:t.loading2,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"percent",fn:function(e){var a=e.row;return[n("div",{staticClass:"percent-box"},[n("div",{staticClass:"line"},[n("div",{staticClass:"bg"}),n("div",{staticClass:"percent",style:"width:"+a.percent+"%;"})]),n("div",{staticClass:"num"},[t._v(t._s(a.percent)+"%")])])]}}])})],1)])],1)],1)}),[],!1,null,"3896b0c3",null);e.default=b.exports},"83f9":function(t,e,n){},"8dd3":function(t,e,n){"use strict";var a=n("b93c");n.n(a).a},9901:function(t,e,n){"use strict";var a=n("313e"),i=n.n(a),r={name:"index",props:{infoList:{type:Object,default:null},styles:{type:Object,default:null},series:Array,echartsTitle:{type:String,default:""},yAxisData:{type:Array,default:function(){return[]}},bingXdata:Array},data:function(){return{infoLists:this.infoList,seriesArray:this.series}},watch:{infoList:{handler:function(t,e){this.infoLists=t,this.handleSetVisitChart()},deep:!0},series:{handler:function(t,e){this.seriesArray=t,this.handleSetVisitChart()},deep:!0}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){var t=this;this.myChart=i.a.init(document.getElementById(this.echarts));var e=null;e="circle"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:this.infoLists.bing_xdata||[]},series:[{name:"",type:"pie",radius:"60%",center:["50%","50%"],data:this.infoLists.bing_data||[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}:"circle1"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{b} : {c} ({d}%)"},legend:{icon:"circle",top:"5%",left:"center",fontSize:"12",data:this.infoLists.bing_xdata||[]},series:[{name:"访问来源",type:"pie",radius:["30%","60%"],avoidLabelOverlap:!1,label:{show:!0,formatter:"{d}%",position:"inner",fontSize:"12"},emphasis:{label:{show:!0,fontSize:"15",fontWeight:"bold"}},labelLine:{show:!1},data:this.infoLists.bing_data||[]}]}:"inlie"===this.echartsTitle?{tooltip:{trigger:"axis"},toolbox:{},legend:{icon:"line",left:"left",fontWeight:"100",data:this.infoLists.legend||[]},color:["#1495EB","#00CC66","#F9D249","#ff9900","#9860DF"],grid:{left:16,right:25,bottom:10,top:40,containLabel:!0},xAxis:[{type:"category",axisLine:{lineStyle:{color:"#D7DDE4"}},axisTick:{alignWithLabel:!0,lineStyle:{color:"#D7DDE4"}},splitLine:{show:!1,lineStyle:{color:"#F5F7F9"}},axisLabel:{interval:0,rotate:40,textStyle:{color:"#7F8B9C"}},data:this.infoLists.xAxis}],yAxis:this.yAxisData.length?this.yAxisData:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}},type:"value"},series:this.seriesArray}:{tooltip:{trigger:"axis"},toolbox:{},legend:{data:this.infoLists.legend||[]},color:["#1495EB","#00CC66","#F9D249","#ff9900","#9860DF"],grid:{left:16,right:25,bottom:10,top:40,containLabel:!0},xAxis:[{type:"category",axisLine:{lineStyle:{color:"#D7DDE4"}},axisTick:{alignWithLabel:!0,lineStyle:{color:"#D7DDE4"}},splitLine:{show:!1,lineStyle:{color:"#F5F7F9"}},axisLabel:{interval:0,rotate:40,textStyle:{color:"#7F8B9C"}},data:this.infoLists.xAxis}],yAxis:this.yAxisData.length?this.yAxisData:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}},type:"value"},series:this.seriesArray},setTimeout((function(){t.wsFunc(),t.myChart.setOption(e,!0)}),200)},handleResize:function(){this.myChart.resize()}},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)}},s=(n("8dd3"),n("2877")),o=Object(s.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"styles",style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"e03fd378",null);e.a=o.exports},a584:function(t,e,n){"use strict";var a;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=(i(a={name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),i(a,"methods",{}),i(a,"created",(function(){})),a),s=(n("5dd9"),n("2877")),o=Object(s.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(e,a){return n("Col",{key:a,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:e.col}}},[n("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[n("div",{staticClass:"card_box"},[n("div",{staticClass:"card_box_cir",class:{one:a%5==0,two:a%5==1,three:a%5==2,four:a%5==3,five:a%5==4}},[n("div",{staticClass:"card_box_cir1",class:{one1:a%5==0,two1:a%5==1,three1:a%5==2,four1:a%5==3,five1:a%5==4}},[e.type?n("span",{staticClass:"iconfont",class:e.className}):n("Icon",{attrs:{type:e.className}})],1)]),n("div",{staticClass:"card_box_txt"},[n("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),n("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);e.a=o.exports},b93c:function(t,e,n){},c71e:function(t,e,n){"use strict";var a=n("313e"),i=n.n(a),r={name:"Index",props:{styles:{type:Object,default:null},optionData:{type:Object,default:null}},data:function(){return{myChart:null}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},watch:{optionData:{handler:function(t,e){this.handleSetVisitChart()},deep:!0}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){var t;this.myChart=i.a.init(document.getElementById(this.echarts)),t=this.optionData,this.myChart.setOption(t,!0)}}},s=n("2877"),o=Object(s.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"458f4634",null);e.a=o.exports},fd59:function(t,e,n){}}]);
|