chunk-174c2b9a.4dc59a7d.js 21 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-174c2b9a"],{"0c9f":function(t,e,a){"use strict";a.d(e,"k",(function(){return r})),a.d(e,"p",(function(){return s})),a.d(e,"n",(function(){return i})),a.d(e,"m",(function(){return o})),a.d(e,"q",(function(){return c})),a.d(e,"s",(function(){return l})),a.d(e,"t",(function(){return u})),a.d(e,"w",(function(){return d})),a.d(e,"u",(function(){return m})),a.d(e,"v",(function(){return h})),a.d(e,"r",(function(){return p})),a.d(e,"o",(function(){return f})),a.d(e,"l",(function(){return g})),a.d(e,"g",(function(){return y})),a.d(e,"j",(function(){return b})),a.d(e,"a",(function(){return w})),a.d(e,"b",(function(){return D})),a.d(e,"c",(function(){return v})),a.d(e,"d",(function(){return x})),a.d(e,"e",(function(){return _})),a.d(e,"f",(function(){return C})),a.d(e,"h",(function(){return O})),a.d(e,"i",(function(){return j}));var n=a("b6bd");function r(t){return Object(n.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function s(t){return Object(n.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function i(t){return Object(n.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function o(t){return Object(n.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function c(t){return Object(n.a)({url:"/statistic/user/get_basic",method:"get",params:t})}function l(t){return Object(n.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function u(t){return Object(n.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function d(t){return Object(n.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function m(t){return Object(n.a)({url:"/statistic/user/get_region",method:"get",params:t})}function h(t){return Object(n.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function p(t){return Object(n.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function f(t){return Object(n.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function g(t){return Object(n.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function y(t){return Object(n.a)({url:"finance/flow/get_list",method:"get",params:t})}function b(t,e){return Object(n.a)({url:"finance/flow/set_mark/".concat(t),method:"post",data:e})}function w(t){return Object(n.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function D(t){return Object(n.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function v(t){return Object(n.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function x(t){return Object(n.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function _(t){return Object(n.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function C(t){return Object(n.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function O(t){return Object(n.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function j(t){return Object(n.a)({url:"/statistic/order/get_type",method:"get",params:t})}},"1c90":function(t,e,a){},4192:function(t,e,a){"use strict";a.r(e);var n=a("0c9f"),r=a("c71e"),s=a("313e"),i=a.n(s),o={name:"ToDay",components:{echartsNew:r.a},data:function(){return{style:{height:"200px"},styleToday:{height:"130px"},legendData:["今天","昨天"],seriesData:[],timer:[],grid:{xl:12,lg:12,md:12,sm:24,xs:24},statisticsData:null,optionTodatOrder:{},orderData:{},orderUserData:{},optionData:{},listLoading:!1,optionDataOrder:{},optionOrderUser:{}}},beforeDestroy:function(){this.visitChart&&(this.visitChart.dispose(),this.visitChart=null)},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(n.o)({time:"today"}).then((function(e){t.statisticsData=e.data;var a=e.data.left,n=[],r=a.x;Object.keys(a.series[0].value).forEach((function(t){n.push(Number(a.series[0].value[t]))}));var s=[];Object.keys(a.series[1].value).forEach((function(t){s.push(Number(a.series[1].value[t]))}));var o=[{name:"今天",type:"line",areaStyle:{normal:{color:new i.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#5B8FF9"},{offset:.5,color:"#fff"},{offset:1,color:"#fff"}])}},itemStyle:{normal:{color:"#5B8FF9",lineStyle:{color:"#5B8FF9"}}},data:n,symbol:"none",smooth:!0},{name:"昨天",type:"line",areaStyle:{normal:{color:new i.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#BFBFBF"},{offset:.5,color:"#fff"},{offset:1,color:"#fff"}])}},itemStyle:{normal:{color:"#D9D9D9",lineStyle:{color:"#D9D9D9"}}},data:s,symbol:"none",smooth:!0}];t.optionData={tooltip:{trigger:"axis"},legend:{x:"1px",y:"10px",data:["今天","昨天"]},grid:{left:"0%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{boundaryGap:!1,data:r,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:o};var c=e.data.right,l=c.today.x,u=[];Object.keys(c.today.series[0].value).forEach((function(t){u.push(Number(c.today.series[0].value[t]))}));var d=[{name:"今天",type:"line",areaStyle:{normal:{color:new i.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#5B8FF9"},{offset:.5,color:"#fff"},{offset:1,color:"#fff"}])}},itemStyle:{normal:{color:"#5B8FF9",lineStyle:{color:"#5B8FF9"}}},data:u,symbol:"none",smooth:!0}];t.optionTodatOrder={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"1px",y:"10px",data:["今天"]},grid:{left:"0%",right:"4%",bottom:"3%",containLabel:!0},axisLine:{show:!1},xAxis:[{type:"category",boundaryGap:!1,data:l,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:d};var m=[];Object.keys(c.today.series[1].value).forEach((function(t){m.push(Number(c.today.series[1].value[t]))}));var h=[{name:"今天",type:"line",areaStyle:{normal:{color:new i.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#5B8FF9"},{offset:.5,color:"#fff"},{offset:1,color:"#fff"}])}},itemStyle:{normal:{color:"#5B8FF9",lineStyle:{color:"#5B8FF9"}}},data:m,symbol:"none",smooth:!0}];t.optionOrderUser={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"1px",y:"10px",data:["今天"]},grid:{left:"0%",right:"4%",bottom:"3%",containLabel:!0},axisLine:{show:!1},xAxis:[{type:"category",boundaryGap:!1,data:r,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:h}})).catch((function(e){t.listLoading=!1,t.$Message.error(e.msg)}))},getOrder:function(){},getOrderUser:function(){}}},c=(a("834d"),a("2877")),l=Object(c.a)(o,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Row",[t.statisticsData?a("Col",t._b({staticClass:"br"},"Col",t.grid,!1),[a("div",[a("div",{staticClass:"title mb15"},[t._v("今日订单金额")]),a("div",{staticClass:"price"},[t._v("¥"),a("i",[t._v(t._s(t.statisticsData.left.series[0].money))])])]),t.optionData?a("echarts-new",{key:"1",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionData,styles:t.style}}):t._e()],1):t._e(),t.statisticsData?a("Col",t._b({staticStyle:{"padding-left":"20px"}},"Col",t.grid,!1),[a("div",{staticClass:"pl25"},[a("div",{staticClass:"toDay"},[a("span",{staticClass:"toDay-title spBlock mb10"},[t._v("今日订单数")]),a("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.today.series[0].now_money))]),a("br"),a("span",{staticClass:"toDay-time spBlock mr10"},[t._v("昨日:"+t._s(t.statisticsData.right.today.series[0].last_money))]),a("span",{staticClass:"toDay-time spBlock"},[t._v("日环比:\n "),a("i",{staticClass:"content-is",class:Number(t.statisticsData.right.today.series[0].rate)>=0?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.today.series[0].rate))+"%")]),a("Icon",{attrs:{color:Number(t.statisticsData.right.today.series[0].rate)>=0?"#F5222D":"#39C15B",type:Number(t.statisticsData.right.today.series[0].rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1),t.optionTodatOrder?a("echarts-new",{key:"2",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionTodatOrder,styles:t.styleToday}}):t._e(),a("span",{staticClass:"toDay-title spBlock mb10"},[t._v("本月订单数")]),a("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.month[0].now_money))]),a("br"),a("span",{staticClass:"toDay-time spBlock mr10"},[t._v("上月:"+t._s(t.statisticsData.right.month[0].last_money))]),a("span",{staticClass:"toDay-time spBlock"},[t._v("月环比:\n "),a("i",{staticClass:"content-is",class:Number(t.statisticsData.right.month[0].rate)>=0?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.month[0].rate))+"%")]),a("Icon",{attrs:{color:Number(t.statisticsData.right.month[0].rate)>=0?"#F5222D":"#39C15B",type:Number(t.statisticsData.right.month[0].rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)],1),a("div",{staticClass:"toDay",staticStyle:{border:"none"}},[a("span",{staticClass:"toDay-title spBlock mb10"},[t._v("今日支付人数")]),a("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.today.series[1].now_money))]),a("br"),a("span",{staticClass:"toDay-time spBlock mr10"},[t._v("昨日:"+t._s(t.statisticsData.right.today.series[1].last_money))]),a("span",{staticClass:"toDay-time spBlock"},[t._v("日环比:\n "),a("i",{staticClass:"content-is",class:Number(t.statisticsData.right.today.series[1].rate)>=0?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.today.series[1].rate))+"%")]),a("Icon",{attrs:{color:Number(t.statisticsData.right.today.series[1].rate)>=0?"#F5222D":"#39C15B",type:Number(t.statisticsData.right.today.series[1].rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1),t.optionOrderUser?a("echarts-new",{key:"3",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionOrderUser,styles:t.styleToday}}):t._e(),a("span",{staticClass:"toDay-title spBlock mb10"},[t._v("本月支付人数")]),a("span",{staticClass:"toDay-number spBlock mb10 ml5"},[t._v(t._s(t.statisticsData.right.month[1].now_money))]),a("br"),a("span",{staticClass:"toDay-time spBlock mr10"},[t._v("上月:"+t._s(t.statisticsData.right.month[1].last_money))]),a("span",{staticClass:"toDay-time spBlock"},[t._v("月环比:\n "),a("i",{staticClass:"content-is",class:Number(t.statisticsData.right.month[1].rate)>=0?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.month[1].rate))+"%")]),a("Icon",{attrs:{color:Number(t.statisticsData.right.month[1].rate)>=0?"#F5222D":"#39C15B",type:Number(t.statisticsData.right.month[1].rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)],1)])]):t._e()],1)],1)}),[],!1,null,"2a73a9d4",null).exports,u=a("a34a"),d=a.n(u),m=a("61f7");function h(t,e,a,n,r,s,i){try{var o=t[s](i),c=o.value}catch(t){return void a(t)}o.done?e(c):Promise.resolve(c).then(n,r)}function p(t){return function(){var e=this,a=arguments;return new Promise((function(n,r){var s=t.apply(e,a);function i(t){h(s,n,r,i,o,"next",t)}function o(t){h(s,n,r,i,o,"throw",t)}i(void 0)}))}}var f={name:"transaction",components:{echartsNew:r.a},data:function(){return{grid:{xl:8,lg:8,md:8,sm:24,xs:24},options:{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,a=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,a))),[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]}}]},name:"近30天",timeVal:[],dataTime:"",list:{},optionData:{},style:{height:"400px"},getExcel:"",spinShow:!1}},created:function(){var t=new Date,e=new Date;e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),this.timeVal=[e,t],this.dataTime=Object(m.a)(e,"yyyy/MM/dd")+"-"+Object(m.a)(t,"yyyy/MM/dd")},mounted:function(){this.getStatistics()},methods:{onSeach:function(){this.getStatistics()},onchangeTime:function(t){this.timeVal=t,this.dataTime=this.timeVal[0]?this.timeVal.join("-"):"",this.name=this.dataTime},getStatistics:function(){var t=this;this.spinShow=!0,Object(n.l)({data:this.dataTime}).then(function(){var e=p(d.a.mark((function e(a){var n,r,s;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=a.data,r=["iconyingyee","iconjiaoyijine","iconshangpinzhifujine","icongoumaihuiyuanjine","iconchongzhijianshu","iconxianxiashouyinjine","iconzhichujine","iconyuezhifujine","iconzhifuyongjinjine","iconshangpintuikuanjine"],s=0;s<n.series.length;s++)t.$set(n.series[s],"icon",r[s]);t.list=n.series,t.getExcel=n.export,t.get(n),t.spinShow=!1;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg),t.spinShow=!1}))},get:function(t){var e=t.series.filter((function(t){return 1===t.type})),a=e.map((function(t){return t.name})),n=["#5B8FF9","#5AD8A6","#5D7092","#F5222D","#FFAB2B","#B37FEB"],r=[];e.map((function(t,e){var a=[];Object.keys(t.value).forEach((function(e){a.push(Number(t.value[e]))})),r.push({name:t.name,type:"line",data:a,itemStyle:{normal:{color:n[e]}},smooth:!0})})),this.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:{show:!0,right:"2%",feature:{saveAsImage:{name:"交易统计_"+Object(m.a)(new Date(Number((new Date).getTime())),"yyyyMMddhhmmss")}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:t.x},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:r}},excel:function(){window.location.href=this.getExcel},getTrend:function(){var t=this;Object(n.p)({data:this.dataTime}).then(function(){var e=p(d.a.mark((function e(a){var n,r,s,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data.series.map((function(t){return t.name})),r=a.data.xAxis,s=["#5B8FF9","#5AD8A6","#5D7092","#5D7092"],i=[],a.data.series.map((function(t,e){i.push({name:t.name,type:"line",data:t.value,itemStyle:{normal:{color:s[e]}}})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"1px",y:"10px",data:n},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{show:!0,right:"2%",feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:r},yAxis:{type:"value",splitLine:{show:!1},axisLine:{show:!1}},series:i};case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}}},g=(a("b19d"),{name:"index",components:{toDay:l,transactionFrom:Object(c.a)(f,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("div",{staticClass:"acea-row row-between-wrapper mb20"},[a("div",{staticClass:"header-title"},[t._v("交易概况")]),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"acea-row row-middle"},[a("span",{staticClass:"font-sm"},[t._v("时间筛选:")]),a("DatePicker",{staticClass:"mr20 input-add",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}}),a("Button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:t.onSeach}},[t._v("查询")]),a("Button",{attrs:{type:"primary"},on:{click:t.excel}},[t._v("导出")])],1)])]),a("div",{staticClass:"acea-row mb20"},t._l(t.list,(function(e,n){return a("div",{key:n,staticClass:"infoBox acea-row mb30"},[a("div",{staticClass:"iconCrl mr15",class:{one:n%4==0,two:n%4==1,three:n%4==2,four:n%4==3}},[a("i",{staticClass:"iconfont",class:e.icon})]),a("div",{staticClass:"info"},[a("div",{staticClass:"sp1"},[a("span",{staticClass:"mr5",domProps:{textContent:t._s(e.name)}}),a("Poptip",{attrs:{"word-wrap":"",trigger:"hover",placement:"right-start"}},[a("Icon",{attrs:{type:"ios-information-circle-outline"}}),a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(e.desc))])],1)],1),(t.list.length,a("span",{staticClass:"sp2",domProps:{textContent:t._s(e.money?(parseInt(100*e.money)/100).toFixed(2):0)}})),a("span",{staticClass:"content-time spBlock"},[t._v("环比增长:"),a("i",{staticClass:"content-is",class:Number(e.rate)>=0?"up":"down"},[t._v(t._s(e.rate)+"%")]),a("Icon",{attrs:{color:Number(e.rate)>=0?"#F5222D":"#39C15B",type:Number(e.rate)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)])])})),0),t.optionData?a("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e(),t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e()],1)}),[],!1,null,"4024bb8b",null).exports}}),y=Object(c.a)(g,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("to-day"),e("transaction-from")],1)}),[],!1,null,"f9b901b6",null);e.default=y.exports},"61f7":function(t,e,a){"use strict";function n(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function r(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?n(a,!0).forEach((function(e){s(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):n(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function s(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var n in a)if(new RegExp("(".concat(n,")")).test(e)){var r=a[n]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?r:o(r))}return e}function o(t){return("00"+t).substr(t.length)}a.d(e,"a",(function(){return i})),a.d(e,"c",(function(){return u})),a.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 r({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function d(t){return m.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 m=Object.keys(c).reduce((function(t,e){return t[e]=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="range"===e?{min:t[0],max:t[1]}:s({},e,t);return r({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},i,{},n)},l(t[e],c[e]),t}),{})},"834d":function(t,e,a){"use strict";var n=a("a33b");a.n(n).a},a33b:function(t,e,a){},b19d:function(t,e,a){"use strict";var n=a("1c90");a.n(n).a},c71e:function(t,e,a){"use strict";var n=a("313e"),r=a.n(n),s={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=r.a.init(document.getElementById(this.echarts)),t=this.optionData,this.myChart.setOption(t,!0)}}},i=a("2877"),o=Object(i.a)(s,(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}}]);