webpackJsonp([10],{BEPU:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("g+M4"),s={data:function(){return{getParameters:{paperid:this.$route.query.paperid,categoryid:this.$route.query.categoryid,page:1,pagesize:10},loaded:!1,gradeList:[],title:"",totalCount:0}},methods:{loadPage:function(){var t=this;Object(r.e)(this.getParameters).then(function(e){e.result&&(t.gradeList=e.data,t.title=e.data[0].title,t.gradeList.map(function(t){var e=Math.floor(t.time/60),a=Math.floor(t.time%60);t.newusertime=e?e+"分"+a+"秒":a+"秒"}),t.totalCount=e.totalcount),t.loaded=!0})},togglePage:function(t){this.getParameters.page=t,this.loadPage()},printGrade:function(){window.print()}},mounted:function(){document.title="成绩排行",this.loadPage()}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.loaded?a("div",{staticClass:"main"},[a("div",{staticClass:"test-top-box white-bg"},[a("h2",{staticClass:"test-title align-center f20 weight-normal"},[t._v(t._s(t.title))]),t._v(" "),a("div",{staticClass:"test-intro line-height26 darkgray-font"},[a("p",[t._v("◇ 本卷共分为"+t._s(t.$route.query.dtnum)+"大题"+t._s(t.$route.query.tknum||0)+"小题，作答时间为"+t._s(t.$route.query.answertime||0)+"分钟，总分"+t._s(t.$route.query.sumscore||0)+"分")]),t._v(" "),a("p",[t._v("◇ 试卷来源："+t._s(t.$route.query.schoolname||"暂无来源"))])])]),t._v(" "),a("div",{staticClass:"grade-ranking white-bg",attrs:{id:"FullOrderDetailBox"}},[a("table",{attrs:{width:"100%",border:"0",cellpadding:"0",cellspacing:"0"}},[t._m(0),t._v(" "),t._l(t.gradeList,function(e,r){return a("tr",{key:r},[a("td",{staticClass:"align-center darkgray-font"},[1==e.order_top?a("span",{staticClass:"rank white-font red-bg"},[t._v(t._s(e.order_top))]):2==e.order_top?a("span",{staticClass:"rank white-font yellow-bg"},[t._v(t._s(e.order_top))]):3==e.order_top?a("span",{staticClass:"rank white-font green-bg"},[t._v(t._s(e.order_top))]):a("span",{staticClass:"rank white-font darkgray-bg"},[t._v(t._s(e.order_top))])]),t._v(" "),a("td",{staticClass:"darkgray-font"},[t._v(t._s(e.username))]),t._v(" "),a("td",{staticClass:"align-center darkgray-font"},[t._v(t._s(e.newusertime))]),t._v(" "),a("td",{staticClass:"align-center darkgray-font"},[t._v(t._s(e.sumscore)+"分")]),t._v(" "),a("td",{staticClass:"align-center darkgray-font"},[t._v(t._s(e.adddate))])])})],2),t._v(" "),a("div",{staticClass:"print clearfix",attrs:{id:"print-bottom"}},[a("ks-button",{staticClass:"fr",attrs:{type:"danger"},on:{click:t.printGrade}},[t._v("打印成绩表")]),t._v(" "),t.totalCount?a("ks-pagination",{attrs:{total:t.totalCount,pagesize:10},on:{togglePage:function(e){return t.togglePage(e)}}}):t._e()],1)])]):t._e()},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",{staticClass:"title"},[a("th",{staticClass:"align-center"},[t._v("排名")]),t._v(" "),a("th",[t._v("用户名")]),t._v(" "),a("th",{staticClass:"align-center"},[t._v("完成用时")]),t._v(" "),a("th",{staticClass:"align-center"},[t._v("考试分数")]),t._v(" "),a("th",{staticClass:"align-center"},[t._v("做题时间")])])}]};var i=a("C7Lr")(s,n,!1,function(t){a("j83L")},"data-v-708ac6f4",null);e.default=i.exports},j83L:function(t,e){}});