(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9d672850"],{"0d7a":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var a=n("c1df"),r=n.n(a),i="DD/MM/YYYY";function o(t){return t?r()(t).format(i):""}},"20d6":function(t,e,n){"use strict";var a=n("5ca1"),r=n("0a49")(6),i="findIndex",o=!0;i in[]&&Array(1)[i](function(){o=!1}),a(a.P+a.F*o,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},4573:function(t,e,n){},4576:function(t,e,n){"use strict";var a=n("c82c"),r=n.n(a);r.a},"5dbc":function(t,e,n){var a=n("d3f4"),r=n("8b97").set;t.exports=function(t,e,n){var i,o=e.constructor;return o!==n&&"function"==typeof o&&(i=o.prototype)!==n.prototype&&a(i)&&r&&r(t,i),t}},"85ca":function(t,e,n){"use strict";var a=n("add7"),r=n.n(a);r.a},"8b97":function(t,e,n){var a=n("d3f4"),r=n("cb7c"),i=function(t,e){if(r(t),!a(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,a){try{a=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),a(t,[]),e=!(t instanceof Array)}catch(r){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:a(t,n),t}}({},!1):void 0),check:i}},"9e82":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-layout-content",{staticClass:"CandidateList"},[n("a-spin",{attrs:{spinning:t.isLoading}},[n("a-breadcrumb",{staticStyle:{margin:"16px 24px"}},[n("a-breadcrumb-item",[t._v("Trang chủ")]),n("a-breadcrumb-item",[t._v("Danh sách ứng viên")])],1),n("div",{staticClass:"content"},[n("form-filter",{on:{"click-filter":t.handleFilter,"click-export":t.handleClickExport}}),n("table-candidate",{attrs:{page:t.page,pageSize:t.pageSize,candidateData:t.candidate},on:{"change-page":t.handleChangePage}})],1)],1)],1)},r=[],i=(n("8e6e"),n("456d"),n("7f7f"),n("ac6a"),n("96cf"),n("3b8d")),o=n("bd86"),c=n("2f62");function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var l=n("85f2"),u=n.n(l);function d(t,e){for(var n=0;n=0},handleReset:function(){this.form.resetFields(),this.roundSelected={0:"ALL",1:"ALL",2:"ALL"},this.$emit("click-filter",{})},checkDisableSelectRound:function(t){var e=this;if(0==t)return!1;if("ALL"==this.roundSelected[0]||this.listRound[0]&&0==this.listRound[0].statuses.find(function(t){return t.id==e.roundSelected[0]}).passed)return!0;var n=this.roundSelected[t-1],a=this.listRound[t-1]||{statuses:[]},r=a.statuses.find(function(t){return t.id==n});return!r||!r.passed},handleClickExport:function(){this.$emit("click-export",this.currentFilter)}}},S=x,_=(n("85ca"),n("2877")),w=Object(_["a"])(S,g,b,!1,null,null,null),k=w.exports,D=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content-table-cadidate"},[n("div",{staticClass:"table-cadidate"},[n("a-table",{attrs:{size:"middle",rowKey:"id",columns:t.columns,dataSource:t.cadidates,bordered:"",pagination:{current:t.page,total:t.candidateData.total,pageSize:t.pageSize,pageSizeOptions:["10","50","100"],showSizeChanger:!0,size:"large"}},on:{change:t.handleChangePage},scopedSlots:t._u([{key:"index",fn:function(e,a,r){return n("span",{},[t._v("\n "+t._s(r+1)+"\n ")])}},{key:"gender",fn:function(e){return n("span",{},[t._v(t._s("MALE"==e?"Nam":"FEMALE"==e?"Nữ":"Khác"))])}},{key:"idDateCreated",fn:function(e,a){return n("span",{},[t._v("\n "+t._s(t.formatDate(a.idDateCreated))+"\n ")])}},{key:"birthDay",fn:function(e,a){return n("span",{},[t._v("\n "+t._s(t.formatDate(a.birthDay))+"\n ")])}},{key:"history",fn:function(e,a){return n("span",{},[n("a",{staticClass:"ant-dropdown-link",on:{click:function(e){return t.handleViewHistory(a.id)}}},[t._v("\n Chi tiết\n ")])])}},{key:"status",fn:function(e,a){return n("span",{},[t._v("\n "+t._s(t.getStatus(a))+"\n ")])}},{key:"action",fn:function(e){return n("span",{},[n("a",{staticClass:"ant-dropdown-link",on:{click:function(n){return t.handleEdit(e.id)}}},[t._v("\n Sửa "),n("a-icon",{attrs:{type:"edit"}})],1)])}}])})],1)])},j=[],C=(n("c5f6"),n("0d7a")),N=n("9fb0");function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,a)}return n}function E(t){for(var e=1;e0&&void 0!==r[0]?r[0]:{},this.isLoading=!0,t.prev=2,n=z({},e,{page:this.page-1,pageSize:this.pageSize}),t.next=6,this.fetchCandidate(n);case 6:t.next=13;break;case 8:t.prev=8,t.t0=t["catch"](2),a=t.t0.response.data,console.log(a.message),this.$error({title:"Lấy thông tin thất bại!",okText:"OK",centered:!0,onOk:function(){}});case 13:this.isLoading=!1;case 14:case"end":return t.stop()}},t,this,[[2,8]])}));function e(){return t.apply(this,arguments)}return e}(),fetchDataExport:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(){var e,n,a=arguments;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},this.isLoading=!0,t.prev=2,t.next=5,this.fetchCandidateExport(e);case 5:t.next=12;break;case 7:t.prev=7,t.t0=t["catch"](2),n=t.t0.response.data,console.log(n.message),this.$error({title:"Export hồ sơ thất bại",okText:"OK",centered:!0,onOk:function(){}});case 12:case"end":return t.stop()}},t,this,[[2,7]])}));function e(){return t.apply(this,arguments)}return e}(),handleFilter:function(t){this.page=1,this.pageSize=10,this.fetchData(t)},handleChangePage:function(t){this.page=t.current,this.pageSize=t.pageSize,this.fetchData()},formatDataExport:function(){var t=this.candidate.candidateExport,e=[];return t.forEach(function(t,n){var a=[];a.push("".concat(n+1)),a.push(t.staffType&&t.staffType.name||""),a.push(t.fullName||""),a.push("MALE"==t.gender?"Nam":"Nữ"),a.push(t.idNumber||""),a.push(t.idDateCreated||""),a.push(t.idCity||""),a.push(t.birthDay||""),a.push(t.phone?"".concat(t.phone):""),a.push(t.address||""),a.push(t.city.name||""),a.push(t.source&&t.source.name||""),a.push(t.isPassed?"Đạt":"Không đạt"),a.push(t.adminNote||""),e.push(a)}),e},handleClickExport:function(){var t=Object(i["a"])(regeneratorRuntime.mark(function t(e){var n,a,r,i,o,c;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.fetchDataExport(e);case 2:n=m()().format("YYYYMMDD"),a="data_".concat(n,".csv"),r=M.join(","),i=this.formatDataExport(),o=i.map(function(t){return t.join(",")}).join("\n"),c="".concat(r,"\n").concat(o),h.downloadCSVFile(a,c),this.isLoading=!1;case 10:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}()})},K=$,Y=(n("d872"),Object(_["a"])(K,a,r,!1,null,"1bcb073a",null));e["default"]=Y.exports},aa77:function(t,e,n){var a=n("5ca1"),r=n("be13"),i=n("79e5"),o=n("fdef"),c="["+o+"]",s="​…",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),d=function(t,e,n){var r={},c=i(function(){return!!o[t]()||s[t]()!=s}),l=r[t]=c?e(f):o[t];n&&(r[n]=l),a(a.P+a.F*c,"String",r)},f=d.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},add7:function(t,e,n){},c5f6:function(t,e,n){"use strict";var a=n("7726"),r=n("69a8"),i=n("2d95"),o=n("5dbc"),c=n("6a99"),s=n("79e5"),l=n("9093").f,u=n("11e9").f,d=n("86cc").f,f=n("aa77").trim,p="Number",h=a[p],v=h,m=h.prototype,g=i(n("2aeb")(m))==p,b="trim"in String.prototype,y=function(t){var e=c(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():f(e,3);var n,a,r,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:a=2,r=49;break;case 79:case 111:a=8,r=55;break;default:return+e}for(var o,s=e.slice(2),l=0,u=s.length;lr)return NaN;return parseInt(s,a)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof h&&(g?s(function(){m.valueOf.call(n)}):i(n)!=p)?o(new v(y(e)),n,h):y(e)};for(var L,O=n("9e1e")?l(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;O.length>x;x++)r(v,L=O[x])&&!r(h,L)&&d(h,L,u(v,L));h.prototype=m,m.constructor=h,n("2aba")(a,p,h)}},c82c:function(t,e,n){},d872:function(t,e,n){"use strict";var a=n("4573"),r=n.n(a);r.a},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]); //# sourceMappingURL=chunk-9d672850.ccc6d0ba.js.map