You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
11 KiB
1 lines
11 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-382c2a7c"],{"0c9f":function(t,e,a){"use strict";a.d(e,"k",(function(){return i})),a.d(e,"p",(function(){return s})),a.d(e,"n",(function(){return r})),a.d(e,"m",(function(){return c})),a.d(e,"q",(function(){return o})),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 h})),a.d(e,"v",(function(){return m})),a.d(e,"r",(function(){return f})),a.d(e,"o",(function(){return p})),a.d(e,"l",(function(){return b})),a.d(e,"e",(function(){return g})),a.d(e,"h",(function(){return v})),a.d(e,"f",(function(){return w})),a.d(e,"i",(function(){return _})),a.d(e,"g",(function(){return y})),a.d(e,"a",(function(){return x})),a.d(e,"c",(function(){return O})),a.d(e,"b",(function(){return j})),a.d(e,"d",(function(){return C})),a.d(e,"x",(function(){return L})),a.d(e,"j",(function(){return T}));var n=a("6b6c");function i(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 r(t){return Object(n.a)({url:"/statistic/product/get_product_ranking",method:"get",params:t})}function c(t){return Object(n.a)({url:"/statistic/product/get_excel",method:"get",params:t})}function o(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 h(t){return Object(n.a)({url:"/statistic/user/get_region",method:"get",params:t})}function m(t){return Object(n.a)({url:"/statistic/user/get_sex",method:"get",params:t})}function f(t){return Object(n.a)({url:"/statistic/user/get_excel",method:"get",params:t})}function p(t){return Object(n.a)({url:"/statistic/trade/top_trade",method:"get",params:t})}function b(t){return Object(n.a)({url:"/statistic/trade/bottom_trade",method:"get",params:t})}function g(t){return Object(n.a)({url:"/statistic/order/get_basic",method:"get",params:t})}function v(t){return Object(n.a)({url:"/statistic/order/get_trend",method:"get",params:t})}function w(t){return Object(n.a)({url:"/statistic/order/get_channel",method:"get",params:t})}function _(t){return Object(n.a)({url:"/statistic/order/get_type",method:"get",params:t})}function y(t){return Object(n.a)({url:"/statistic/flow/get_record",method:"get",params:t})}function x(t){return Object(n.a)({url:"/statistic/balance/get_basic",method:"get",params:t})}function O(t){return Object(n.a)({url:"/statistic/balance/get_trend",method:"get",params:t})}function j(t){return Object(n.a)({url:"/statistic/balance/get_channel",method:"get",params:t})}function C(t){return Object(n.a)({url:"/statistic/balance/get_type",method:"get",params:t})}function L(t,e){return Object(n.a)({url:"app/wechat_qrcode/statistic/".concat(t),method:"get",params:e})}function T(t){return Object(n.a)({url:"/statistic/schoolStatistic",method:"get",data:t})}},"0ddf":function(t,e,a){"use strict";a.r(e),a("b0c0");var n=a("c7eb"),i=a("1da1"),s=(a("d81d"),a("a15b"),a("14d9"),a("a584")),r=a("c71e"),c=a("0c9f"),o=a("61f7"),l=a("9901"),u=a("fd73");s={name:"index",components:{cardsData:s.a,echartsNew:r.a,echartsFrom:l.a,dateRadio:u.a},data:function(){return{timeVal:[],style:{height:"400px"},infoList:{},infoList2:{},echartLeft:!0,echartRight:!1,loading:!1,loading2:!1,pickerOptions:this.$timeOptions,formValidate:{time:""},cardLists:[{col:8,count:0,name:"当前余额",className:"iconyuexiaohaojine"},{col:8,count:0,name:"累计余额",className:"iconyuechongzhi"},{col:8,count:0,name:"累计消耗余额",className:"iconyuexiaohaojine"}],optionData:{},spinShow:!1,options:this.$timeOptions,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(o.a)(e,"yyyy/MM/dd")+"-"+Object(o.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(c.a)(this.formValidate).then((function(e){var a=["now_balance","add_balance","sub_balance"];t.cardLists.map((function(t,n){t.count=e.data[a[n]]}))}))},getBalanceChannel:function(){var t=this;this.loading=!0,Object(c.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(c.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?this.timeVal.join("-"):"",this.name=this.formValidate.time,this.getBalanceBasic(),this.getBalanceTrend()},getBalanceTrend:function(){var t=this;this.spinShow=!0,Object(c.c)(this.formValidate).then(function(){var e=Object(i.a)(Object(n.a)().mark((function e(a){var i,s,r,c;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=a.data.series.map((function(t){return t.name})),s=a.data.xAxis,r=["#5B8FF9","#5AD8A6","#FFAB2B","#5D7092"],c=[],a.data.series.map((function(t,e){c.push({name:t.name,type:"line",data:t.data,itemStyle:{normal:{color:r[e]}},smooth:0})})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:i},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",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},series:c},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}))}}},a("b6ef"),r=a("2877"),l=Object(r.a)(s,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}]},[0<=t.cardLists.length?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),e("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"label_text"},[t._v("时间选择:")]),e("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)]),e("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never"}},[e("h3",[t._v("余额使用趋势")]),t.optionData?e("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e()],1),e("div",{staticClass:"code-row-bg"},[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("h3",{staticClass:"statics-header-title"},[t._v("余额来源分析")]),e("div",{staticClass:"change-style",on:{click:function(e){t.echartLeft=!t.echartLeft}}},[t._v("切换样式")])]),e("div",{staticClass:"ech-box"},[t.echartLeft?e("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList,echartsTitle:"circle"}}):t._e(),e("el-table",{directives:[{name:"show",rawName:"v-show",value:!t.echartLeft,expression:"!echartLeft"},{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"selection",attrs:{data:t.tabList,"empty-text":"暂无数据","highlight-current-row":""}},[e("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),e("el-table-column",{attrs:{label:"来源","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.name))])]}}])}),e("el-table-column",{attrs:{label:"金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.value))])]}}])}),e("el-table-column",{attrs:{label:"占比率","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"percent-box"},[e("div",{staticClass:"line"},[e("div",{staticClass:"bg"}),e("div",{staticClass:"percent",style:"width:"+a.row.percent+"%;"})]),e("div",{staticClass:"num"},[t._v(t._s(a.row.percent)+"%")])])]}}])})],1)],1)]),e("el-card",{staticClass:"ivu-mt ml10",attrs:{bordered:!1,shadow:"never"}},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("h3",{staticClass:"statics-header-title"},[t._v("余额消耗")]),e("div",{staticClass:"change-style",on:{click:function(e){t.echartRight=!t.echartRight}}},[t._v("切换样式")])]),e("div",{staticClass:"ech-box"},[t.echartRight?e("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList2,echartsTitle:"circle"}}):t._e(),e("el-table",{directives:[{name:"show",rawName:"v-show",value:!t.echartRight,expression:"!echartRight"},{name:"loading",rawName:"v-loading",value:t.loading2,expression:"loading2"}],ref:"selection",attrs:{data:t.tabList2,"empty-text":"暂无数据","highlight-current-row":""}},[e("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),e("el-table-column",{attrs:{label:"来源","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.name))])]}}])}),e("el-table-column",{attrs:{label:"金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.value))])]}}])}),e("el-table-column",{attrs:{label:"占比率","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("div",{staticClass:"percent-box"},[e("div",{staticClass:"line"},[e("div",{staticClass:"bg"}),e("div",{staticClass:"percent",style:"width:"+a.row.percent+"%;"})]),e("div",{staticClass:"num"},[t._v(t._s(a.row.percent)+"%")])])]}}])})],1)],1)])],1)],1)}),[],!1,null,"6f60bac5",null);e.default=l.exports},"2c72":function(t,e,a){},b6ef:function(t,e,a){"use strict";a("2c72")},fd73:function(t,e,a){"use strict";a("a15b");var n=a("61f7"),i={filters:{formatDate:function(t){if(0!==t)return t=new Date(t),Object(n.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()}}};a=a("2877"),a=Object(a.a)(i,(function(){var t=this,e=t._self._c;return e("el-radio-group",{attrs:{type:"button"},on:{input:t.onSelectTime},model:{value:t.selectIndexTime,callback:function(e){t.selectIndexTime=e},expression:"selectIndexTime"}},t._l(t.options.shortcuts,(function(a,n){return e("el-radio-button",{key:n,attrs:{label:n}},[t._v(t._s(a.text))])})),1)}),[],!1,null,null,null);e.a=a.exports}}]); |