webpackJsonp([12],{"3Srl":function(t,e){},WdO7:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("g+M4"),r={data(){return{getParameters:{courseid:this.$route.query.courseid,typeid:this.$route.query.typeid,page:1,pagesize:10},loaded:!1,testRecordList:[],periodname:"",totalCount:0}},methods:{returnBack(){history.back()},loadPage(){Object(s.l)(this.getParameters).then(t=>{t.result&&(document.title=t.periodname+"练习记录",this.testRecordList=t.data,this.periodname=t.periodname,this.testRecordList.map(t=>{let e=Math.floor(t.exam_time/60),a=Math.floor(t.exam_time%60);t.newusertime=e?e+"分"+a+"秒":a+"秒"}),this.totalCount=t.totalcount),this.loaded=!0})},lookResult(t){this.$router.push({name:"ExaminationResult",query:{answerid:t.id,type:2,paperid:this.$route.query.typeid,categoryid:0,typeid:this.$route.query.typeid}})},togglePage(t){this.getParameters.page=t,this.loadPage()},printGrade(){this.$print(this.$refs.print)}},mounted(){this.loadPage()}},i={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 clearfix"},[a("ks-button",{staticClass:"fr",attrs:{pain:""},on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),a("h2",{staticClass:"f14 weight-normal record-title"},[a("span",{staticClass:"f20 vertical-align"},[t._v("练习记录：")]),a("font",{staticClass:"vertical-align"},[t._v(t._s(t.periodname))])],1)],1),t._v(" "),a("div",{staticClass:"grade-ranking white-bg"},[t.testRecordList&&t.testRecordList.length?a("table",{attrs:{width:"100%",border:"0",cellpadding:"0",cellspacing:"0"}},[t._m(0),t._v(" "),t._l(t.testRecordList,function(e,s){return a("tr",{key:s},[a("td",{staticClass:"align-center darkgray-font"},[a("span",[t._v(t._s(10*(t.getParameters.page-1)+s+1))])]),t._v(" "),a("td",{staticClass:"darkgray-font"},[t._v(t._s(e.adddate))]),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.tk_num)+"题/对"+t._s(e.tk_num-e.error_num)+"题")]),t._v(" "),a("td",{staticClass:"align-center darkgray-font"},[a("a",{staticClass:"red-font cursor-pointer",on:{click:function(a){return t.lookResult(e)}}},[t._v("查看")])])])})],2):a("div",{staticClass:"empty-block_empty"},[t._v("暂无数据")]),t._v(" "),a("div",{staticClass:"align-center clearfix mt30 mb20"},[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 n=a("C7Lr")(r,i,!1,function(t){a("3Srl")},"data-v-e3109f24",null);e.default=n.exports}});