mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-06 04:18:11 +00:00
1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-250f7f7e"],{"0c9f":function(t,e,a){"use strict";a.d(e,"j",(function(){return s})),a.d(e,"o",(function(){return i})),a.d(e,"m",(function(){return n})),a.d(e,"l",(function(){return o})),a.d(e,"p",(function(){return c})),a.d(e,"r",(function(){return l})),a.d(e,"s",(function(){return u})),a.d(e,"v",(function(){return d})),a.d(e,"t",(function(){return h})),a.d(e,"u",(function(){return p})),a.d(e,"q",(function(){return f})),a.d(e,"n",(function(){return m})),a.d(e,"k",(function(){return g})),a.d(e,"e",(function(){return y})),a.d(e,"h",(function(){return b})),a.d(e,"f",(function(){return v})),a.d(e,"i",(function(){return _})),a.d(e,"g",(function(){return x})),a.d(e,"a",(function(){return w})),a.d(e,"c",(function(){return D})),a.d(e,"b",(function(){return C})),a.d(e,"d",(function(){return O})),a.d(e,"w",(function(){return j}));var r=a("6b6c");function s(t){return Object(r.a)({url:"/statistic/product/get_basic",method:"get",params:t})}function i(t){return Object(r.a)({url:"/statistic/product/get_trend",method:"get",params:t})}function n(t){return Object(r.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function o(t){return Object(r.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function c(t){return Object(r.a)({url:"/statistic/user/get_basic",method:"get",params:t})}function l(t){return Object(r.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function u(t){return Object(r.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function d(t){return Object(r.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function h(t){return Object(r.a)({url:"/statistic/user/get_region",method:"get",params:t})}function p(t){return Object(r.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function f(t){return Object(r.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function m(t){return Object(r.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function g(t){return Object(r.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function y(t){return Object(r.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function b(t){return Object(r.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function v(t){return Object(r.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function _(t){return Object(r.a)({url:"/statistic/order/get_type",method:"get",params:t})}function x(t){return Object(r.a)({url:"/statistic/flow/get_record",method:"get",params:t})}function w(t){return Object(r.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function D(t){return Object(r.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function C(t){return Object(r.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function O(t){return Object(r.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function j(t,e){return Object(r.a)({url:"app/wechat_qrcode/statistic/".concat(t),method:"get",params:e})}},2002:function(t,e,a){"use strict";var r=a("cc7e");a.n(r).a},"2c3e":function(t,e,a){var r=a("da84"),s=a("83ab"),i=a("9f7f").MISSED_STICKY,n=a("c6b6"),o=a("edd0"),c=a("69f3").get,l=RegExp.prototype,u=r.TypeError;s&&i&&o(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===n(this))return!!c(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},4192:function(t,e,a){"use strict";a.r(e),a("d3b7"),a("159b"),a("b64b"),a("a9e3");var r=a("0c9f"),s=a("c71e"),i=a("313e"),n=a.n(i),o=(i={name:"ToDay",components:{echartsNew:s.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:{},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(r.n)({time:"today"}).then((function(e){t.statisticsData=e.data;var a=e.data.left,r=[],s=a.x,i=(Object.keys(a.series[0].value).forEach((function(t){r.push(Number(a.series[0].value[t]))})),[]),o=(Object.keys(a.series[1].value).forEach((function(t){i.push(Number(a.series[1].value[t]))})),[{name:"今天",type:"line",areaStyle:{normal:{color:new n.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:r,symbol:"none",smooth:!0},{name:"昨天",type:"line",areaStyle:{normal:{color:new n.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:i,symbol:"none",smooth:!0}]),c=(t.optionData={tooltip:{trigger:"axis"},legend:{x:"1px",y:"10px",data:["今天","昨天"]},grid:{left:"0%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{boundaryGap:!1,data:s,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:o},e.data.right),l=(o=c.today.x,[]),u=(e=(Object.keys(c.today.series[0].value).forEach((function(t){l.push(Number(c.today.series[0].value[t]))})),[{name:"今天",type:"line",areaStyle:{normal:{color:new n.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:l,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:o,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:e},[]);Object.keys(c.today.series[1].value).forEach((function(t){u.push(Number(c.today.series[1].value[t]))})),o=[{name:"今天",type:"line",areaStyle:{normal:{color:new n.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.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:s,axisLine:{show:!1},show:!1}],yAxis:{show:!1},series:o}})).catch((function(e){t.listLoading=!1,t.$Message.error(e.msg)}))},getOrder:function(){},getOrderUser:function(){}}},a("2002"),a("2877")),c=(i=Object(o.a)(i,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",[t.statisticsData?e("Col",t._b({staticClass:"br"},"Col",t.grid,!1),[e("div",[e("div",{staticClass:"title mb15"},[t._v("今日订单金额")]),e("div",{staticClass:"price"},[t._v("\n ¥"),e("i",[t._v(t._s(t.statisticsData.left.series[0].money))])])]),t.optionData?e("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?e("Col",t._b({},"Col",t.grid,!1),[e("div",{staticClass:"pl25"},[e("div",{staticClass:"toDay"},[e("span",{staticClass:"toDay-title spBlock mb10"},[t._v("今日订单数")]),e("span",{staticClass:"toDay-number spBlock mb10"},[t._v(t._s(t.statisticsData.right.today.series[0].now_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("昨日:"+t._s(t.statisticsData.right.today.series[0].last_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("日环比:\n "),e("i",{staticClass:"content-is",class:0<=Number(t.statisticsData.right.today.series[0].rate)?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.today.series[0].rate))+"%")]),e("Icon",{attrs:{color:0<=Number(t.statisticsData.right.today.series[0].rate)?"#F5222D":"#39C15B",type:0<=Number(t.statisticsData.right.today.series[0].rate)?"md-arrow-dropup":"md-arrow-dropdown"}})],1),t.optionTodatOrder?e("echarts-new",{key:"2",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionTodatOrder,styles:t.styleToday}}):t._e(),e("span",{staticClass:"toDay-title spBlock mb10"},[t._v("本月订单数")]),e("span",{staticClass:"toDay-number spBlock mb10"},[t._v(t._s(t.statisticsData.right.month[0].now_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("上月:"+t._s(t.statisticsData.right.month[0].last_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("月环比:\n "),e("i",{staticClass:"content-is",class:0<=Number(t.statisticsData.right.month[0].rate)?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.month[0].rate))+"%")]),e("Icon",{attrs:{color:0<=Number(t.statisticsData.right.month[0].rate)?"#F5222D":"#39C15B",type:0<=Number(t.statisticsData.right.month[0].rate)?"md-arrow-dropup":"md-arrow-dropdown"}})],1)],1),e("div",{staticClass:"toDay",staticStyle:{border:"none"}},[e("span",{staticClass:"toDay-title spBlock mb10"},[t._v("今日支付人数")]),e("span",{staticClass:"toDay-number spBlock mb10"},[t._v(t._s(t.statisticsData.right.today.series[1].now_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("昨日:"+t._s(t.statisticsData.right.today.series[1].last_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("日环比:\n "),e("i",{staticClass:"content-is",class:0<=Number(t.statisticsData.right.today.series[1].rate)?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.today.series[1].rate))+"%")]),e("Icon",{attrs:{color:0<=Number(t.statisticsData.right.today.series[1].rate)?"#F5222D":"#39C15B",type:0<=Number(t.statisticsData.right.today.series[1].rate)?"md-arrow-dropup":"md-arrow-dropdown"}})],1),t.optionOrderUser?e("echarts-new",{key:"3",ref:"visitChart",attrs:{height:"100%",width:"100%","option-data":t.optionOrderUser,styles:t.styleToday}}):t._e(),e("span",{staticClass:"toDay-title spBlock mb10"},[t._v("本月支付人数")]),e("span",{staticClass:"toDay-number spBlock mb10"},[t._v(t._s(t.statisticsData.right.month[1].now_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("上月:"+t._s(t.statisticsData.right.month[1].last_money))]),e("span",{staticClass:"toDay-time spBlock"},[t._v("月环比:\n "),e("i",{staticClass:"content-is",class:0<=Number(t.statisticsData.right.month[1].rate)?"up":"down"},[t._v(t._s(Math.floor(t.statisticsData.right.month[1].rate))+"%")]),e("Icon",{attrs:{color:0<=Number(t.statisticsData.right.month[1].rate)?"#F5222D":"#39C15B",type:0<=Number(t.statisticsData.right.month[1].rate)?"md-arrow-dropup":"md-arrow-dropdown"}})],1)],1)])]):t._e()],1)],1)}),[],!1,null,"7048d0c0",null).exports,a("c964")),l=(a("96cf"),a("a15b"),a("b0c0"),a("4de4"),a("d81d"),a("61f7"));s={name:"transaction",components:{echartsNew:s.a},data:function(){return{grid:{xl:8,lg:8,md:8,sm:24,xs:24},options:this.$timeOptions,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(l.a)(e,"yyyy/MM/dd")+"-"+Object(l.a)(t,"yyyy/MM/dd")},mounted:function(){this.getStatistics()},methods:{onSeach:function(){this.getStatistics()},onchangeTime:function(t){this.timeVal=t,this.dataTime=this.timeVal.join("-"),this.name=this.dataTime},getStatistics:function(){var t=this;this.spinShow=!0,Object(r.k)({data:this.dataTime}).then(function(){var e=Object(c.a)(regeneratorRuntime.mark((function e(a){var r,s,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=a.data,s=["iconyingyee","iconjiaoyijine","iconshangpinzhifujine","icongoumaihuiyuanjine","iconchongzhijianshu","iconxianxiashouyinjine","iconzhichujine","iconyuezhifujine","iconzhifuyongjinjine","iconshangpintuikuanjine"],i=0;i<r.series.length;i++)t.$set(r.series[i],"icon",s[i]);t.list=r.series,t.getExcel=r.export,t.get(r),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})),r=["#5B8FF9","#5AD8A6","#5D7092","#F5222D","#FFAB2B","#B37FEB"],s=[];e.map((function(t,e){var a=[];Object.keys(t.value).forEach((function(e){a.push(Number(t.value[e]))})),s.push({name:t.name,type:"line",data:a,itemStyle:{normal:{color:r[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:{feature:{saveAsImage:{}}},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:s}},excel:function(){window.location.href=this.getExcel},getTrend:function(){var t=this;Object(r.o)({data:this.dataTime}).then(function(){var e=Object(c.a)(regeneratorRuntime.mark((function e(a){var r,s,i,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data.series.map((function(t){return t.name})),s=a.data.xAxis,i=["#5B8FF9","#5AD8A6","#5D7092","#5D7092"],n=[],a.data.series.map((function(t,e){n.push({name:t.name,type:"line",data:t.value,itemStyle:{normal:{color:i[e]}}})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"1px",y:"10px",data:r},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:s},yAxis:{type:"value",splitLine:{show:!1},axisLine:{show:!1}},series:n};case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}}},a("ee39"),a={name:"index",components:{toDay:i,transactionFrom:Object(o.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Card",{staticClass:"ivu-mt-16",attrs:{bordered:!1,"dis-hover":""}},[a("div",{staticClass:"acea-row row-between-wrapper mb20"},[a("div",{staticClass:"header-title"},[t._v("\n 交易概况\n "),a("Poptip",{attrs:{"word-wrap":"",width:"500",trigger:"hover",placement:"right-start"}},[a("Icon",{attrs:{type:"ios-information-circle-outline"}}),a("div",{attrs:{slot:"content"},slot:"content"},[a("div",[t._v("营业额")]),a("div",[t._v("商品支付金额、充值金额、购买付费会员金额、线下收银金额")]),a("br"),a("div",[t._v("交易毛利金额")]),a("div",[t._v("交易毛利金额 = 营业额 - 支出金额")]),a("br"),a("div",[t._v("商品支付金额")]),a("div",[t._v("\n 选定条件下,用户购买商品的实际支付金额,包括微信支付、余额支付、支付宝支付、线下支付金额\n (拼团商品在成团之后计入,线下支付订单在后台确认支付后计入)\n ")]),a("br"),a("div",[t._v("购买会员金额")]),a("div",[t._v("选定条件下,用户成功购买付费会员的金额")]),a("br"),a("div",[t._v("充值金额")]),a("div",[t._v("选定条件下,用户成功充值的金额")]),a("br"),a("div",[t._v("线下收银金额")]),a("div",[t._v("选定条件下,用户在线下扫码支付的金额")]),a("br"),a("div",[t._v("支出金额")]),a("div",[t._v("余额支付金额、支付佣金金额、商品退款金额")]),a("br"),a("div",[t._v("余额支付金额")]),a("div",[t._v("用户下单时使用余额实际支付的金额")]),a("br"),a("div",[t._v("佣金支付金额")]),a("div",[t._v("后台给推广员支付的推广佣金,以实际支付为准")]),a("br"),a("div",[t._v("商品退款金额")]),a("div",[t._v("用户成功退款的商品金额")])])],1)],1),a("div",{staticClass:"acea-row"},[a("DatePicker",{staticClass:"mr20",staticStyle:{width:"200px"},attrs:{editable:!1,clearable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",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,r){return a("div",{key:r,staticClass:"infoBox acea-row mb30"},[a("div",{staticClass:"iconCrl mr15",class:{one:r%4==0,two:r%4==1,three:r%4==2,four:r%4==3}},[a("i",{staticClass:"iconfont",class:e.icon})]),a("div",{staticClass:"info"},[a("span",{staticClass:"sp1",domProps:{textContent:t._s(e.name)}}),(t.list.length,a("span",{staticClass:"sp2",domProps:{textContent:t._s(e.money?(parseInt(100*e.money)/100).toFixed(2):"0.00")}})),a("span",{staticClass:"content-time spBlock"},[t._v("环比增长:"),a("i",{staticClass:"content-is",class:0<=Number(e.rate)?"up":"down"},[t._v(t._s(e.rate)+"%")]),a("Icon",{attrs:{color:0<=Number(e.rate)?"#F5222D":"#39C15B",type:0<=Number(e.rate)?"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,"f0a65dc6",null).exports}},i=Object(o.a)(a,(function(){var t=this.$createElement;t=this._self._c||t;return t("div",[t("to-day"),t("transaction-from")],1)}),[],!1,null,"6de55f0a",null);e.default=i.exports},"4d63":function(t,e,a){var r=a("83ab"),s=a("da84"),i=a("e330"),n=a("94ca"),o=a("7156"),c=a("9112"),l=a("241c").f,u=a("3a9b"),d=a("44e7"),h=a("577e"),p=a("90d8"),f=a("9f7f"),m=a("aeb0"),g=a("cb2d"),y=a("d039"),b=a("1a2d"),v=a("69f3").enforce,_=a("2626"),x=a("b622"),w=a("fce3"),D=a("107c"),C=x("match"),O=s.RegExp,j=O.prototype,k=s.SyntaxError,B=i(j.exec),F=i("".charAt),S=i("".replace),E=i("".indexOf),L=i("".slice),T=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,A=/a/g,N=/a/g,M=(a=new O(A)!==A,f.MISSED_STICKY),R=f.UNSUPPORTED_Y;x=r&&(!a||M||w||D||y((function(){return N[C]=!1,O(A)!=A||O(N)==N||"/a/i"!=O(A,"i")})));if(n("RegExp",x)){function I(t,e){var a,r,s=u(j,this),i=d(t),n=void 0===e,l=[],f=t;if(!s&&i&&n&&t.constructor===I)return t;if((i||u(j,t))&&(t=t.source,n&&(e=p(f))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),f=t,i=e=w&&"dotAll"in A&&(a=!!e&&-1<E(e,"s"))?S(e,/s/g,""):e,M&&"sticky"in A&&(r=!!e&&-1<E(e,"y"))&&R&&(e=S(e,/y/g,"")),D&&(t=(n=function(t){for(var e,a=t.length,r=0,s="",i=[],n={},o=!1,c=!1,l=0,u="";r<=a;r++){if("\\"===(e=F(t,r)))e+=F(t,++r);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:B(T,L(t,r+1))&&(r+=2,c=!0),s+=e,l++;continue;case">"===e&&c:if(""===u||b(n,u))throw new k("Invalid capture group name");n[u]=!0,c=!(i[i.length]=[u,l]),u="";continue}c?u+=e:s+=e}return[s,i]}(t))[0],l=n[1]),n=o(O(t,e),s?this:j,I),(a||r||l.length)&&(e=v(n),a&&(e.dotAll=!0,e.raw=I(function(t){for(var e,a=t.length,r=0,s="",i=!1;r<=a;r++)"\\"===(e=F(t,r))?s+=e+F(t,++r):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),s+=e):s+="[\\s\\S]";return s}(t),i)),r&&(e.sticky=!0),l.length&&(e.groups=l)),t!==f)try{c(n,"source",""===f?"(?:)":f)}catch(t){}return n}for(var $=l(O),P=0;$.length>P;)m(I,O,$[P++]);(j.constructor=I).prototype=j,g(s,"RegExp",I,{constructor:!0})}_("RegExp")},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"c",(function(){return c})),a.d(e,"b",(function(){return l}));var r=a("fc11"),s=a("f3f3");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a,r,s={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(a in s)new RegExp("(".concat(a,")")).test(e)&&(r=s[a]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?r:("00"+r).substr(r.length)));return e}a("ac1f"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("498a"),a("d3b7"),a("b64b"),a("99af");var n={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function o(t,e){t.message=function(t){return e.replace("%s",t||"")}}function c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(s.a)({required:!0,message:t,type:"string"},e)}function l(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}o(c,"请输入%s"),o(l,"%s格式不正确");var u=Object.keys(n).reduce((function(t,e){return t[e]=function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n="range"===e?{min:t[0],max:t[1]}:Object(r.a)({},e,t);return Object(s.a)(Object(s.a)({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},n),i)},o(t[e],n[e]),t}),{})},c607:function(t,e,a){var r=a("da84"),s=a("83ab"),i=a("fce3"),n=a("c6b6"),o=a("edd0"),c=a("69f3").get,l=RegExp.prototype,u=r.TypeError;s&&i&&o(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===n(this))return!!c(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},c71e:function(t,e,a){"use strict";var r=a("313e"),s=a.n(r);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(){this.myChart=s.a.init(document.getElementById(this.echarts));var t=this.optionData;this.myChart.setOption(t,!0)}}},a=a("2877"),a=Object(a.a)(r,(function(){var t=this.$createElement;t=this._self._c||t;return t("div",[t("div",{style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"4a0d7a27",null);e.a=a.exports},cc7e:function(t,e,a){},edd0:function(t,e,a){var r=a("13d2"),s=a("9bf2");t.exports=function(t,e,a){return a.get&&r(a.get,e,{getter:!0}),a.set&&r(a.set,e,{setter:!0}),s.f(t,e,a)}},ee39:function(t,e,a){"use strict";var r=a("fb13");a.n(r).a},fb13:function(t,e,a){}}]); |