You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
9.7 KiB
1 line
9.7 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[148],{H5wh:function(t,e,r){"use strict";r.r(e);r("DjyN");var n=r("NUBc"),o=r("k1fw"),a=(r("g9YV"),r("wCAj")),i=(r("sPJy"),r("bE4q")),c=r("9og8"),u=r("tJVT"),l=r("PpiC"),s=r("q1tI"),f=r.n(s),h=r("Ty5D"),d=r("55Ip"),p=r("9kvl"),y=r("m3rI"),v=r("ErOA");function g(){g=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(S){u=function(t,e,r){return t[e]=r}}function l(t,e,r,o){var a=e&&e.prototype instanceof h?e:h,i=Object.create(a.prototype),c=new O(o||[]);return n(i,"_invoke",{value:E(t,r,c)}),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(S){return{type:"throw",arg:S}}}t.wrap=l;var f={};function h(){}function d(){}function p(){}var y={};u(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(k([])));m&&m!==e&&r.call(m,a)&&(y=m);var w=p.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,a,i,c){var u=s(t[n],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(f).then((function(t){l.value=t,i(l)}),(function(t){return o("throw",t,i,c)}))}c(u.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function E(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return I()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=s(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function j(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return d.prototype=p,n(w,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},b(x.prototype),u(x.prototype,i,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(l(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(w),u(w,c,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var m=function(t){var e=t.user,r=(t.globalSetting,t.dispatch,Object(l["a"])(t,["user","globalSetting","dispatch"]),e.userInfo),p=(r.admin,r.business,r.is_teacher,r.professional_certification,r.identity,Object(s["useState"])([])),m=Object(u["a"])(p,2),w=m[0],b=m[1],x=Object(h["m"])(),E=Object(s["useState"])(),j=Object(u["a"])(E,2),_=(j[0],j[1],Object(s["useState"])({page:1,per_page:10})),L=Object(u["a"])(_,2),O=L[0],k=L[1];function I(){return S.apply(this,arguments)}function S(){return S=Object(c["a"])(g().mark((function t(){var e;return g().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(v["a"])("/api/jobs/".concat(null===x||void 0===x?void 0:x.eid,"/applyed_users.json"),{method:"get",params:Object(o["a"])({},x)});case 2:e=t.sent,b(e);case 4:case"end":return t.stop()}}),t)}))),S.apply(this,arguments)}return Object(s["useEffect"])((function(){I()}),[]),f.a.createElement("div",null,f.a.createElement("div",null,f.a.createElement("div",{style:{margin:"0 auto",width:1200,display:"flex",paddingTop:20,justifyContent:"space-between"}},f.a.createElement(i["a"],{separator:">"},[f.a.createElement(d["Link"],{to:"/recruitment"},"\u804c\u4f4d\u7ba1\u7406"),"\u6295\u9012\u8be6\u60c5"].map((function(t){return f.a.createElement(i["a"].Item,null,t)})))),f.a.createElement("div",{style:{margin:"0 auto",width:1200,display:"flex",justifyContent:"space-between",alignItems:"center",padding:30,marginTop:20,background:"#fff"}},f.a.createElement(a["a"],{dataSource:w.data,pagination:!1,style:{width:"100%"},columns:[{title:"\u59d3\u540d",dataIndex:"user_name",key:"user_name",render:function(t,e){return t}},{title:"\u804c\u4f4d\u540d\u79f0",dataIndex:"job_name",key:"job_name",render:function(t,e){return t}},{title:"\u6027\u522b",dataIndex:"sex",key:"sex",render:function(t,e){return t}},{title:"\u5e74\u9f84",dataIndex:"age",key:"age",render:function(t,e){return t}},{title:"\u5de5\u4f5c\u5e74\u9650",dataIndex:"work_year",key:"work_year",render:function(t,e){return t}},{title:"\u6587\u5316\u7a0b\u5ea6",dataIndex:"last_edu_1",key:"last_edu_1",render:function(t,e){return t}},{title:"\u6295\u9012\u65f6\u95f4",dataIndex:"created_at",key:"created_at",render:function(t,e){return t}},{title:"\u64cd\u4f5c",dataIndex:"id",key:"id",render:function(t,e){return f.a.createElement("div",null,f.a.createElement("a",{href:"/recruitment/resumedetails?id=".concat(t)},"\u67e5\u770b"),(null===e||void 0===e?void 0:e.attachment_url)?f.a.createElement("a",{style:{marginLeft:20},href:"".concat(y["a"].API_SERVER).concat(null===e||void 0===e?void 0:e.attachment_url),download:!0},"\u4e0b\u8f7d\u7b80\u5386"):f.a.createElement("span",{style:{marginLeft:20,color:"#b1bacd"}},"\u6682\u65e0\u9644\u4ef6\u7b80\u5386"))}}]}),f.a.createElement(n["a"],{total:null===w||void 0===w?void 0:w.count,pageSize:10,hideOnSinglePage:!0,current:null===w||void 0===w?void 0:w.page,onChange:function(t){O.page=t,k(Object(o["a"])({},O)),I()}}))))};e["default"]=Object(p["a"])((function(t){var e=t.globalSetting,r=t.user;return{user:r,globalSetting:e}}))(m)}}]); |