(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bf5de8c8"],{"4a61":function(e,t,a){"use strict";a("bb60")},"77fe":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{staticClass:"competition-rank-form",attrs:{inline:!0,model:e.recordRankForm}},[a("el-form-item",{attrs:{label:"选择排行"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){return e.getRecordRank()}},model:{value:e.recordRankForm.recordStandard,callback:function(t){e.$set(e.recordRankForm,"recordStandard",t)},expression:"recordRankForm.recordStandard"}},e._l(e.recordStandardList,(function(e,t){return a("el-option",{key:t+e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("div",{staticClass:"rank-title"},[e._v("记录排行榜")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.recordResult}},[a("el-table-column",{attrs:{prop:"rank",label:"排名",width:"80",align:"center"}}),a("el-table-column",{attrs:{prop:"username",label:"用户名",width:"120",align:"center"}}),a("el-table-column",{attrs:{prop:"todayRecord",label:"今日跟打",width:"100",align:"center"}}),a("el-table-column",{attrs:{prop:"totalRecord",label:"总跟打",align:"center"}}),a("el-table-column",{attrs:{prop:"totalDay",label:"总天数",align:"center"}}),a("el-table-column",{attrs:{prop:"avgDailyRecord",label:"平均日跟打",align:"center"}}),a("el-table-column",{attrs:{prop:"avgKeystrokes",label:"平均击键",align:"center"}}),a("el-table-column",{attrs:{prop:"avgCodeLength",label:"平均码长",align:"center"}}),a("el-table-column",{attrs:{prop:"totalWordNum",label:"总字数",align:"center"}}),a("el-table-column",{attrs:{prop:"totalKeyNum",label:"总键数",align:"center"}}),a("el-table-column",{attrs:{prop:"totalTime",label:"总时间",align:"center"}}),a("el-table-column",{attrs:{prop:"typingTime",label:"最后跟打",align:"center"}}),a("el-table-column",{attrs:{prop:"inputMethod",label:"输入法",align:"center"}})],1),a("div",{staticClass:"page"},[a("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":[5,10,30,50,100],"page-size":e.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)},l=[],n=a("1da1"),o=a("d4ec"),c=a("bee2"),i=a("262e"),s=a("2caf"),u=(a("96cf"),a("9ab4")),d=a("1b40"),g=a("3074"),p=function(e){Object(i["a"])(a,e);var t=Object(s["a"])(a);function a(){var e;return Object(o["a"])(this,a),e=t.apply(this,arguments),e.loading=!1,e.recordRankForm={recordStandard:"0"},e.recordStandardList=[{value:"0",label:"今日跟打"},{value:"1",label:"总跟打"},{value:"2",label:"总天数"},{value:"3",label:"总字数"},{value:"4",label:"总键数"},{value:"5",label:"总时间"}],e.recordResult=[],e.currentPage=1,e.pagesize=30,e.total=0,e}return Object(c["a"])(a,[{key:"mounted",value:function(){this.getRecordRank()}},{key:"onSubmit",value:function(){this.getRecordRank()}},{key:"getRecordRank",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={recordStandard:this.recordRankForm.recordStandard,pagesize:this.pagesize,currentPage:this.currentPage},console.log(JSON.stringify(t)),e.next=5,g["a"].getRecordRank(t);case 5:a=e.sent,0===a.error&&(r=a.msg,this.recordResult=r.recordResult,this.total=r.total),this.loading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"handleSizeChange",value:function(e){this.pagesize=e,this.getRecordRank()}},{key:"handleCurrentChange",value:function(e){this.currentPage=e,this.getRecordRank()}}]),a}(d["c"]);p=Object(u["a"])([d["a"]],p);var b=p,m=b,h=(a("4a61"),a("2877")),v=Object(h["a"])(m,r,l,!1,null,null,null);t["default"]=v.exports},bb60:function(e,t,a){}}]);