| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2e6d7c7a"],{"0c9f":function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"o",(function(){return i})),n.d(e,"m",(function(){return o})),n.d(e,"l",(function(){return s})),n.d(e,"p",(function(){return c})),n.d(e,"r",(function(){return u})),n.d(e,"s",(function(){return l})),n.d(e,"v",(function(){return h})),n.d(e,"t",(function(){return d})),n.d(e,"u",(function(){return f})),n.d(e,"q",(function(){return p})),n.d(e,"n",(function(){return m})),n.d(e,"k",(function(){return g})),n.d(e,"e",(function(){return v})),n.d(e,"h",(function(){return y})),n.d(e,"f",(function(){return b})),n.d(e,"i",(function(){return w})),n.d(e,"g",(function(){return x})),n.d(e,"a",(function(){return _})),n.d(e,"c",(function(){return L})),n.d(e,"b",(function(){return C})),n.d(e,"d",(function(){return O})),n.d(e,"w",(function(){return j}));var r=n("6b6c");function a(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 o(t){return Object(r.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function s(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 u(t){return Object(r.a)({url:"/statistic/user/get_trend",method:"get",params:t})}function l(t){return Object(r.a)({url:"/statistic/user/get_wechat",method:"get",params:t})}function h(t){return Object(r.a)({url:"/statistic/user/get_wechat_trend",method:"get",params:t})}function d(t){return Object(r.a)({url:"/statistic/user/get_region",method:"get",params:t})}function f(t){return Object(r.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function p(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 v(t){return Object(r.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function y(t){return Object(r.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function b(t){return Object(r.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function w(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 _(t){return Object(r.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function L(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})}},"0ddf":function(t,e,n){"use strict";n.r(e);var r=n("0122"),a=n("c964"),i=(n("d81d"),n("a15b"),n("b0c0"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("159b"),n("131a"),n("fb6a"),n("a584")),o=n("c71e"),s=n("0c9f"),c=n("61f7"),u=n("9901"),l=n("fd73");function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(e){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i,o,s,c;e=e&&e.prototype instanceof p?e:p,e=Object.create(e.prototype),r=new L(r||[]);return a(e,"_invoke",{value:(i=t,o=n,s=r,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return O()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n&&(n=function t(e,n){var r=n.method,a=e.iterator[r];return void 0===a?(n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f):(r=d(a,e.iterator,n.arg),"throw"===r.type?(n.method="throw",n.arg=r.arg,n.delegate=null,f):(a=r.arg,a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,f):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)))}(n,s),n)){if(n===f)continue;return n}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",n=d(i,o,s),"normal"===n.type){if(c=s.done?"completed":"suspendedYield",n.arg===f)continue;return{value:n.arg,done:s.done}}"throw"===n.type&&(c="completed",s.method="throw",s.arg=n.arg)}})}),e}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f={};function p(){}function m(){}function g(){}i={};var v=(u(i,o,(function(){return this})),Object.getPrototypeOf),y=(v=v&&v(v(C([]))),v&&v!==e&&n.call(v,o)&&(i=v),g.prototype=p.prototype=Object.create(i));function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var i;a(this,"_invoke",{value:function(a,o){function s(){return new e((function(i,s){!function a(i,o,s,c){var u;i=d(t[i],t,o);if("throw"!==i.type)return(o=(u=i.arg).value)&&"object"==Object(r.a)(o)&&n.call(o,"__await")?e.resolve(o.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):e.resolve(o).then((function(t){u.value=t,s(u)}),(function(t){return a("throw",t,s,c)}));c(i.arg)}(a,o,i,s)}))}return i=i?i.then(s,s):s()}})}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(t){if(t){var e,r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(r=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r}).next=r}return{next:O}}function O(){return{value:void 0,done:!0}}return a(y,"constructor",{value:m.prototype=g,configurable:!0}),a(g,"constructor",{value:m,configurable:!0}),m.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,a,i){void 0===i&&(i=Promise);var o=new w(l(e,n,r,a),i);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},b(y),u(y,c,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,n=Object(t),r=[];for(e in n)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=C,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var a=this.tryEntries.length-1;0<=a;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,a=this.tryEntries[e];if(a.tryLoc===t)return"throw"===(n=a.completion).type&&(r=n.arg,_(a)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}i={name:"index",components:{cardsData:i.a,echartsNew:o.a,echartsFrom:u.a,dateRadio: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:6,count:0,name:"当前余额",className:"md-rose"},{col:6,count:0,name:"累计余额",className:"ios-speedometer-outline"},{col:6,count:0,name:"累计消耗余额",className:"ios-speedometer-outline"}],optionData:{},spinShow:!1,options:this.$timeOptions,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"}],tabList:[],tabList2:[]}},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.formValidate.time=Object(c.a)(e,"yyyy/MM/dd")+"-"+Object(c.a)(t,"yyyy/MM/dd"),this.onInit()},methods:{onInit:function(){this.getBalanceBasic(),this.getBalanceTrend(),this.getBalanceChannel(),this.getBalanceType()},onSelectDate:function(t){this.formValidate.time=t,this.onInit()},getBalanceBasic:function(){var t=this;Object(s.a)(this.formValidate).then((function(e){var n=["now_balance","add_balance","sub_balance"];t.cardLists.map((function(t,r){t.count=e.data[n[r]]}))}))},getBalanceChannel:function(){var t=this;this.loading=!0,Object(s.b)(this.formValidate).then((function(e){t.infoList=e.data,t.tabList=e.data.list,t.loading=!1}))},getBalanceType:function(){var t=this;this.loading2=!0,Object(s.d)(this.formValidate).then((function(e){t.infoList2=e.data,t.tabList2=e.data.list,t.loading2=!1}))},onchangeTime:function(t){this.timeVal=t,this.formValidate.time=this.timeVal.join("-"),this.name=this.formValidate.time,this.getBalanceBasic(),this.getBalanceTrend()},getBalanceTrend:function(){var t=this;this.spinShow=!0,Object(s.c)(this.formValidate).then(function(){var e=Object(a.a)(h().mark((function e(n){var r,a,i,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data.series.map((function(t){return t.name})),a=n.data.xAxis,i=["#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:i[e]}},smooth:0})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",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:a},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)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg),t.spinShow=!1}))}}},n("55bb"),o=n("2877"),u=Object(o.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,"dis-hover":""}},[n("dateRadio",{on:{selectDate:t.onSelectDate}}),n("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}})],1),0<=t.cardLists.length?n("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),n("Card",{staticClass:"ivu-mb-16",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("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.columns,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"percent",fn:function(e){return e=e.row,[n("div",{staticClass:"percent-box"},[n("div",{staticClass:"line"},[n("div",{staticClass:"bg"}),n("div",{staticClass:"percent",style:"width:"+e.percent+"%;"})]),n("div",{staticClass:"num"},[t._v(t._s(e.percent)+"%")])])]}}])})],1)]),n("Card",{staticClass:"ivu-mt ml10",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("div",{staticClass:"ech-box"},[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){return e=e.row,[n("div",{staticClass:"percent-box"},[n("div",{staticClass:"line"},[n("div",{staticClass:"bg"}),n("div",{staticClass:"percent",style:"width:"+e.percent+"%;"})]),n("div",{staticClass:"num"},[t._v(t._s(e.percent)+"%")])])]}}])})],1)])],1)],1)}),[],!1,null,"f3a45e6c",null),e.default=u.exports},"55bb":function(t,e,n){"use strict";var r=n("baf8");n.n(r).a},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n("fc11"),a=n("f3f3");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n,r,a={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(n in a)new RegExp("(".concat(n,")")).test(e)&&(r=a[n]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?r:("00"+r).substr(r.length)));return e}n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),n("498a"),n("d3b7"),n("b64b"),n("99af");var o={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function s(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(a.a)({required:!0,message:t,type:"string"},e)}function u(t){return l.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(c,"请输入%s"),s(u,"%s格式不正确");var l=Object.keys(o).reduce((function(t,e){return t[e]=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(r.a)({},e,t);return Object(a.a)(Object(a.a)({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),i)},s(t[e],o[e]),t}),{})},7443:function(t,e,n){"use strict";var r=n("b627");n.n(r).a},9901:function(t,e,n){"use strict";var r=n("313e"),a=n.n(r);r={name:"index",props:{infoList:{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(){this.myChart=a.a.init(document.getElementById(this.echarts));var t=null;t="circle"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"right",data:this.infoLists.bing_xdata||[]},series:[{name:"访问来源",type:"pie",radius:"70%",center:["50%","60%"],data:this.infoLists.bing_data||[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}:{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};this.myChart.setOption(t,!0)},handleResize:function(){this.myChart.resize()}},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)}},n=n("2877"),n=Object(n.a)(r,(function(){var t=this.$createElement;t=this._self._c||t;return t("div",[t("div",{staticStyle:{height:"300px"},attrs:{id:this.echarts}})])}),[],!1,null,"00217dc6",null);e.a=n.exports},a584:function(t,e,n){"use strict";var r={name:"cards",data:function(){return{}},props:{cardLists:Array},methods:{},created:function(){}};n("7443"),n=n("2877"),n=Object(n.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:10}},t._l(t.cardLists,(function(e,r){return n("Col",{key:r,staticClass:"ivu-mb",attrs:{xl:e.col,lg:6,md:12,sm:24,xs:24}},[n("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[n("div",{staticClass:"card_box"},[n("div",{staticClass:"card_box_cir",class:{one:r%5==0,two:r%5==1,three:r%5==2,four:r%5==3,five:r%5==4}},[n("div",{staticClass:"card_box_cir1",class:{one1:r%5==0,two1:r%5==1,three1:r%5==2,four1:r%5==3,five1:r%5==4}},[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,"e3e38522",null);e.a=n.exports},b627:function(t,e,n){},baf8:function(t,e,n){},c71e:function(t,e,n){"use strict";var r=n("313e"),a=n.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=a.a.init(document.getElementById(this.echarts));var t=this.optionData;this.myChart.setOption(t,!0)}}},n=n("2877"),n=Object(n.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=n.exports},fd73:function(t,e,n){"use strict";n("a15b");var r=n("61f7"),a={filters:{formatDate:function(t){if(0!==t)return t=new Date(t),Object(r.a)(t,"yyyy/MM/dd")}},data:function(){return{timeVal:[],options:this.$timeOptions,selectIndexTime:""}},methods:{onSelectTime:function(t){var e=[this.$options.filters.formatDate(this.dateToMs(this.$timeOptions.shortcuts[this.selectIndexTime].value()[0])),this.$options.filters.formatDate(this.dateToMs(this.$timeOptions.shortcuts[this.selectIndexTime].value()[1]))];this.$emit("selectDate",e.join("-"))},dateToMs:function(t){return new Date(t).getTime()}}};n=n("2877"),n=Object(n.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("RadioGroup",{attrs:{type:"button"},on:{"on-change":t.onSelectTime},model:{value:t.selectIndexTime,callback:function(e){t.selectIndexTime=e},expression:"selectIndexTime"}},t._l(t.options.shortcuts,(function(e,r){return n("Radio",{key:r,attrs:{label:r}},[t._v(t._s(e.text))])})),1)}),[],!1,null,null,null);e.a=n.exports}}]);
|