Server : nginx/1.20.1 System : Linux iZ2ze9ojcl78uluczwag69Z 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64 User : www ( 1000) PHP Version : 7.3.28 Disable Function : passthru,exec,system,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/0531yanglao.com/public/admin1131/static/js/ |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa87cc8e"],{"026f":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:24}},[t.checkPermission(["admin/AdminIndex/statisticUser"])?a("statistic-user"):t._e()],1)],1)],1)},i=[],r=(a("b0c0"),a("e350")),n=a("494c"),l={name:"Index",components:{StatisticUser:n["default"]},data:function(){return{MapAmap:!1,StatisticUser:!0,MapSogou:!1,MapTencent:!1,MapBeidou:!1,actTabName:"StatisticUser"}},created:function(){},methods:{checkPermission:r["a"],tabClick:function(t){this[t.name]=!0}}},o=l,c=a("2877"),d=Object(c["a"])(o,s,i,!1,null,null,null);e["default"]=d.exports},"0625":function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{name:t.transitionName}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"back-to-ceiling",style:t.customStyle,on:{click:t.backToTop}},[a("i",{staticClass:"el-icon-top"})])])},i=[],r=(a("a9e3"),{name:"BackToTop",props:{visibilityHeight:{type:Number,default:200},backPosition:{type:Number,default:0},customStyle:{type:Object,default:function(){return{right:"50px",bottom:"50px",width:"40px",height:"40px","border-radius":"4px","line-height":"45px",background:"#e7eaf1"}}},transitionName:{type:String,default:"fade"}},data:function(){return{visible:!1,interval:null,isMoving:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll)},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll),this.interval&&clearInterval(this.interval)},methods:{handleScroll:function(){this.visible=window.pageYOffset>this.visibilityHeight},backToTop:function(){var t=this;if(!this.isMoving){var e=window.pageYOffset,a=0;this.isMoving=!0,this.interval=setInterval((function(){var s=Math.floor(t.easeInOutQuad(10*a,e,-e,500));s<=t.backPosition?(window.scrollTo(0,t.backPosition),clearInterval(t.interval),t.isMoving=!1):window.scrollTo(0,s),a++}),16.7)}},easeInOutQuad:function(t,e,a,s){return(t/=s/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e}}}),n=r,l=(a("a8ac"),a("2877")),o=Object(l["a"])(n,s,i,!1,null,"766863d9",null);e["a"]=o.exports},"494c":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{style:{height:t.height+"px"}},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:t.loadNum,expression:"loadNum"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:4}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("用户")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-user icon"})]),a("el-col",{attrs:{span:12,title:"总数"}},[t._v(" "+t._s(t.number.total)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:3}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("今天")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[t._v(" + "+t._s(t.number.today)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[t._v(" ~ "+t._s(t.active.today)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:3}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("昨天")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[t._v(" + "+t._s(t.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[t._v(" ~ "+t._s(t.active.yesterday)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:3}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("本周")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[t._v(" + "+t._s(t.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[t._v(" ~ "+t._s(t.active.thisweek)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:3}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("上周")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[t._v(" + "+t._s(t.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[t._v(" ~ "+t._s(t.active.lastweek)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:4}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("本月")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[t._v(" + "+t._s(t.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[t._v(" ~ "+t._s(t.active.thismonth)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:4}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("上月")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[t._v(" + "+t._s(t.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[t._v(" ~ "+t._s(t.active.lastmonth)+" ")])],1)],1)])],1)],1)],1),a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:t.loadDate,expression:"loadDate"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("el-date-picker",{staticStyle:{"max-width":"280px"},attrs:{type:"daterange","range-separator":"-","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(e){return t.echartDateChange()}},model:{value:t.date_new.date,callback:function(e){t.$set(t.date_new,"date",e)},expression:"date_new.date"}})],1)],1),a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("div",{staticStyle:{height:"500px"},attrs:{id:"echartDate"}})])],1)],1),a("back-to-top",{attrs:{"transition-name":"fade"}})],1)},i=[],r=a("98b1"),n=a("0625"),l=a("50fc"),o=a("3eba");a("ef97"),a("94b1"),a("c037"),a("007d"),a("d28f"),a("627c");var c={name:"StatisticUser",components:{BackToTop:n["a"]},data:function(){return{height:680,loadNum:!1,loadDate:!1,loadRegion:!1,number:{total:"-",today:"-",yesterday:"-",thisweek:"-",lastweek:"-",thismonth:"-",lastmonth:"-"},active:{total:"-",today:"-",yesterday:"-",thisweek:"-",lastweek:"-",thismonth:"-",lastmonth:"-"},date_new:{x_data:[],y_data:[],date:[]},date_act:{x_data:[],y_data:[],date:[]},region:{x_data:[],y_data:[],date:[]}}},computed:{},created:function(){this.height=Object(r["a"])(180),this.statisticUser()},mounted:function(){},methods:{statisticUser:function(){var t=this;this.loadNum=!0,Object(l["Sb"])().then((function(e){t.number=e.data.number,t.active=e.data.active,t.date_new=e.data.date_new,t.date_act=e.data.date_act,t.region=e.data.region,t.echartDate(e.data.date_new,e.data.date_act),t.loadNum=!1})).catch((function(){t.loadNum=!1}))},echartDateChange:function(){var t=this;this.loadDate=!0,Object(l["Sb"])({type:"date",date:this.date_new.date}).then((function(e){t.echartDate(e.data.date_new,e.data.date_act),t.loadDate=!1})).catch((function(){t.loadDate=!1}))},echartDate:function(t,e){var a=o.init(document.getElementById("echartDate")),s={title:{text:""},tooltip:{trigger:"axis"},legend:{data:["新增","活跃"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:t.x_data},yAxis:{type:"value"},series:[{name:"新增",type:"line",smooth:!0,data:t.y_data},{name:"活跃",type:"line",smooth:!0,data:e.y_data}]};a.setOption(s)}}},d=c,u=(a("6750"),a("2877")),h=Object(u["a"])(d,s,i,!1,null,"7ea87f7c",null);e["default"]=h.exports},6750:function(t,e,a){"use strict";a("aa6d")},"98b1":function(t,e,a){"use strict";function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=880,a=document.documentElement.clientHeight||document.body.clientHeight;return a?a-t:e-t}a.d(e,"a",(function(){return s}))},a809:function(t,e,a){},a8ac:function(t,e,a){"use strict";a("a809")},aa6d:function(t,e,a){},e350:function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("d3b7"),a("caad"),a("2532");var s=a("4360");function i(t){if(t&&t instanceof Array&&t.length>0){var e=s["a"].getters&&s["a"].getters.roles,a=t,i=e.some((function(t){return a.includes(t)}));return i}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1}}}]);