webpackJsonp([13],{"8xFd":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("g+M4"),i={name:"ExamRecord",data:()=>({showList:!0,showNodata:!1,value:"",allData:[],pageCount:0,page:0,title:""}),methods:{onClickLeft(){this.$router.go(-1)},onSearch(t){this.value=t,this.getPaperRecordList()},getPaperRecordList(t=1){Object(s.l)({courseid:this.$route.query.courseid,typeid:this.$route.query.typeid,page:t,pagesize:10,key:this.value}).then(e=>{1==e.result?(this.title=e.periodname+"练习记录",this.allData=this.allData.concat(e.data),this.pageCount=e.pagecount,this.page=t,this.showList=!0,this.showNodata=!1):(this.title="练习记录",this.showList=!1,this.showNodata=!0,this.page=0,this.pageCount=0),document.title=this.title})}},activated(){this.allData=[],document.title="练习记录",this.getPaperRecordList()}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ks-page-scroll-container",{attrs:{page:t.page,"page-count":t.pageCount},on:{"page-change":t.getPaperRecordList}},[a("div",{staticClass:"contianer"},[a("van-nav-bar",{attrs:{title:"练习记录","left-arrow":""},on:{"click-left":function(e){return t.onClickLeft()}}}),t._v(" "),a("div",{staticClass:"margin20"}),t._v(" "),a("div",{staticClass:"examRecord-top"},[a("div",{staticClass:"examRecord-top_search"},[a("van-search",{attrs:{placeholder:"请输入搜索关键词",shape:"round"},on:{search:t.onSearch},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1)]),t._v(" "),t.showList?a("div",{staticClass:"examRecord-item"},t._l(t.allData,function(e,s){return a("div",{key:s,staticClass:"examRecord-box"},[a("div",{staticClass:"examRecord-box_top"},[a("div",{staticClass:"examRecord-box_title"},[a("ul",[a("li",[t._v(t._s(t.title))])])]),t._v(" "),a("span",[t._v("总"+t._s(e.tk_num)+"题/对"+t._s(e.tk_num-e.error_num)+"题")])]),t._v(" "),a("div",{staticClass:"examRecord-box_bottom"},[a("div",{staticClass:"examRecord-box_type"},[a("div",[a("span",[t._v("练习时间："+t._s(e.adddate_mm))]),t._v(" "),a("span",{staticClass:"ml15"},[t._v("\n                  用时："+t._s(Math.floor(e.exam_time/3600)>=10?Math.floor(e.exam_time/60):"0"+Math.floor(e.exam_time/60))+":"+t._s(Math.floor(e.exam_time/60)>=10?Math.floor(e.exam_time/60):"0"+Math.floor(e.exam_time/60))+":"+t._s(e.exam_time%60>=10?e.exam_time%60:"0"+e.exam_time%60)+"\n                  ")])])]),t._v(" "),e.show_analysis?a("router-link",{staticClass:"examRecord-box_see",staticStyle:{"margin-right":"10px"},attrs:{to:{name:"ExamResult",query:{id:e.id,type:2,paperid:t.$route.query.typeid,typeid:t.$route.query.typeid,categoryid:0}},tag:"div"}},[t._v("查看解析")]):t._e()],1)])}),0):t._e(),t._v(" "),t.showNodata?a("Nodata"):t._e()],1)])},staticRenderFns:[]};var r=a("C7Lr")(i,o,!1,function(t){a("Zu/9")},"data-v-c27a59ee",null);e.default=r.exports},"Zu/9":function(t,e){}});