webpackJsonp([15],{CGiA:function(t,e){},jlx7:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("vMJZ"),s={name:"ExamRecord",data:()=>({showList:!0,showNodata:!1,value:"",allData:[],pageCount:0,page:0,loading:!1}),methods:{onClickLeft(){this.$router.go(-1)},onSearch(t){this.value=t,this.getPaperRecordList()},delrecord:function(t){var e=this;Object(i.b)({ids:t,categoryid:this.$route.query.categoryid}).then(function(t){e.allData=[],e.getPaperRecordList()})},getPaperRecordList(t=1){this.loading||(this.loading=!0,Object(i.h)({categoryid:this.$route.query.categoryid,page:t,pagesize:10,key:this.value}).then(e=>{1==e.result?(this.allData=this.allData.concat(e.data),this.pageCount=e.pagecount,this.page=t,this.showList=!0,this.showNodata=!1):(this.showList=!1,this.showNodata=!0,this.page=0,this.pageCount=0),this.loading=!1}))}},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"}),t._v(" "),t.showList?a("div",{staticClass:"examRecord-item"},t._l(t.allData,function(e,i){return a("div",{key:i,staticClass:"examRecord-box"},[a("div",{staticClass:"examRecord-box_top"},[a("div",{staticClass:"examRecord-box_title"},[a("ul",[a("li",[t._v(t._s(e.title))])])]),t._v(" "),0==e.batch?a("span",[t._v("- -")]):0==e.iscorrect?a("span",[t._v("待批卷")]):0==e.is_publish?a("span",[t._v("待公布")]):a("span",[t._v(t._s(e.sumscore)+"分")])]),t._v(" "),a("div",{staticClass:"examRecord-box_bottom"},[a("div",{staticClass:"examRecord-box_type"},[t._v("\n            练习时间："+t._s(Math.floor(e.time/3600)>=10?Math.floor(e.time/60):"0"+Math.floor(e.time/60))+":"+t._s(Math.floor(e.time/60)>=10?Math.floor(e.time/60):"0"+Math.floor(e.time/60))+":"+t._s(e.time%60>=10?e.time%60:"0"+e.time%60)+"\n          ")]),t._v(" "),a("div",{staticClass:"examRecord-box_method"},[1==e.is_delrecord?a("div",{staticClass:"examRecord-box_see",staticStyle:{"margin-right":"10px"},on:{click:function(a){return t.delrecord(e.id)}}},[t._v("删除记录")]):t._e(),t._v(" "),e.show_analysis&&1==e.batch?a("router-link",{staticClass:"examRecord-box_see",staticStyle:{"margin-right":"10px"},attrs:{to:{name:"analysis",query:{id:e.id,type:1,paperid:e.paperid,categoryid:t.$route.query.categoryid,title:e.title}},tag:"div"}},[t._v("查看解析")]):t._e(),t._v(" "),0!=e.is_repractice?a("router-link",{staticClass:"examRecord-box_see",attrs:{to:{name:"PaperInfo",query:{paperid:e.paperid,categoryid:t.$route.query.categoryid}},tag:"div"}},[t._v(t._s(2==e.is_repractice?"继续练习":"重新练习"))]):t._e()],1)])])}),0):t._e(),t._v(" "),t.showNodata?a("Nodata"):t._e()],1)])},staticRenderFns:[]};var r=a("C7Lr")(s,o,!1,function(t){a("CGiA")},"data-v-7e2f0c4c",null);e.default=r.exports}});