(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21c5a392"],{"4b91":function(e,a,t){"use strict";t("a8a0")},"56b8":function(e,a,t){"use strict";t.r(a);var n=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",[t("el-form",{staticClass:"competition-rank-form",attrs:{inline:!0,model:e.scoreRankForm}},[t("el-form-item",{attrs:{label:"选择排行"}},[t("el-select",{attrs:{placeholder:"请选择"},on:{change:function(a){return e.getScoreRank()}},model:{value:e.scoreRankForm.rankStandard,callback:function(a){e.$set(e.scoreRankForm,"rankStandard",a)},expression:"scoreRankForm.rankStandard"}},e._l(e.rankStandardList,(function(e,a){return t("el-option",{key:a+e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),t("div",{staticClass:"rank-title"},[e._v("积分排行榜")]),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.scoreResult}},[t("el-table-column",{attrs:{prop:"rank",label:"排名",width:"80",align:"center"}}),t("el-table-column",{attrs:{prop:"title",label:"头衔",width:"150",align:"center"}}),t("el-table-column",{attrs:{prop:"username",label:"用户名",width:"150",align:"center"}}),t("el-table-column",{attrs:{prop:"score",label:"积分",align:"center"}}),t("el-table-column",{attrs:{prop:"signTotalCount",label:"签到总天数",align:"center"}}),t("el-table-column",{attrs:{prop:"signCount",label:"连签数",align:"center"}}),t("el-table-column",{attrs:{prop:"signTime",label:"最后签到",align:"center"}})],1),t("div",{staticClass:"page"},[t("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)},r=[],l=t("1da1"),i=t("d4ec"),o=t("bee2"),s=t("262e"),c=t("2caf"),u=(t("96cf"),t("9ab4")),g=t("1b40"),d=t("3074"),p=function(e){Object(s["a"])(t,e);var a=Object(c["a"])(t);function t(){var e;return Object(i["a"])(this,t),e=a.apply(this,arguments),e.loading=!1,e.scoreRankForm={rankStandard:"0"},e.rankStandardList=[{value:"0",label:"积分"},{value:"1",label:"签到总天数"},{value:"2",label:"连签数"},{value:"3",label:"最后签到"}],e.scoreResult=[],e.rankTitle="",e.currentPage=1,e.pagesize=30,e.total=0,e}return Object(o["a"])(t,[{key:"mounted",value:function(){this.getScoreRank()}},{key:"onSubmit",value:function(){this.getScoreRank()}},{key:"getScoreRank",value:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var a,t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,a={rankStandard:this.scoreRankForm.rankStandard,pagesize:this.pagesize,currentPage:this.currentPage},console.log(JSON.stringify(a)),e.next=5,d["a"].getScoreRank(a);case 5:t=e.sent,0===t.error&&(n=t.msg,this.scoreResult=n.scoreResult,this.total=n.total),this.loading=!1;case 8:case"end":return e.stop()}}),e,this)})));function a(){return e.apply(this,arguments)}return a}()},{key:"handleSizeChange",value:function(e){this.pagesize=e,this.getScoreRank()}},{key:"handleCurrentChange",value:function(e){this.currentPage=e,this.getScoreRank()}}]),t}(g["c"]);p=Object(u["a"])([g["a"]],p);var b=p,h=b,k=(t("4b91"),t("2877")),m=Object(k["a"])(h,n,r,!1,null,null,null);a["default"]=m.exports},a8a0:function(e,a,t){}}]);