(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c7ef87a6"],{3917:function(t,e,a){"use strict";a.d(e,"e",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"d",(function(){return s})),a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return u}));var n=a("66df"),i=function(t){return n["a"].request({method:"post",url:"api/admin.php?service=Admin.User.GetLoginStatistics",data:t})},r=function(t){return n["a"].request({method:"post",url:"api/admin.php?service=Admin.User.GetDataFlow",data:t})},s=function(t){return n["a"].request({method:"post",url:"api/admin.php?service=Admin.Index.GetDataFlow",data:t})},o=function(t){return n["a"].request({method:"post",url:"api/admin.php?service=Admin.StatReport.GetAppDailyStatReport",data:t})},u=function(t){return n["a"].request({method:"post",url:"api/admin.php?service=Admin.StatReport.GetAppStatReport",data:t})}},4640:function(t,e,a){},"47c2":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portStats"},[a("Row",{staticClass:"portStats__query"},[a("span",[t._v(t._s(t.$t("date"))+"：")]),a("Col",[a("DatePicker",{staticStyle:{width:"400px"},attrs:{value:t.dateRange,options:t.optionsFuture,type:"daterange",placement:"bottom-end"},on:{"on-change":t.changeDateRange}})],1),a("Button",{staticClass:"portStats__query__btn",attrs:{type:"primary"},on:{click:t.getQuery}},[t._v(t._s(t.$t("refresh")))])],1),a("div",{ref:"myChart",style:{width:"100%",height:"400px"},attrs:{id:"my_chart"}}),a("Table",{staticClass:"portStats__tab",attrs:{border:"",width:"80%",columns:t.columnsList,data:t.loginData,loading:t.registerLoad}})],1)},i=[],r=(a("ac6a"),a("3917")),s=a("c276"),o=a("313e"),u=a.n(o),d={data:function(){return{token:Object(s["h"])(),registerLoad:!1,xAxisTimeData:[],allData:[],monthAgo:[],loginData:[],dateRange:["",""],columnsList:[{title:this.$t("date"),key:"time",align:"center"},{title:this.$t("reg_amount"),key:"total",align:"center"},{title:this.$t("compare_last_month"),key:"monthAgo",align:"center"}],optionsFuture:{disabledDate:function(t){return t&&t.valueOf()>Date.now()}}}},created:function(){var t=Object(s["b"])();this.dateRange[0]=t.starttime,this.dateRange[1]=t.endtime,this.getQuery()},mounted:function(){},methods:{getQuery:function(){var t=this;this.registerLoad=!0;var e=new FormData;e.append("access_token",this.token),e.append("start_time",this.dateRange[0]),e.append("end_time",this.dateRange[1]),Object(r["c"])(e).then((function(e){t.loginData=e.data.list,t.xAxisTimeData=[],t.allData=[],t.registerLoad=!1,t.loginData.forEach((function(e){t.xAxisTimeData.push(e.time),t.allData.push(e.total),t.monthAgo.push(e.monthAgo)})),t.createEchars()}))},changeDateRange:function(t){this.dateRange=[t[0]+" 00:00:00",t[1]+" 23:59:59"]},createEchars:function(){var t=u.a.init(this.$refs.myChart),e={title:{text:this.$t("account_reg_stat"),subtext:this.$t("daily_reg_num")},tooltip:{trigger:"axis"},legend:{right:"20%",data:[this.$t("reg_amount"),this.$t("compare_last_month")]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},dataView:{readOnly:!1},magicType:{type:["line","bar"]},restore:{},saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:this.xAxisTimeData},yAxis:{type:"value"},series:[{name:this.$t("reg_amount"),type:"line",data:this.allData,markPoint:{data:[{type:"max",name:this.$t("max_value")},{type:"min",name:this.$t("min_value")}]},markLine:{data:[{type:"average",name:this.$t("agv_value")}]}},{name:this.$t("compare_last_month"),type:"line",data:this.monthAgo,markPoint:{data:[{type:"max",name:this.$t("max_value")},{type:"min",name:this.$t("min_value")}]},markLine:{data:[{type:"average",name:this.$t("agv_value")}]}}]};t.setOption(e),window.addEventListener("resize",(function(){t.resize()}))}}},c=d,m=(a("9d02"),a("2877")),p=Object(m["a"])(c,n,i,!1,null,"048f31a4",null);e["default"]=p.exports},"9d02":function(t,e,a){"use strict";var n=a("4640"),i=a.n(n);i.a}}]);