(("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]=("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]||[]).push([[53],{"204f":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableData,height:"calc(100% - 50px)",border:"",stripe:""}},[a("el-table-column",{attrs:{width:"100",type:"index",label:"序号/场次"}}),a("el-table-column",{attrs:{prop:"examName",label:"试卷名称"}}),a("el-table-column",{attrs:{prop:"examCategoryText",label:"考试类型"}}),a("el-table-column",{attrs:{prop:"makeUpExam",label:"是否补考"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n        "+e._s(t.row.makeUpExam?"是":"否")+"\n      ")]}}])}),a("el-table-column",{attrs:{prop:"coursewareTimes",label:"考试时间",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("showText")(t.row,"time")))])]}}])}),a("el-table-column",{attrs:{prop:"answerTime",label:"考试时长(min)",width:"140"}}),a("el-table-column",{attrs:{prop:"pass",label:"是否通过"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n          "+e._s(t.row.pass?"是":"否")+"\n        ")])]}}])}),a("el-table-column",{attrs:{prop:"customerScore",label:"得分"}})],1),a("el-pagination",{staticClass:"mt-20px text-right",attrs:{background:"","current-page":e.page.pageNo,"page-sizes":[15,30,45,60,75,90],"page-size":e.page.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(t){return e.$set(e.page,"pageNo",t)},"update:current-page":function(t){return e.$set(e.page,"pageNo",t)},"size-change":e.searchList,"current-change":e.findList,"update:pageSize":function(t){return e.$set(e.page,"pageSize",t)},"update:page-size":function(t){return e.$set(e.page,"pageSize",t)}}})],1)},r=[],s=a("c14f"),o=a("3835"),i=a("1da1"),l=(a("99af"),a("6268")),c=a("5a0c"),u=a.n(c),p=new l["TaskExamAnswerRecordApi"],m={name:"personExamRecord",props:{userId:{type:String,default:""}},methods:{searchList:function(){this.page.pageNo=1,this.findList()},findList:function(){var e=this;return Object(i["a"])(Object(s["a"])().m((function t(){var a,n,r,i;return Object(s["a"])().w((function(t){while(1)switch(t.n){case 0:if(e.userId){t.n=1;break}return t.a(2);case 1:return e.loading=!0,t.n=2,p.examineePageList({userId:e.userId,skipCount:(e.page.pageNo-1)*e.page.pageSize,maxResultCount:e.page.pageSize});case 2:a=t.v,n=Object(o["a"])(a,2),r=n[0],i=n[1],e.loading=!1,r||(e.tableData=i.items,e.total=i.totalCount);case 3:return t.a(2)}}),t)})))()}},data:function(){return{tableData:[],page:{pageNo:1,pageSize:15},total:0,loading:!1}},filters:{showText:function(e,t){var a="";return"time"===t&&(e.examStartTime&&e.examEndTime?a="".concat(u()(e.examStartTime).format("YYYY-MM-DD HH:mm")," - ").concat(u()(e.examEndTime).format("YYYY-MM-DD HH:mm")):e.examStartTime&&(a="".concat(u()(e.examStartTime).format("YYYY-MM-DD HH:mm")," - 无"))),a}},created:function(){var e=this;return Object(i["a"])(Object(s["a"])().m((function t(){return Object(s["a"])().w((function(t){while(1)switch(t.n){case 0:e.findList();case 1:return t.a(2)}}),t)})))()}},d=m,g=a("2877"),f=Object(g["a"])(d,n,r,!1,null,null,null);t["default"]=f.exports}}]);