webpackJsonp([11],{"GqC+":function(t,a){},Lpxc:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("hRKE"),i=e.n(s),n=e("zVNV"),c={data:function(){return{state:{},showList:!0,showNodata:!1,typeData:null,typeId:0,showSort:!1,allData:[],childsclass:null,onshow:!1,pageCount:null,paperId:null,get_viewurl:null,schoolid:"",currentPage:1,loading:!0}},watch:{"$route.query":function(t){"ExamBank"==this.$route.name&&(this.typeId=0,this.getPaperList())}},methods:{slideTab:function(t){this.typeId=t,this.getPaperList()},openExam:function(t,a){this.$store.ready(function(t){window.open(a,"_blank")})},againExam:function(t,a){this.$store.ready(function(t){window.open(a,"_blank")})},openSort:function(t,a){this.showSort=!0,this.paperId=t,this.get_viewurl=a},closeSort:function(){this.showSort=!1},getPaperList:function(t){t=t||1;var a=this;this.currentPage=t,Object(n.b)({categoryid:this.$route.query.categoryid,schoolid:a.state.schoolId,apptoken:a.state.appToken}).then(function(e){a.typeData=e.data,a.onshow=!1,localStorage.childsclass?a.childsclass=JSON.parse(localStorage.childsclass):a.childsclass=null,a.allData=[];var s=void 0;s="object"===("undefined"==typeof CONFIG?"undefined":i()(CONFIG))&&CONFIG.pagesize||10,Object(n.d)({categoryid:a.$route.query.categoryid,typeid:a.typeId,page:t,pagesize:s,apptoken:a.state.appToken}).then(function(t){1==t.result?(a.allData=t.data,a.pageCount=10*t.pagecount,a.showList=!0,a.showNodata=!1,a.loading=!1):(a.showList=!1,a.showNodata=!0,setTimeout(function(){a.loading=!1},1500))})})}},created:function(){var t=this;t.$store.ready(function(a){t.state=a,t.getPaperList()})}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticStyle:{width:"100%"}},[t.loading?e("div",{staticClass:"loading"},[t._m(0)]):t._e(),t._v(" "),e("div",{staticClass:"package-exam__item"},[e("div",{staticClass:"package-exam__nav"},[e("span",{class:{active:0==t.typeId},on:{click:function(a){return t.slideTab(0)}}},[t._v("全部试卷")]),t._v(" "),t._l(t.typeData,function(a,s){return e("span",{key:s,class:{active:t.typeId==a.typeid},on:{click:function(e){return t.slideTab(a.typeid)}}},[t._v(t._s(a.typename))])})],2),t._v(" "),t._m(1)]),t._v(" "),t.showList?e("div",{staticClass:"package-exam__show"},[e("div",{staticClass:"package-exam__showbox"},t._l(t.allData,function(a,s){return e("div",{key:s,staticClass:"package-exam__box"},[e("div",{staticClass:"package-exam__left"},[e("div",{staticClass:"package-exam__title"},[e("span"),t._v(t._s(a.title)+"\n                    ")]),t._v(" "),e("div",{staticClass:"package-exam__text"},[e("span",[t._v(t._s(a.studentcount)+"人参加")]),t._v(" "),e("span",[t._v("考试时间："+t._s(a.exam_time)+"分钟")]),t._v(" "),e("span",[t._v("总分："+t._s(a.paper_sumscore)+"分")]),t._v(" "),e("div",{staticClass:"package-exam__difficulty"},[t._v("\n                            难度:\n                            "),e("i",{staticClass:"package-exam__star",style:{width:(0==a.paper_level?"13px":1==a.paper_level&&"26px")||2==a.paper_level&&"50px"}}),t._v(" "),e("i",{staticClass:"package-exam__star-bg"})])])]),t._v(" "),e("div",{staticClass:"package-exam__right"},[-1!=a.sumscore?e("div",{staticClass:"package-exam__score"},[e("i",[t._v(t._s(a.sumscore))]),t._v("分")]):e("div",{staticClass:"package-exam__score"},[t._v("  - -")]),t._v(" "),e("div",[-1==a.is_repractice?e("el-button",{attrs:{type:"primary",size:"medium",round:""},on:{click:function(e){return t.openExam(a.paperid,a.get_viewurl)}}},[t._v("开始做题")]):0==a.is_repractice?e("el-button",{attrs:{disabled:"",size:"medium",round:""}},[t._v("重新做题")]):1==a.is_repractice?e("el-button",{attrs:{size:"medium",round:""},on:{click:function(e){return t.openExam(a.paperid,a.get_viewurl)}}},[t._v("重新做题")]):2==a.is_repractice?e("el-button",{attrs:{type:"primary",plain:"",size:"medium",round:""},on:{click:function(e){return t.againExam(a.paperid,a.get_viewurl)}}},[t._v("继续做题")]):t._e()],1)])])}),0),t._v(" "),e("div",{staticClass:"package-exam__pagination"},[e("el-pagination",{staticStyle:{"text-align":"center"},attrs:{"current-page":t.currentPage,background:"",layout:"prev, pager, next",total:t.pageCount},on:{"current-change":t.getPaperList}})],1)]):t._e(),t._v(" "),t.showNodata?e("div",{staticClass:"package-exam__noShow"},[e("ks-empty",{attrs:{msg:"暂无试卷"}})],1):t._e()])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("span",{staticClass:"load-con"},[a("i",{staticClass:"el-icon-loading"}),this._v("正在加载")])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"package-exam__item-title"},[a("p",[this._v("试卷名称")]),this._v(" "),a("span",[this._v("最新得分")])])}]};var r=e("C7Lr")(c,o,!1,function(t){e("GqC+")},"data-v-488d08f1",null);a.default=r.exports}});