(("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]=("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]||[]).push([[54],{a07b: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:"userName",label:"培训人"}}),a("el-table-column",{attrs:{prop:"orgUnitName",label:"所属单位"}}),a("el-table-column",{attrs:{prop:"name",label:"课程名称"}}),a("el-table-column",{attrs:{prop:"trainingTypeName",label:"培训类型"}}),a("el-table-column",{attrs:{prop:"singleChoiceQuantity",label:"关联考试计划"}}),a("el-table-column",{attrs:{prop:"coursewareTimes",label:"课件包含学时(h)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("showText")(t.row.coursewareTimes,"second")))])]}}])}),a("el-table-column",{attrs:{prop:"coursewareCredits",label:"课件包含学分"}}),a("el-table-column",{attrs:{prop:"statusName",label:"培训状态"}}),a("el-table-column",{attrs:{prop:"studyTimeEnd",label:"通过时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("showText")(t.row.studyTimeEnd,"time")))])]}}])})],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=[],o=a("c14f"),s=a("3835"),i=a("1da1"),l=(a("99af"),a("cc0b")),c=a("5a0c"),u=a.n(c),p=void 0,g=new l["TrainingRecordApi"],d={name:"personTrainingRecord",props:{userId:{type:String,default:""}},methods:{searchList:function(){this.page.pageNo=1,this.findList()},findList:function(){var e=this;return Object(i["a"])(Object(o["a"])().m((function t(){var a,n,r,i;return Object(o["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,g.getList({userId:e.userId,skipCount:(e.page.pageNo-1)*e.page.pageSize,maxResultCount:e.page.pageSize});case 2:a=t.v,n=Object(s["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)})))()},formatSeconds:function(e){var t=Math.floor(e/3600);t=t<10?"0".concat(t):t;var a=Math.floor(e%3600/60);a=a<10?"0".concat(a):a;var n=e%60;return n=n<10?"0".concat(n):n,"".concat(t,":").concat(a,":").concat(n)}},data:function(){return{tableData:[],page:{pageNo:1,pageSize:15},total:0,loading:!1}},filters:{showText:function(e,t){var a=e;return"time"===t&&e&&(a=u()(e).format("YYYY-MM-DD HH:mm:ss")),"second"===t&&e&&(a=p.formatSeconds(e)),a}},created:function(){var e=this;return Object(i["a"])(Object(o["a"])().m((function t(){return Object(o["a"])().w((function(t){while(1)switch(t.n){case 0:e.findList();case 1:return t.a(2)}}),t)})))()}},f=d,m=a("2877"),b=Object(m["a"])(f,n,r,!1,null,null,null);t["default"]=b.exports}}]);