(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-086abdee"],{3917:function(t,a,e){"use strict";e.d(a,"e",(function(){return n})),e.d(a,"c",(function(){return s})),e.d(a,"d",(function(){return o})),e.d(a,"a",(function(){return r})),e.d(a,"b",(function(){return l}));var i=e("66df"),n=function(t){return i["a"].request({method:"post",url:"api/admin.php?service=Admin.User.GetLoginStatistics",data:t})},s=function(t){return i["a"].request({method:"post",url:"api/admin.php?service=Admin.User.GetDataFlow",data:t})},o=function(t){return i["a"].request({method:"post",url:"api/admin.php?service=Admin.Index.GetDataFlow",data:t})},r=function(t){return i["a"].request({method:"post",url:"api/admin.php?service=Admin.StatReport.GetAppDailyStatReport",data:t})},l=function(t){return i["a"].request({method:"post",url:"api/admin.php?service=Admin.StatReport.GetAppStatReport",data:t})}},"88f2":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"portStats"},[e("Row",{staticClass:"portStats__query"},[e("span",[t._v(t._s(t.$t("date"))+"：")]),e("Col",[e("DatePicker",{staticStyle:{width:"400px"},attrs:{value:t.dateRange,options:t.optionsFuture,format:"yyyy-MM-dd",type:"daterange",placement:"bottom-end"},on:{"on-change":t.changeDateRange}})],1),e("Button",{staticClass:"portStats__query__btn",attrs:{type:"primary"},on:{click:t.getQuery}},[t._v(t._s(t.$t("refresh")))])],1),e("div",{ref:"myChart",style:{width:"100%",height:"400px"},attrs:{id:"my_chart"}}),e("Table",{staticClass:"portStats__tab",attrs:{border:"",width:"80%",columns:t.columnsList,data:t.loginData,loading:t.loginLoad},scopedSlots:t._u([{key:"name",fn:function(a){var i=a.row;return[e("strong",[t._v(t._s(i.name))])]}}])})],1)},n=[],s=(e("ac6a"),e("3917")),o=e("c276"),r=e("313e"),l=e.n(r),c={data:function(){return{loginLoad:!1,token:Object(o["h"])(),xAxisTimeData:[],allData:[],successData:[],failData:[],loginData:[],dateRange:["",""],columnsList:[{title:this.$t("date"),key:"time",align:"center"},{title:this.$t("total_login_times"),key:"total",align:"center"},{title:this.$t("succeed_to_login_times"),key:"success",align:"center"},{title:this.$t("failed_to_login_times"),key:"fail",align:"center"}],optionsFuture:{disabledDate:function(t){return t&&t.valueOf()>Date.now()}}}},created:function(){var t=Object(o["b"])();this.dateRange[0]=t.starttime,this.dateRange[1]=t.endtime,this.getQuery()},mounted:function(){},methods:{getQuery:function(){var t=this;this.loginLoad=!0;var a=new FormData;a.append("access_token",this.token),a.append("start_time",this.dateRange[0]),a.append("end_time",this.dateRange[1]),Object(s["e"])(a).then((function(a){t.loginData=a.data.list,t.xAxisTimeData=[],t.allData=[],t.successData=[],t.failData=[],t.loginLoad=!1,t.loginData.forEach((function(a){t.xAxisTimeData.push(a.time),t.allData.push(a.total),t.successData.push(a.success),t.failData.push(a.fail)})),t.createEchars()}))},changeDateRange:function(t){this.dateRange=[t[0]+" 00:00:00",t[1]+" 23:59:59"]},createEchars:function(){var t=l.a.init(this.$refs.myChart),a={title:{text:this.$t("account_login_statistics"),subtext:this.$t("daily_login_stat_tip")},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},legend:{right:"20%",data:[this.$t("total_login_times"),this.$t("succeed_to_login_times"),this.$t("failed_to_login_times")]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{dataZoom:{},dataView:{},magicType:{type:["bar","line"]},restore:{},saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:this.xAxisTimeData},yAxis:{type:"value"},series:[{name:this.$t("total_login_times"),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("succeed_to_login_times"),type:"line",data:this.successData,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("failed_to_login_times"),type:"line",data:this.failData,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(a),window.addEventListener("resize",(function(){t.resize()}))}}},u=c,d=(e("8cf7"),e("2877")),m=Object(d["a"])(u,i,n,!1,null,"058a0222",null);a["default"]=m.exports},"8cf7":function(t,a,e){"use strict";var i=e("ad1b"),n=e.n(i);n.a},ad1b:function(t,a,e){}}]);