(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{410:function(t,e,n){},471:function(t,e,n){"use strict";var r=n(410);n.n(r).a},532:function(t,e,n){"use strict";n.r(e);n(31),n(11),n(7),n(4),n(22),n(187),n(30);var r=n(3),c=n(9);n(395);function o(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var l=["ID","昵称","认证类型","证书状态","工作","职业方向","技能","城市","工龄","接单数量","自由职业","开始时间","过期时间","操作"],f=["uid","nickname","name","cert_status_name","work_status_name","direction_name","skills","city_name","work_year_op","projectCountInfoStr","freelancer_name","startDate","endDate","ctrl"],d={data:function(){return{totalCount:0,currentPage:1,currentPageSize:20,tableHeaders:l,tableProps:f,tableData:[]}},mounted:function(){this.getTableData()},methods:{clickDetail:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/user/".concat(t))},clickCheck:function(t){window.open(this.$store.state.domainConfig.rooterUrl+"/main/dev_check_detail?uid=".concat(t.uid,"&cert_id=").concat(t.cert_id))},formatTableData:function(data,t){t.userSkills;return data.map((function(i){var t=i.project_count_info,e=t.project,n=t.hire,r=t.job;return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?o(Object(source),!0).forEach((function(e){Object(c.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):o(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},i,{projectCountInfoStr:"项目:".concat(e,",雇佣:").concat(n,",云端:").concat(r),startDate:i.start_date,endDate:i.end_date,ctrl:"审核"})}))},changePagination:function(t){this.currentPage=t,this.getTableData()},changePageSize:function(t){this.currentPageSize=t,this.getTableData()},getTableData:function(){var t=arguments,e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var body,r,data,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:0,e.tableData=[],body={page:e.currentPage,page_size:e.currentPageSize},n.next=5,e.$post("/api/admin/cert/getUserList",body);case 5:r=n.sent,data=r.data,c=data.list,data.current_env,e.tableData=e.formatTableData(c,data),e.totalCount=Number(data.total),e.totalPage=data.totalPage;case 12:case"end":return n.stop()}}),n)})))()}}},_=(n(471),n(2)),component=Object(_.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{attrs:{id:"cert-check"}},[n("div",{staticClass:"table"},[t.tableData.length?n("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.tableData}},t._l(t.tableProps,(function(e,r){return n("el-table-column",{key:r,attrs:{prop:e,label:t.tableHeaders[r]},scopedSlots:t._u([{key:"default",fn:function(r){return["ctrl"===e?n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickCheck(r.row)}}},[t._v(t._s(r.row[e]))]):"nickname"===e?n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickDetail(r.row.uid)}}},[t._v(t._s(r.row[e]))]):n("span",[t._v(t._s(r.row[e]))])]}}],null,!0)})})),1):t._e()],1),t._v(" "),n("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":20,layout:"total, sizes, prev, pager, next, jumper",total:t.totalCount},on:{"current-change":t.changePagination,"size-change":t.changePageSize,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}})],1)}),[],!1,null,"1c764ed9",null);e.default=component.exports}}]);