"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8807,596],{33867:function(Ce,J,r){r.d(J,{iK:function(){return re},zc:function(){return ue}});var re=function(i){return i[i.SUCCESS=200]="SUCCESS",i[i.ERROR=-1]="ERROR",i[i.TIMEOUT=401]="TIMEOUT",i.TYPE="success",i}({}),P=function(i){return i.GET="GET",i.POST="POST",i.PUT="PUT",i.DELETE="DELETE",i}({}),ue=function(i){return i.JSON="application/json;charset=UTF-8",i.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",i.FORM_DATA="multipart/form-data;charset=UTF-8",i}({})},37404:function(Ce,J,r){r.r(J),r.d(J,{default:function(){return ct}});var re=r(19632),P=r.n(re),ue=r(97857),i=r.n(ue),pe=r(15009),y=r.n(pe),k=r(99289),w=r.n(k),oe=r(64599),ye=r.n(oe),ae=r(5574),v=r.n(ae),g=r(67294),Y=r(60960),I=r(77569),m=r(2453),o=r(4393),h=r(71230),p=r(15746),j=r(68997),d=r(78957),c=r(83622),D=r(25278),S=r(34041),z=r(66309),Z=r(74330),A=r(98423),q=r(8745),E=r(93967),H=r.n(E),L=r(50344),xe=r(87263),C=r(53124);const{Option:R}=S.default;function De(le){return(le==null?void 0:le.type)&&(le.type.isSelectOption||le.type.isSelectOptGroup)}const $e=(le,Ie)=>{var he,de;const{prefixCls:mn,className:nn,popupClassName:tn,dropdownClassName:x,children:se,dataSource:Ne,dropdownStyle:rn,dropdownRender:ze,popupRender:me,onDropdownVisibleChange:vn,onOpenChange:an,styles:N,classNames:W}=le,ce=(0,L.Z)(se),be=((he=N==null?void 0:N.popup)===null||he===void 0?void 0:he.root)||rn,Me=((de=W==null?void 0:W.popup)===null||de===void 0?void 0:de.root)||tn||x,Oe=me||ze,Ue=an||vn;let Pe;ce.length===1&&g.isValidElement(ce[0])&&!De(ce[0])&&([Pe]=ce);const He=Pe?()=>Pe:void 0;let _;ce.length&&De(ce[0])?_=se:_=Ne?Ne.map(U=>{if(g.isValidElement(U))return U;switch(typeof U){case"string":return g.createElement(R,{key:U,value:U},U);case"object":{const{value:Ee}=U;return g.createElement(R,{key:Ee,value:Ee},U.text)}default:return}}):[];const{getPrefixCls:_e}=g.useContext(C.E_),Ge=_e("select",mn),[$]=(0,xe.Cn)("SelectLike",be==null?void 0:be.zIndex);return g.createElement(S.default,Object.assign({ref:Ie,suffixIcon:null},(0,A.Z)(le,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:Ge,classNames:{popup:{root:Me},root:W==null?void 0:W.root},styles:{popup:{root:Object.assign(Object.assign({},be),{zIndex:$})},root:N==null?void 0:N.root},className:H()(`${Ge}-auto-complete`,nn),mode:S.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:Oe,onOpenChange:Ue,getInputElement:He}),_)};var Ae=g.forwardRef($e);const{Option:sn}=S.default,un=(0,q.Z)(Ae,"dropdownAlign",le=>(0,A.Z)(le,["visible"])),Ze=Ae;Ze.Option=sn,Ze._InternalPanelDoNotUseOrYouWillBeFired=un;var on=Ze,dn=r(29021),Be=r(2487),cn=r(83062),ne=r(87547),K=r(86548),pn=r(28548),je=r(33862),F=r(24969),Le=r(63606),We=r(48689),Je=r(93983),fn=r(84937),En=r(30596),Xe=r(17788),X=r(76772),e=r(85893),Qe=function(Ie){var he=Ie.open,de=Ie.onOk,mn=Ie.onCancel,nn=Ie.value,tn=(0,g.useState)(!1),x=v()(tn,2),se=x[0],Ne=x[1],rn=(0,g.useState)([]),ze=v()(rn,2),me=ze[0],vn=ze[1],an=(0,g.useState)(""),N=v()(an,2),W=N[0],ce=N[1],be=(0,g.useState)([]),Me=v()(be,2),Oe=Me[0],Ue=Me[1],Pe=(0,g.useState)(null),He=v()(Pe,2),_=He[0],_e=He[1],Ge=(0,g.useState)(null),$=v()(Ge,2),U=$[0],Ee=$[1],Dn=(0,g.useState)(nn||null),Zn=v()(Dn,2),G=Zn[0],Fn=Zn[1];(0,g.useEffect)(function(){he&&(Ne(!0),(0,X.request)("/api/app/common/jobTitle/treeselect").then(function(b){vn(b.data||[]),Ue(b.data||[]),_e(null),Ee(null),Fn(nn||null),ce("")}).catch(function(){return m.ZP.error("\u52A0\u8F7D\u5C97\u4F4D\u6570\u636E\u5931\u8D25")}).finally(function(){return Ne(!1)}))},[he]),(0,g.useEffect)(function(){if(W&&W.length>0){var b=function(ve){return ve.map(function(te){if(!te.children)return null;var ge=te.children.map(function(Q){if(!Q.children)return null;var Ve=Q.children.filter(function(xn){return xn.label.includes(W)});return Ve.length>0?i()(i()({},Q),{},{children:Ve}):null}).filter(Boolean);return ge.length>0?i()(i()({},te),{},{children:ge}):null}).filter(Boolean)};Ue(b(me)),_e(null),Ee(null)}else Ue(me)},[W,me]);var Tn=function(M){_e(M),Ee(null)},$n=function(M){Ee(M.id===U?null:M.id)},gn=function(M){Fn({id:M.id,label:M.label})},An=function(){G?de(G):m.ZP.warning("\u8BF7\u9009\u62E9\u5C97\u4F4D")},yn=(_==null?void 0:_.children)||[],Un=function(){if(!W)return[];var M=[];return me.forEach(function(ve){var te;(te=ve.children)===null||te===void 0||te.forEach(function(ge){if(ge.children){var Q=ge.children.filter(function(Ve){return Ve.label.includes(W)});Q.length>0&&M.push({cat:ve,sub:ge,jobs:Q})}})}),M};return(0,e.jsx)(Xe.Z,{open:he,width:800,onCancel:mn,onOk:An,title:"\u8BF7\u9009\u62E9\u5C97\u4F4D\u540D\u79F0",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,e.jsxs)(Z.Z,{spinning:se,children:[(0,e.jsx)(D.Z,{placeholder:"\u8BF7\u8F93\u5165\u804C\u4F4D\u5173\u952E\u8BCD",allowClear:!0,value:W,onChange:function(M){return ce(M.target.value)},style:{marginBottom:10,width:280}}),(0,e.jsxs)("div",{style:{display:"flex",minHeight:410,maxHeight:520,overflow:"hidden"},children:[(0,e.jsx)("div",{style:{width:180,borderRight:"1px solid #f0f0f0",overflowY:"auto",paddingTop:2,maxHeight:500},children:Oe.map(function(b){return(0,e.jsx)("div",{style:{padding:"10px 16px",cursor:"pointer",background:(_==null?void 0:_.id)===b.id?"#e6f7ff":"",fontWeight:(_==null?void 0:_.id)===b.id?"bold":void 0},onClick:function(){return Tn(b)},children:b.label},b.id)})}),(0,e.jsx)("div",{style:{flex:1,padding:"16px 20px 10px 20px",minHeight:380,maxHeight:500,overflowY:"auto"},children:W?function(){var b=Un();return b.length===0?(0,e.jsx)("div",{style:{color:"#bbb",textAlign:"center"},children:"\u65E0\u76F8\u5173\u5C97\u4F4D"}):b.map(function(M){var ve=M.cat,te=M.sub,ge=M.jobs;return(0,e.jsxs)("div",{style:{marginBottom:16},children:[(0,e.jsxs)("div",{style:{fontWeight:600,margin:"4px 0"},children:[ve.label," / ",te.label]}),(0,e.jsx)("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"8px 6px",marginTop:8},children:ge.map(function(Q){return(0,e.jsx)("div",{style:{padding:"6px 18px",borderRadius:16,background:(G==null?void 0:G.id)===Q.id?"#1890ff":"#f6f6f6",color:(G==null?void 0:G.id)===Q.id?"#fff":"#222",cursor:"pointer",whiteSpace:"nowrap",fontSize:14},onClick:function(){return gn(Q)},children:Q.label},Q.id)})})]},ve.id+"-"+te.id)})}():_?(0,e.jsx)("div",{children:yn.length===0?(0,e.jsx)("div",{style:{color:"#bbb",textAlign:"center"},children:"\u6682\u65E0\u5B50\u5206\u7C7B"}):(0,e.jsx)("div",{style:{overflow:"visible",maxWidth:"100%"},children:(0,e.jsx)("div",{style:{display:"flex",flexWrap:"wrap",paddingBottom:12,gap:"0 36px"},children:yn.map(function(b){return(0,e.jsxs)("div",{style:{marginBottom:16,minWidth:150},children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",cursor:b.children?"pointer":"default",fontWeight:600,padding:"4px 0",color:U===b.id?"#1890ff":"#333"},onClick:function(){return b.children&&$n(b)},children:[(0,e.jsx)("span",{children:b.label}),b.children&&(0,e.jsx)("span",{style:{fontSize:20,color:"#999",marginLeft:4,fontWeight:"bold"},children:U===b.id?"\uFF0D":"\uFF0B"})]}),U===b.id&&b.children&&(0,e.jsx)("div",{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",gap:"8px 6px",marginTop:8},children:b.children.map(function(M){return(0,e.jsx)("div",{style:{padding:"6px 18px",borderRadius:16,background:(G==null?void 0:G.id)===M.id?"#1890ff":"#f6f6f6",color:(G==null?void 0:G.id)===M.id?"#fff":"#222",cursor:"pointer",whiteSpace:"nowrap",fontSize:14},onClick:function(){return gn(M)},children:M.label},M.id)})})]},b.id)})})})}):(0,e.jsx)("div",{style:{color:"#bbb",padding:"100px 0",textAlign:"center"},children:"\u8BF7\u5148\u9009\u62E9\u5DE6\u4FA7\u6240\u5C5E\u884C\u4E1A\u7C7B\u522B"})})]})]})})},Fe=Qe,qe=r(27484),ie=r.n(qe),Se=r(33852),Ye=r(72224),en=r(82816),Te=r(92982),hn=r(23089);ie().locale("zh-cn");var Cn=Y.Z.Title,fe=Y.Z.Text,dt=function(){var Ie=g.useState({}),he=v()(Ie,2),de=he[0],mn=he[1],nn=g.useState({userId:null,name:"",gender:"",age:"",education:"",phone:"",avatar:"",desiredSalary:"",desiredCity:"",desiredTitle:"",birthDate:null,politicalAffiliation:"",nation:"",idCard:"",salaryMin:"",salaryMax:"",workExperience:""}),tn=v()(nn,2),x=tn[0],se=tn[1],Ne=g.useState(!1),rn=v()(Ne,2),ze=rn[0],me=rn[1],vn=g.useState({desiredSalary:"",desiredCity:"",desiredTitle:""}),an=v()(vn,2),N=an[0],W=an[1],ce=g.useState([]),be=v()(ce,2),Me=be[0],Oe=be[1],Ue=g.useState(!1),Pe=v()(Ue,2),He=Pe[0],_=Pe[1],_e=g.useState({company:"",jobId:void 0,jobTitle:"",period:null,duties:""}),Ge=v()(_e,2),$=Ge[0],U=Ge[1],Ee=g.useState(!1),Dn=v()(Ee,2),Zn=Dn[0],G=Dn[1],Fn=g.useState(!1),Tn=v()(Fn,2),$n=Tn[0],gn=Tn[1],An=g.useState(!1),yn=v()(An,2),Un=yn[0],b=yn[1],M=I.Z.useForm(),ve=v()(M,1),te=ve[0],ge=g.useState(!1),Q=v()(ge,2),Ve=Q[0],xn=Q[1],pt=g.useState({}),Hn=v()(pt,2),B=Hn[0],In=Hn[1],ft=g.useState([]),_n=v()(ft,2),_t=_n[0],ht=_n[1],mt=g.useState({}),Gn=v()(mt,2),ln=Gn[0],vt=Gn[1],gt=g.useState(null),Vn=v()(gt,2),Mn=Vn[0],Kn=Vn[1],yt=g.useState(null),Jn=v()(yt,2),On=Jn[0],Bn=Jn[1],xt=g.useState({company:"",jobId:void 0,jobTitle:"",period:null,duties:""}),Xn=v()(xt,2),V=Xn[0],jn=Xn[1],jt=g.useState(!1),Qn=v()(jt,2),St=Qn[0],Ln=Qn[1],qn=["\u521D\u7EA7","\u4E2D\u7EA7","\u9AD8\u7EA7"],bt=g.useState([]),et=v()(bt,2),ke=et[0],Pn=et[1],Et=g.useState(null),nt=v()(Et,2),Sn=nt[0],Wn=nt[1],Ct=g.useState(!1),tt=v()(Ct,2),kn=tt[0],Yn=tt[1],Dt=g.useState({name:"",level:"\u521D\u7EA7"}),rt=v()(Dt,2),ee=rt[0],Re=rt[1],Zt=g.useState([]),at=v()(Zt,2),it=at[0],Rn=at[1],Ft=g.useState(!1),lt=v()(Ft,2),st=lt[0],ut=lt[1],Nn=function(n,t){var a;if(!t||!de[n])return t||"";var f=de[n];return((a=f[t])===null||a===void 0?void 0:a.text)||t},Gt=function l(n,t){var a=ye()(n),f;try{for(a.s();!(f=a.n()).done;){var u=f.value;if(u.id===Number(t))return u.label;if(u.children&&u.children.length>0){var s=l(u.children,t);if(s)return s}}}catch(O){a.e(O)}finally{a.f()}return null},Tt=function l(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.forEach(function(a){t[a.id]=a.label,a.children&&a.children.length>0&&l(a.children,t)}),t},It=function(){var l=w()(y()().mark(function n(t){var a,f;return y()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!(!t||t.trim()==="")){s.next=3;break}return Rn([]),s.abrupt("return");case 3:return ut(!0),s.prev=4,s.next=7,(0,X.request)("/api/cms/dict/jobCategory",{method:"GET",params:{name:t}});case 7:a=s.sent,console.log("\u6280\u80FD\u67E5\u8BE2\u63A5\u53E3\u8FD4\u56DE\u6570\u636E\uFF1A",a),a&&a.code===200&&a.data?(f=Array.isArray(a.data)?a.data.map(function(O){return{value:O.name||O.label||O.value||"",label:O.name||O.label||O.value||""}}):[],Rn(f)):Rn([]),s.next=16;break;case 12:s.prev=12,s.t0=s.catch(4),console.error("\u6280\u80FD\u67E5\u8BE2\u5931\u8D25\uFF1A",s.t0),Rn([]);case 16:return s.prev=16,ut(!1),s.finish(16);case 19:case"end":return s.stop()}},n,null,[[4,12,16,19]])}));return function(t){return l.apply(this,arguments)}}(),ot=g.useMemo(function(){return(0,hn.Ds)(It,300)},[]);g.useEffect(function(){Promise.all([(0,Te.pX)("sex",!1,!0),(0,Te.pX)("education",!1,!0),(0,Te.pX)("area",!1,!0),(0,Te.pX)("age",!1,!0)]).then(function(l){var n=v()(l,4),t=n[0],a=n[1],f=n[2],u=n[3];mn({sex:t,education:a,area:f,age:u})}),(0,X.request)("/api/app/common/jobTitle/treeselect",{method:"GET"}).then(function(l){if(l&&l.code===200&&l.data){ht(l.data);var n=Tt(l.data);vt(n)}}).catch(function(l){console.error("\u83B7\u53D6jobTitle\u6811\u5F62\u6570\u636E\u5931\u8D25\uFF1A",l)}),(0,X.request)("/api/cms/appUser/getUserInfo",{method:"GET"}).then(function(l){if(l&&l.code===200&&l.data){var n=l.data;if(n.userId&&localStorage.setItem("resume_userId",String(n.userId)),se({userId:n.userId||null,name:n.name||"",gender:n.sex==="0"?"\u7537":n.sex==="1"?"\u5973":"",age:n.age||"",education:n.education||"",phone:n.phone||"",avatar:n.avatar||"",desiredSalary:n.salaryMin&&n.salaryMax?"".concat(n.salaryMin,"-").concat(n.salaryMax):"",desiredCity:n.area||"",desiredTitle:n.jobTitle||n.field_19||"",birthDate:n.birthDate,politicalAffiliation:n.politicalAffiliation||"",nation:n.nation||"",idCard:n.idCard||"",salaryMin:n.salaryMin||"",salaryMax:n.salaryMax||"",workExperience:n.workExperience||""}),W({desiredSalary:n.salaryMin&&n.salaryMax?"".concat(n.salaryMin,"-").concat(n.salaryMax):"",desiredCity:n.area||"",desiredTitle:n.jobTitle||n.field_19||""}),n.jobTitleId){var t=Number(n.jobTitleId);Kn(t);var a=ln[t]||n.jobTitle||n.field_19||"";In({id:t,label:a}),a&&se(function(s){return i()(i()({},s),{},{desiredTitle:a})})}if(n.experiencesList&&Array.isArray(n.experiencesList)){var f=n.experiencesList.map(function(s){return{id:s.id,company:s.companyName||"",title:s.position||"",period:s.startDate&&s.endDate?"".concat(s.startDate," - ").concat(s.endDate):"",duties:s.description?s.description.split(` `).filter(function(O){return O.trim()}):[],startDate:s.startDate,endDate:s.endDate}});Oe(f)}if(n.appSkillsList&&Array.isArray(n.appSkillsList)){var u=n.appSkillsList.filter(function(s){return s.name}).map(function(s){return{id:s.id,name:s.name||"",level:s.levels||"\u521D\u7EA7"}});Pn(u)}}}).catch(function(l){console.error("getUserInfo \u8C03\u7528\u5931\u8D25\uFF1A",l),m.ZP.error("\u83B7\u53D6\u7B80\u5386\u4FE1\u606F\u5931\u8D25")})},[]),g.useEffect(function(){if(Mn&&Object.keys(ln).length>0){var l=ln[Mn];l&&(In(function(n){return i()(i()({},n),{},{id:Mn,label:l})}),se(function(n){return i()(i()({},n),{},{desiredTitle:l})}))}},[ln,Mn]);var Mt=function(n){n==="\u6C42\u804C\u671F\u671B"?(te.setFieldsValue({desiredSalary:x.desiredSalary,desiredCity:x.desiredCity,desiredTitle:x.desiredTitle}),b(!0)):m.ZP.info("\u7F16\u8F91 ".concat(n))},Vt=function(){var l=w()(y()().mark(function n(){var t;return y()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,f.next=3,te.validateFields();case 3:t=f.sent,se(function(u){return i()(i()({},u),t)}),b(!1),f.next=10;break;case 8:f.prev=8,f.t0=f.catch(0);case 10:case"end":return f.stop()}},n,null,[[0,8]])}));return function(){return l.apply(this,arguments)}}(),Kt=function(){return b(!1)},Ot=function(){_(!0),U({company:"",jobId:void 0,jobTitle:"",period:[],duties:""})},Pt=function(n){var t,a=Me.find(function(f){return f.id===n});a&&(jn({company:a.company,jobId:void 0,jobTitle:a.title,period:((t=a.period)===null||t===void 0?void 0:t.split(" - ").length)===2?[ie()(a.period.split(" - ")[0],"YYYY\u5E74MM\u6708"),ie()(a.period.split(" - ")[1],"YYYY\u5E74MM\u6708")]:null,duties:Array.isArray(a.duties)?a.duties.join(` `):a.duties}),Bn(n))},kt=function(){var l=w()(y()().mark(function n(t){var a;return y()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,(0,X.request)("/api/cms/userworkexperiences/"+t,{method:"DELETE"});case 3:a=u.sent,a&&a.code===200?(m.ZP.success("\u5220\u9664\u6210\u529F"),Oe(function(s){return s.filter(function(O){return O.id!==t})})):m.ZP.error(a&&a.msg||"\u5220\u9664\u5931\u8D25"),u.next=10;break;case 7:u.prev=7,u.t0=u.catch(0),m.ZP.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 10:case"end":return u.stop()}},n,null,[[0,7]])}));return function(t){return l.apply(this,arguments)}}(),Rt=function(){W({desiredSalary:x.desiredSalary,desiredCity:x.desiredCity,desiredTitle:x.desiredTitle}),(!B||!B.id)&&In({}),me(!0)},wt=function(){me(!1)},$t=function(){var l=w()(y()().mark(function n(){var t,a;return y()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(!x.salaryMin||!x.salaryMax)){u.next=3;break}return m.ZP.warning("\u8BF7\u586B\u5199\u671F\u671B\u85AA\u8D44"),u.abrupt("return");case 3:if(N.desiredCity){u.next=6;break}return m.ZP.warning("\u8BF7\u9009\u62E9\u671F\u671B\u5DE5\u4F5C\u5730"),u.abrupt("return");case 6:if(!(!B||!B.id)){u.next=9;break}return m.ZP.warning("\u8BF7\u9009\u62E9\u6C42\u804C\u5C97\u4F4D"),u.abrupt("return");case 9:if(t=localStorage.getItem("resume_userId")||x.userId,t){u.next=13;break}return m.ZP.warning("\u65E0\u6CD5\u83B7\u53D6\u7528\u6237ID\uFF0C\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u8BD5"),u.abrupt("return");case 13:return u.prev=13,u.next=16,(0,X.request)("/api/cms/appUser",{method:"PUT",data:{userId:t,experience:"".concat(x.salaryMin,"-").concat(x.salaryMax),area:N.desiredCity,jobTitleId:B.id}});case 16:a=u.sent,a&&a.code===200?(m.ZP.success("\u4FDD\u5B58\u6210\u529F"),B&&B.id&&Kn(B.id),se(function(s){return i()(i()({},s),{},{desiredSalary:"".concat(x.salaryMin,"-").concat(x.salaryMax),desiredCity:N.desiredCity,desiredTitle:(B==null?void 0:B.label)||N.desiredTitle})}),W({desiredSalary:"".concat(x.salaryMin,"-").concat(x.salaryMax),desiredCity:N.desiredCity,desiredTitle:(B==null?void 0:B.label)||N.desiredTitle}),me(!1)):m.ZP.error(a&&a.msg||"\u4FDD\u5B58\u5931\u8D25"),u.next=23;break;case 20:u.prev=20,u.t0=u.catch(13),m.ZP.error("\u4FDD\u5B58\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 23:case"end":return u.stop()}},n,null,[[13,20]])}));return function(){return l.apply(this,arguments)}}(),At=function(){var l=w()(y()().mark(function n(){var t,a,f,u,s,O,we;return y()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!(!$.company||!$.jobTitle||!((t=$.period)!==null&&t!==void 0&&t.length)||!$.duties)){T.next=3;break}return m.ZP.warning("\u8BF7\u586B\u5199\u5B8C\u6574\u7ECF\u5386\u4FE1\u606F"),T.abrupt("return");case 3:return gn(!0),u={companyName:$.company,position:$.jobTitle,startDate:(a=$.period[0])===null||a===void 0?void 0:a.format("YYYY-MM"),endDate:(f=$.period[1])===null||f===void 0?void 0:f.format("YYYY-MM"),description:$.duties},T.prev=5,T.next=8,(0,en.iN)(u);case 8:we=((s=$.period[0])===null||s===void 0?void 0:s.format("YYYY\u5E74MM\u6708"))+" - "+((O=$.period[1])===null||O===void 0?void 0:O.format("YYYY\u5E74MM\u6708")),Oe(function(wn){return[{id:Math.max.apply(Math,[0].concat(P()(wn.map(function(bn){return bn.id}))))+1,company:$.company,title:$.jobTitle,period:we,duties:$.duties.split(` `)}].concat(P()(wn))}),_(!1),m.ZP.success("\u6DFB\u52A0\u6210\u529F"),T.next=17;break;case 14:T.prev=14,T.t0=T.catch(5),m.ZP.error("\u6DFB\u52A0\u5931\u8D25");case 17:gn(!1);case 18:case"end":return T.stop()}},n,null,[[5,14]])}));return function(){return l.apply(this,arguments)}}(),Bt=function(){_(!1)},Lt=function(){var l=w()(y()().mark(function n(){var t,a,f,u,s,O,we;return y()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!(!V.company||!V.jobTitle||!((t=V.period)!==null&&t!==void 0&&t.length)||!V.duties)){T.next=3;break}return m.ZP.warning("\u8BF7\u586B\u5199\u5B8C\u6574\u7ECF\u5386\u4FE1\u606F"),T.abrupt("return");case 3:if(On){T.next=6;break}return m.ZP.warning("\u65E0\u6CD5\u83B7\u53D6\u5DE5\u4F5C\u7ECF\u5386ID"),T.abrupt("return");case 6:if(x.userId){T.next=9;break}return m.ZP.warning("\u65E0\u6CD5\u83B7\u53D6\u7528\u6237ID"),T.abrupt("return");case 9:return T.prev=9,T.next=12,(0,X.request)("/api/cms/userworkexperiences",{method:"PUT",data:{id:On,companyName:V.company,position:V.jobTitle||void 0,userId:x.userId,startDate:((a=V.period[0])===null||a===void 0?void 0:a.format("YYYY-MM"))||void 0,endDate:((f=V.period[1])===null||f===void 0?void 0:f.format("YYYY-MM"))||void 0,description:V.duties||void 0}});case 12:u=T.sent,u&&u.code===200?(m.ZP.success("\u4FEE\u6539\u6210\u529F"),we=((s=V.period[0])===null||s===void 0?void 0:s.format("YYYY\u5E74MM\u6708"))+" - "+((O=V.period[1])===null||O===void 0?void 0:O.format("YYYY\u5E74MM\u6708")),Oe(function(wn){return wn.map(function(bn){return bn.id!==On?bn:i()(i()({},bn),{},{company:V.company,title:V.jobTitle,period:we,duties:V.duties.split(` `)})})}),Bn(null)):m.ZP.error(u&&u.msg||"\u4FEE\u6539\u5931\u8D25"),T.next=19;break;case 16:T.prev=16,T.t0=T.catch(9),m.ZP.error("\u4FEE\u6539\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 19:case"end":return T.stop()}},n,null,[[9,16]])}));return function(){return l.apply(this,arguments)}}(),Wt=function(){return Bn(null)},Yt=function(n){Wn(n),Re(ke[n])},Nt=function(){var l=w()(y()().mark(function n(){var t,a;return y()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(ee.name){u.next=3;break}return m.ZP.warning("\u8BF7\u8F93\u5165\u6280\u80FD\u540D\u79F0"),u.abrupt("return");case 3:if(Sn!==null){u.next=5;break}return u.abrupt("return");case 5:if(t=ke[Sn],!(!t||!t.id)){u.next=9;break}return m.ZP.warning("\u65E0\u6CD5\u83B7\u53D6\u6280\u80FDID"),u.abrupt("return");case 9:if(x.userId){u.next=12;break}return m.ZP.warning("\u65E0\u6CD5\u83B7\u53D6\u7528\u6237ID"),u.abrupt("return");case 12:return u.prev=12,u.next=15,(0,X.request)("/api/cms/appskill/edit",{method:"PUT",data:{id:t.id,userId:x.userId,name:ee.name,levels:ee.level}});case 15:a=u.sent,a&&a.code===200?(m.ZP.success("\u4FEE\u6539\u6210\u529F"),Pn(function(s){return s.map(function(O,we){return we===Sn?i()(i()({},O),{},{name:ee.name,level:ee.level}):O})}),Wn(null)):m.ZP.error(a&&a.msg||"\u4FEE\u6539\u5931\u8D25"),u.next=22;break;case 19:u.prev=19,u.t0=u.catch(12),m.ZP.error("\u4FEE\u6539\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 22:case"end":return u.stop()}},n,null,[[12,19]])}));return function(){return l.apply(this,arguments)}}(),zt=function(){var l=w()(y()().mark(function n(t){var a,f;return y()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!(ke.length<=1)){s.next=3;break}return m.ZP.warning("\u81F3\u5C11\u4FDD\u7559\u4E00\u6761\u6280\u80FD"),s.abrupt("return");case 3:if(a=ke[t],!(!a||!a.id)){s.next=7;break}return m.ZP.warning("\u65E0\u6CD5\u83B7\u53D6\u6280\u80FDID"),s.abrupt("return");case 7:return s.prev=7,s.next=10,(0,X.request)("/api/app/appskill/".concat(a.id),{method:"DELETE"});case 10:f=s.sent,f&&f.code===200?(m.ZP.success("\u5220\u9664\u6210\u529F"),Pn(function(O){return O.filter(function(we,zn){return zn!==t})})):m.ZP.error(f&&f.msg||"\u5220\u9664\u5931\u8D25"),s.next=17;break;case 14:s.prev=14,s.t0=s.catch(7),m.ZP.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 17:case"end":return s.stop()}},n,null,[[7,14]])}));return function(t){return l.apply(this,arguments)}}(),Jt=function(){return Wn(null)},Ut=function(){Yn(!0),Re({name:"",level:"\u521D\u7EA7"})},Ht=function(){var l=w()(y()().mark(function n(){var t,a,f;return y()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(ee.name){s.next=3;break}return m.ZP.warning("\u8BF7\u8F93\u5165\u6280\u80FD\u540D\u79F0"),s.abrupt("return");case 3:return s.prev=3,s.next=6,(0,X.request)("/api/cms/appskill/add",{method:"POST",data:{name:ee.name,levels:ee.level}});case 6:t=s.sent,t&&t.code===200?(f={id:(a=t.data)===null||a===void 0?void 0:a.id,name:ee.name,level:ee.level},Pn(function(O){return[].concat(P()(O),[f])}),Yn(!1),m.ZP.success("\u65B0\u589E\u6280\u80FD\u6210\u529F")):m.ZP.error(t&&t.msg||"\u65B0\u589E\u6280\u80FD\u5931\u8D25"),s.next=13;break;case 10:s.prev=10,s.t0=s.catch(3),m.ZP.error("\u65B0\u589E\u6280\u80FD\u5931\u8D25");case 13:case"end":return s.stop()}},n,null,[[3,10]])}));return function(){return l.apply(this,arguments)}}(),Xt=function(){return Yn(!1)};return(0,e.jsxs)("div",{className:"resume-page",children:[(0,e.jsx)(Je.Z,{showSearch:!1,showHotJobs:!1}),(0,e.jsxs)("div",{className:"container",children:[(0,e.jsx)(o.Z,{className:"section card-profile",bordered:!0,children:(0,e.jsxs)(h.Z,{gutter:24,align:"middle",children:[(0,e.jsx)(p.Z,{flex:"64px",children:(0,e.jsx)(j.Z,{size:64,src:x.avatar||fn,icon:(0,e.jsx)(ne.Z,{})})}),(0,e.jsx)(p.Z,{flex:"auto",children:(0,e.jsxs)(d.Z,{direction:"vertical",size:4,children:[(0,e.jsxs)(d.Z,{size:8,align:"center",children:[(0,e.jsx)(Cn,{level:3,className:"name",children:x.name||"\u672A\u586B\u5199"}),(0,e.jsx)(c.ZP,{type:"link",icon:(0,e.jsx)(K.Z,{}),onClick:function(){return Mt("\u4E2A\u4EBA\u4FE1\u606F")}})]}),(0,e.jsxs)(d.Z,{size:"large",wrap:!0,children:[(0,e.jsxs)("span",{children:[x.gender||"",x.age?(Nn("age",x.age)||x.age)+"\u5C81":"",Nn("education",x.education)||x.education]}),x.phone&&(0,e.jsxs)(d.Z,{size:6,children:[(0,e.jsx)(pn.Z,{}),x.phone]})]})]})})]})}),(0,e.jsx)(o.Z,{className:"section",title:(0,e.jsx)("span",{children:"\u6C42\u804C\u671F\u671B"}),extra:ze?(0,e.jsxs)(d.Z,{children:[(0,e.jsx)(c.ZP,{type:"primary",size:"small",onClick:$t,children:"\u786E\u8BA4"}),(0,e.jsx)(c.ZP,{size:"small",onClick:wt,children:"\u53D6\u6D88"})]}):(0,e.jsx)(c.ZP,{type:"link",icon:(0,e.jsx)(K.Z,{}),onClick:Rt}),children:ze?(0,e.jsxs)(I.Z,{layout:"inline",style:{marginTop:12},children:[(0,e.jsx)(I.Z.Item,{label:"\u671F\u671B\u85AA\u8D44",style:{marginRight:24,marginBottom:0},required:!0,children:(0,e.jsxs)(d.Z,{children:[(0,e.jsx)(D.Z,{style:{width:100},placeholder:"\u6700\u4F4E",value:x.salaryMin||"",onChange:function(n){return se(function(t){return i()(i()({},t),{},{salaryMin:n.target.value})})}}),(0,e.jsx)("span",{children:"-"}),(0,e.jsx)(D.Z,{style:{width:100},placeholder:"\u6700\u9AD8",value:x.salaryMax||"",onChange:function(n){return se(function(t){return i()(i()({},t),{},{salaryMax:n.target.value})})}})]})}),(0,e.jsx)(I.Z.Item,{label:"\u671F\u671B\u5DE5\u4F5C\u5730",style:{marginRight:24,marginBottom:0},required:!0,children:(0,e.jsx)(S.default,{style:{width:150},showSearch:!0,value:N.desiredCity,options:de.area?Object.keys(de.area).map(function(l){return{value:l,label:de.area[l].text||l}}):[],onChange:function(n){return W(function(t){return i()(i()({},t),{},{desiredCity:n})})}})}),(0,e.jsx)(I.Z.Item,{label:"\u6C42\u804C\u5C97\u4F4D",style:{marginBottom:0},required:!0,children:(0,e.jsx)(D.Z,{style:{width:160},value:N.desiredTitle,readOnly:!0,placeholder:"\u8BF7\u9009\u62E9\u5C97\u4F4D",onClick:function(){return xn(!0)}})}),(0,e.jsx)(Fe,{open:Ve,onCancel:function(){return xn(!1)},onOk:function(n){W(function(t){return i()(i()({},t),{},{desiredTitle:n.label})}),In(n),xn(!1)},value:B&&B.id?{id:B.id,label:B.label||""}:N.desiredTitle?{id:0,label:N.desiredTitle}:void 0})]}):(0,e.jsxs)(h.Z,{gutter:[24,8],children:[(0,e.jsxs)(p.Z,{span:8,children:[(0,e.jsx)(fe,{type:"secondary",children:"\u671F\u671B\u85AA\u8D44\uFF1A"}),(0,e.jsx)(fe,{strong:!0,children:x.salaryMin&&x.salaryMax?"".concat(x.salaryMin,"-").concat(x.salaryMax):x.desiredSalary||"\u672A\u586B\u5199"})]}),(0,e.jsxs)(p.Z,{span:8,children:[(0,e.jsx)(fe,{type:"secondary",children:"\u671F\u671B\u5DE5\u4F5C\u5730\uFF1A"}),(0,e.jsxs)(d.Z,{size:6,children:[(0,e.jsx)(je.Z,{}),Nn("area",x.desiredCity)||x.desiredCity||"\u672A\u586B\u5199"]})]}),(0,e.jsxs)(p.Z,{span:8,children:[(0,e.jsx)(fe,{type:"secondary",children:"\u6C42\u804C\u5C97\u4F4D\uFF1A"}),(0,e.jsx)(z.Z,{color:"blue",children:B&&B.id&&ln[B.id]?ln[B.id]:x.desiredTitle||"\u672A\u586B\u5199"})]})]})}),(0,e.jsxs)(o.Z,{className:"section",style:{marginTop:8,border:"1px solid #e5e5e5",boxShadow:"0 2px 12px #0001",borderRadius:8},title:(0,e.jsx)("span",{style:{fontWeight:600,fontSize:17},children:"\u6211\u7684\u6280\u80FD"}),extra:(0,e.jsx)(c.ZP,{onClick:Ut,type:"primary",disabled:kn||ke.length>=3,size:"middle",icon:(0,e.jsx)(F.Z,{}),children:"\u65B0\u589E\u6280\u80FD"}),children:[ke.length===0&&!kn?(0,e.jsx)("div",{style:{textAlign:"center",padding:"20px",color:"#999"},children:"\u6682\u65E0\u6280\u80FD\u4FE1\u606F\uFF0C\u8BF7\u6DFB\u52A0\u6280\u80FD"}):ke.map(function(l,n){return Sn===n?(0,e.jsxs)(h.Z,{gutter:12,align:"middle",style:{marginBottom:4,minHeight:46},children:[(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(Z.Z,{spinning:st,children:(0,e.jsx)(on,{placeholder:"\u6280\u80FD\u540D\u79F0",value:ee.name,options:it,onSearch:ot,onChange:function(a){return Re(function(f){return i()(i()({},f),{},{name:a})})},onSelect:function(a){return Re(function(f){return i()(i()({},f),{},{name:a})})},allowClear:!0,style:{width:"100%"}})})}),(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(S.default,{value:ee.level,onChange:function(a){return Re(function(f){return i()(i()({},f),{},{level:a})})},style:{width:"100%"},children:qn.map(function(t){return(0,e.jsx)(S.default.Option,{value:t,children:t},t)})})}),(0,e.jsx)(p.Z,{span:10,style:{textAlign:"right"},children:(0,e.jsx)(c.ZP,{type:"primary",icon:(0,e.jsx)(Le.Z,{}),size:"small",onClick:Nt})})]},n):(0,e.jsxs)(h.Z,{gutter:12,align:"middle",style:{marginBottom:4,minHeight:46},children:[(0,e.jsx)(p.Z,{span:7,style:{fontWeight:500,fontSize:16},children:l.name}),(0,e.jsx)(p.Z,{span:5,children:(0,e.jsx)("span",{style:{color:"#1890ff",fontWeight:500},children:l.level})}),(0,e.jsx)(p.Z,{span:12,style:{textAlign:"right"},children:!kn&&Sn===null&&(0,e.jsxs)(d.Z,{children:[(0,e.jsx)(c.ZP,{size:"small",type:"text",icon:(0,e.jsx)(K.Z,{}),onClick:function(){return Yt(n)}}),(0,e.jsx)(c.ZP,{size:"small",danger:!0,type:"text",icon:(0,e.jsx)(We.Z,{}),disabled:ke.length<=1,onClick:function(){return zt(n)}})]})})]},n)}),kn&&(0,e.jsxs)(h.Z,{gutter:12,align:"middle",style:{marginBottom:4,minHeight:46},children:[(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(Z.Z,{spinning:st,children:(0,e.jsx)(on,{placeholder:"\u6280\u80FD\u540D\u79F0",value:ee.name,options:it,onSearch:ot,onChange:function(n){return Re(function(t){return i()(i()({},t),{},{name:n})})},onSelect:function(n){return Re(function(t){return i()(i()({},t),{},{name:n})})},allowClear:!0,style:{width:"100%"}})})}),(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(S.default,{value:ee.level,onChange:function(n){return Re(function(t){return i()(i()({},t),{},{level:n})})},style:{width:"100%"},children:qn.map(function(l){return(0,e.jsx)(S.default.Option,{value:l,children:l},l)})})}),(0,e.jsx)(p.Z,{span:10,style:{textAlign:"right"},children:(0,e.jsx)(c.ZP,{type:"primary",icon:(0,e.jsx)(Le.Z,{}),size:"small",onClick:Ht})})]})]}),(0,e.jsxs)(o.Z,{className:"section",title:(0,e.jsx)("span",{children:"\u5DE5\u4F5C\u7ECF\u5386"}),extra:(0,e.jsx)(c.ZP,{type:"primary",icon:(0,e.jsx)(F.Z,{}),onClick:Ot,children:"\u6DFB\u52A0\u7ECF\u5386"}),children:[He&&(0,e.jsxs)(o.Z,{size:"small",style:{marginBottom:16,border:"1px solid #e5e5e5",boxShadow:"0 2px 12px #0001",borderRadius:8},children:[(0,e.jsxs)(I.Z,{layout:"vertical",children:[(0,e.jsxs)(h.Z,{gutter:16,align:"middle",children:[(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(I.Z.Item,{label:"\u4F01\u4E1A\u540D\u79F0",required:!0,style:{marginBottom:12,fontWeight:500},children:(0,e.jsx)(D.Z,{placeholder:"\u4F01\u4E1A\u540D\u79F0",value:$.company,onChange:function(n){return U(function(t){return i()(i()({},t),{},{company:n.target.value})})}})})}),(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(I.Z.Item,{label:"\u804C\u4F4D\u540D\u79F0",required:!0,style:{marginBottom:12,fontWeight:500},children:(0,e.jsx)(D.Z,{placeholder:"\u804C\u4F4D\u540D\u79F0",value:$.jobTitle,readOnly:!0,onClick:function(){return G(!0)},style:{cursor:"pointer",background:"#fafafa"}})})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(I.Z.Item,{label:"\u5DE5\u4F5C\u8D77\u6B62\u65F6\u95F4",required:!0,style:{marginBottom:12,fontWeight:500},children:(0,e.jsx)(dn.default.RangePicker,{style:{width:"100%"},picker:"month",format:"YYYY\u5E74MM\u6708",locale:Ye.Z,value:$.period,onChange:function(n){return U(function(t){return i()(i()({},t),{},{period:n||null})})},placeholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]})})})]}),(0,e.jsx)(h.Z,{children:(0,e.jsx)(p.Z,{span:24,children:(0,e.jsx)(I.Z.Item,{label:"\u5DE5\u4F5C\u63CF\u8FF0",required:!0,style:{marginBottom:10,fontWeight:500},children:(0,e.jsx)(D.Z.TextArea,{rows:3,placeholder:"\u5DE5\u4F5C\u63CF\u8FF0\uFF08\u591A\u884C\u7528\u56DE\u8F66\u5206\u9694\uFF09",value:$.duties,style:{resize:"none",background:"#f9f9f9"},onChange:function(n){return U(function(t){return i()(i()({},t),{},{duties:n.target.value})})}})})})}),(0,e.jsx)(h.Z,{justify:"end",children:(0,e.jsx)(p.Z,{children:(0,e.jsxs)(d.Z,{size:24,children:[(0,e.jsx)(c.ZP,{onClick:Bt,size:"large",children:"\u53D6\u6D88"}),(0,e.jsx)(c.ZP,{type:"primary",onClick:At,size:"large",loading:$n,children:"\u4FDD\u5B58"})]})})})]}),(0,e.jsx)(Fe,{open:Zn,onCancel:function(){return G(!1)},onOk:function(n){U(function(t){return i()(i()({},t),{},{jobTitle:n.label,jobId:n.id})}),G(!1)}})]}),Me.length===0&&!He?(0,e.jsx)("div",{style:{textAlign:"center",padding:"20px",color:"#999"},children:"\u6682\u65E0\u5DE5\u4F5C\u7ECF\u5386\uFF0C\u8BF7\u6DFB\u52A0\u5DE5\u4F5C\u7ECF\u5386"}):(0,e.jsx)(Be.Z,{dataSource:Me,renderItem:function(n){return On===n.id?(0,e.jsxs)(Be.Z.Item,{className:"exp-item",style:{padding:"16px 22px 12px",background:"#FAFCFF",marginBottom:8,border:"1px solid #e5e5e5",boxShadow:"0 2px 12px #0001",borderRadius:8},children:[(0,e.jsxs)(I.Z,{layout:"vertical",style:{width:"100%"},children:[(0,e.jsxs)(h.Z,{gutter:16,align:"middle",children:[(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(I.Z.Item,{label:"\u4F01\u4E1A\u540D\u79F0",required:!0,style:{marginBottom:12,fontWeight:500},children:(0,e.jsx)(D.Z,{placeholder:"\u4F01\u4E1A\u540D\u79F0",value:V.company,onChange:function(a){return jn(function(f){return i()(i()({},f),{},{company:a.target.value})})}})})}),(0,e.jsx)(p.Z,{span:6,children:(0,e.jsx)(I.Z.Item,{label:"\u804C\u4F4D\u540D\u79F0",required:!0,style:{marginBottom:12,fontWeight:500},children:(0,e.jsx)(D.Z,{placeholder:"\u804C\u4F4D\u540D\u79F0",value:V.jobTitle,readOnly:!0,onClick:function(){return Ln(!0)},style:{cursor:"pointer",background:"#fafafa"}})})}),(0,e.jsx)(p.Z,{span:8,children:(0,e.jsx)(I.Z.Item,{label:"\u5DE5\u4F5C\u8D77\u6B62\u65F6\u95F4",required:!0,style:{marginBottom:12,fontWeight:500},children:(0,e.jsx)(dn.default.RangePicker,{style:{width:"100%"},picker:"month",format:"YYYY\u5E74MM\u6708",locale:Ye.Z,value:V.period,onChange:function(a){return jn(function(f){return i()(i()({},f),{},{period:a||null})})},placeholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]})})})]}),(0,e.jsx)(h.Z,{children:(0,e.jsx)(p.Z,{span:24,children:(0,e.jsx)(I.Z.Item,{label:"\u5DE5\u4F5C\u63CF\u8FF0",required:!0,style:{marginBottom:10,fontWeight:500},children:(0,e.jsx)(D.Z.TextArea,{rows:3,placeholder:"\u5DE5\u4F5C\u63CF\u8FF0\uFF08\u591A\u884C\u7528\u56DE\u8F66\u5206\u9694\uFF09",value:V.duties,style:{resize:"none",background:"#f9f9f9"},onChange:function(a){return jn(function(f){return i()(i()({},f),{},{duties:a.target.value})})}})})})}),(0,e.jsx)(h.Z,{justify:"end",children:(0,e.jsx)(p.Z,{children:(0,e.jsxs)(d.Z,{size:24,children:[(0,e.jsx)(c.ZP,{onClick:Wt,size:"large",children:"\u53D6\u6D88"}),(0,e.jsx)(c.ZP,{type:"primary",onClick:Lt,size:"large",children:"\u4FDD\u5B58"})]})})})]}),(0,e.jsx)(Fe,{open:St,onCancel:function(){return Ln(!1)},onOk:function(a){jn(function(f){return i()(i()({},f),{},{jobTitle:a.label,jobId:a.id})}),Ln(!1)}})]}):(0,e.jsxs)(Be.Z.Item,{className:"exp-item",children:[(0,e.jsx)(Be.Z.Item.Meta,{title:(0,e.jsxs)(h.Z,{justify:"space-between",children:[(0,e.jsx)(p.Z,{children:(0,e.jsxs)(d.Z,{size:12,wrap:!0,children:[(0,e.jsx)(fe,{strong:!0,children:n.company}),(0,e.jsx)(fe,{type:"secondary",children:n.title})]})}),(0,e.jsx)(p.Z,{children:(0,e.jsx)(fe,{type:"secondary",children:n.period})})]}),description:(0,e.jsx)("div",{className:"duties",children:n.duties.map(function(t,a){return(0,e.jsxs)("div",{className:"duty-line",children:[a+1,"\u3001",t]},a)})})}),(0,e.jsx)(cn.Z,{title:"\u7F16\u8F91",children:(0,e.jsx)(c.ZP,{size:"small",type:"text",icon:(0,e.jsx)(K.Z,{}),onClick:function(){return Pt(n.id)}})}),(0,e.jsx)(cn.Z,{title:"\u5220\u9664",children:(0,e.jsx)(c.ZP,{size:"small",danger:!0,type:"text",icon:(0,e.jsx)(We.Z,{}),onClick:function(){return kt(n.id)}})})]})}})]})]})]})},ct=dt},92982:function(Ce,J,r){r.d(J,{Hr:function(){return I},QK:function(){return S},Vd:function(){return v},a7:function(){return p},jK:function(){return ye},n2:function(){return D},oH:function(){return o},pX:function(){return g},sF:function(){return d}});var re=r(15009),P=r.n(re),ue=r(97857),i=r.n(ue),pe=r(99289),y=r.n(pe),k=r(76772),w=r(33867),oe=r(30964);function ye(Z){return ae.apply(this,arguments)}function ae(){return ae=y()(P()().mark(function Z(A){return P()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,k.request)("/api/cms/dict/type/list",{params:i()({},A),method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 1:case"end":return E.stop()}},Z)})),ae.apply(this,arguments)}function v(Z){return(0,k.request)("/api/cms/dict/type/".concat(Z),{method:"GET"})}function g(Z,A,q){return Y.apply(this,arguments)}function Y(){return Y=y()(P()().mark(function Z(A,q,E){var H,L;return P()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(H=null,!E){C.next=7;break}return C.next=4,(0,k.request)("/api/cms/dict/data/type/".concat(A),{method:"GET"});case 4:H=C.sent,C.next=10;break;case 7:return C.next=9,(0,k.request)("/api/system/dict/data/type/".concat(A),{method:"GET"});case 9:H=C.sent;case 10:if(H.code!==w.iK.SUCCESS){C.next=16;break}return L={},H.data.forEach(function(R){L[R.dictValue]={text:R.dictLabel,label:R.dictLabel,value:q?Number(R.dictValue):R.dictValue,key:R.dictCode,listClass:R.listClass,status:R.listClass}}),C.abrupt("return",L);case 16:return C.abrupt("return",{});case 17:case"end":return C.stop()}},Z)})),Y.apply(this,arguments)}function I(Z,A,q){return m.apply(this,arguments)}function m(){return m=y()(P()().mark(function Z(A,q,E){var H,L;return P()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(H=null,!E){C.next=7;break}return C.next=4,(0,k.request)("/api/cms/dict/data/type/".concat(A),{method:"GET"});case 4:H=C.sent,C.next=10;break;case 7:return C.next=9,(0,k.request)("/api/system/dict/data/type/".concat(A),{method:"GET"});case 9:H=C.sent;case 10:if(H.code!==200){C.next=13;break}return L=H.data.map(function(R){return{text:R.dictLabel,label:R.dictLabel,value:q?Number(R.dictValue):R.dictValue,key:R.dictCode,listClass:R.listClass,status:R.listClass}}),C.abrupt("return",L);case 13:return C.abrupt("return",[]);case 14:case"end":return C.stop()}},Z)})),m.apply(this,arguments)}function o(Z){return h.apply(this,arguments)}function h(){return h=y()(P()().mark(function Z(A){return P()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,k.request)("/api/cms/dict/type",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:A}));case 1:case"end":return E.stop()}},Z)})),h.apply(this,arguments)}function p(Z){return j.apply(this,arguments)}function j(){return j=y()(P()().mark(function Z(A){return P()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,k.request)("/api/cms/dict/type",{method:"PUT",headers:{"Content-Type":"application/json;charset=UTF-8"},data:A}));case 1:case"end":return E.stop()}},Z)})),j.apply(this,arguments)}function d(Z){return c.apply(this,arguments)}function c(){return c=y()(P()().mark(function Z(A){return P()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,k.request)("/api/cms/dict/type/".concat(A),{method:"DELETE"}));case 1:case"end":return E.stop()}},Z)})),c.apply(this,arguments)}function D(Z){return(0,oe.su)("/api/cms/dict/type/export",{params:Z},"dict_type_".concat(new Date().getTime(),".xlsx"))}function S(Z){return z.apply(this,arguments)}function z(){return z=y()(P()().mark(function Z(A){return P()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",(0,k.request)("/api/cms/dict/type/optionselect",{params:i()({},A),method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 1:case"end":return E.stop()}},Z)})),z.apply(this,arguments)}},30964:function(Ce,J,r){r.d(J,{p6:function(){return ye},su:function(){return ae}});var re=r(15009),P=r.n(re),ue=r(97857),i=r.n(ue),pe=r(99289),y=r.n(pe),k=r(76772),w={xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",zip:"application/zip"};function oe(Y,I){var m=document.createElement("a"),o=new Blob([Y.data],{type:I}),h=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),p=decodeURI(Y.headers["content-disposition"]),j=h.exec(p),d=j?j[1]:"file";d=d.replace(/"/g,""),m.style.display="none",m.href=URL.createObjectURL(o),m.setAttribute("download",d),document.body.appendChild(m),m.click(),URL.revokeObjectURL(m.href),document.body.removeChild(m)}function ye(Y){(0,k.request)(Y,{method:"GET",responseType:"blob",getResponse:!0}).then(function(I){oe(I,w.zip)})}function ae(Y,I,m){return v.apply(this,arguments)}function v(){return v=y()(P()().mark(function Y(I,m,o){return P()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.abrupt("return",(0,k.request)(I,i()(i()({},m),{},{method:"POST",responseType:"blob"})).then(function(j){var d=document.createElement("a"),c=j;d.style.display="none",d.href=URL.createObjectURL(c),d.setAttribute("download",o),document.body.appendChild(d),d.click(),URL.revokeObjectURL(d.href),document.body.removeChild(d)}));case 1:case"end":return p.stop()}},Y)})),v.apply(this,arguments)}function g(Y){window.location.href="/api/common/download?fileName=".concat(encodeURI(Y),"&delete=",!0)}},30596:function(Ce,J,r){r.r(J)},88942:function(Ce,J,r){r.d(J,{Z:function(){return m},S:function(){return Y}});var re=r(67294),P=r(88692),ue=r(34203);const i=o=>typeof o=="object"&&o!=null&&o.nodeType===1,pe=(o,h)=>(!h||o!=="hidden")&&o!=="visible"&&o!=="clip",y=(o,h)=>{if(o.clientHeight{const d=(c=>{if(!c.ownerDocument||!c.ownerDocument.defaultView)return null;try{return c.ownerDocument.defaultView.frameElement}catch(D){return null}})(j);return!!d&&(d.clientHeightch||c>o&&D=h&&S>=p?c-o-j:D>h&&Sp?D-h+d:0,w=o=>{const h=o.parentElement;return h==null?o.getRootNode().host||null:h},oe=(o,h)=>{var p,j,d,c;if(typeof document=="undefined")return[];const{scrollMode:D,block:S,inline:z,boundary:Z,skipOverflowHiddenElements:A}=h,q=typeof Z=="function"?Z:je=>je!==Z;if(!i(o))throw new TypeError("Invalid target");const E=document.scrollingElement||document.documentElement,H=[];let L=o;for(;i(L)&&q(L);){if(L=w(L),L===E){H.push(L);break}L!=null&&L===document.body&&y(L)&&!y(document.documentElement)||L!=null&&y(L,A)&&H.push(L)}const xe=(j=(p=window.visualViewport)==null?void 0:p.width)!=null?j:innerWidth,C=(c=(d=window.visualViewport)==null?void 0:d.height)!=null?c:innerHeight,{scrollX:R,scrollY:De}=window,{height:$e,width:Ke,top:Ae,right:sn,bottom:un,left:Ze}=o.getBoundingClientRect(),{top:on,right:dn,bottom:Be,left:cn}=(je=>{const F=window.getComputedStyle(je);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(o);let ne=S==="start"||S==="nearest"?Ae-on:S==="end"?un+Be:Ae+$e/2-on+Be,K=z==="center"?Ze+Ke/2-cn+dn:z==="end"?sn+dn:Ze-cn;const pn=[];for(let je=0;je=0&&Ze>=0&&un<=C&&sn<=xe&&(F===E&&!y(F)||Ae>=Je&&un<=En&&Ze>=Xe&&sn<=fn))return pn;const X=getComputedStyle(F),e=parseInt(X.borderLeftWidth,10),Qe=parseInt(X.borderTopWidth,10),Fe=parseInt(X.borderRightWidth,10),qe=parseInt(X.borderBottomWidth,10);let ie=0,Se=0;const Ye="offsetWidth"in F?F.offsetWidth-F.clientWidth-e-Fe:0,en="offsetHeight"in F?F.offsetHeight-F.clientHeight-Qe-qe:0,Te="offsetWidth"in F?F.offsetWidth===0?0:We/F.offsetWidth:0,hn="offsetHeight"in F?F.offsetHeight===0?0:Le/F.offsetHeight:0;if(E===F)ie=S==="start"?ne:S==="end"?ne-C:S==="nearest"?k(De,De+C,C,Qe,qe,De+ne,De+ne+$e,$e):ne-C/2,Se=z==="start"?K:z==="center"?K-xe/2:z==="end"?K-xe:k(R,R+xe,xe,e,Fe,R+K,R+K+Ke,Ke),ie=Math.max(0,ie+De),Se=Math.max(0,Se+R);else{ie=S==="start"?ne-Je-Qe:S==="end"?ne-En+qe+en:S==="nearest"?k(Je,En,Le,Qe,qe+en,ne,ne+$e,$e):ne-(Je+Le/2)+en/2,Se=z==="start"?K-Xe-e:z==="center"?K-(Xe+We/2)+Ye/2:z==="end"?K-fn+Fe+Ye:k(Xe,fn,We,e,Fe+Ye,K,K+Ke,Ke);const{scrollLeft:Cn,scrollTop:fe}=F;ie=hn===0?0:Math.max(0,Math.min(fe+ie/hn,F.scrollHeight-Le/hn+en)),Se=Te===0?0:Math.max(0,Math.min(Cn+Se/Te,F.scrollWidth-We/Te+Ye)),ne+=fe-ie,K+=Cn-Se}pn.push({el:F,top:ie,left:Se})}return pn},ye=o=>o===!1?{block:"end",inline:"nearest"}:(h=>h===Object(h)&&Object.keys(h).length!==0)(o)?o:{block:"start",inline:"nearest"};function ae(o,h){if(!o.isConnected||!(d=>{let c=d;for(;c&&c.parentNode;){if(c.parentNode===document)return!0;c=c.parentNode instanceof ShadowRoot?c.parentNode.host:c.parentNode}return!1})(o))return;const p=(d=>{const c=window.getComputedStyle(d);return{top:parseFloat(c.scrollMarginTop)||0,right:parseFloat(c.scrollMarginRight)||0,bottom:parseFloat(c.scrollMarginBottom)||0,left:parseFloat(c.scrollMarginLeft)||0}})(o);if((d=>typeof d=="object"&&typeof d.behavior=="function")(h))return h.behavior(oe(o,h));const j=typeof h=="boolean"||h==null?void 0:h.behavior;for(const{el:d,top:c,left:D}of oe(o,ye(h))){const S=c-p.top+p.bottom,z=D-p.left+p.right;d.scroll({top:S,left:z,behavior:j})}}var v=r(80993),g=function(o,h){var p={};for(var j in o)Object.prototype.hasOwnProperty.call(o,j)&&h.indexOf(j)<0&&(p[j]=o[j]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,j=Object.getOwnPropertySymbols(o);do!=null?o:Object.assign(Object.assign({},h),{__INTERNAL__:{itemRef:d=>c=>{const D=Y(d);c?p.current[D]=c:delete p.current[D]}},scrollToField:(d,c={})=>{const{focus:D}=c,S=g(c,["focus"]),z=I(d,j);z&&(ae(z,Object.assign({scrollMode:"if-needed",block:"nearest"},S)),D&&j.focusField(d))},focusField:d=>{var c,D;const S=j.getFieldInstance(d);typeof(S==null?void 0:S.focus)=="function"?S.focus():(D=(c=I(d,j))===null||c===void 0?void 0:c.focus)===null||D===void 0||D.call(c)},getFieldInstance:d=>{const c=Y(d);return p.current[c]}}),[o,h]);return[j]}},80993:function(Ce,J,r){r.d(J,{dD:function(){return i},lR:function(){return pe},qo:function(){return ue}});const re=["parentNode"],P="form_item";function ue(y){return y===void 0||y===!1?[]:Array.isArray(y)?y:[y]}function i(y,k){if(!y.length)return;const w=y.join("_");return k?`${k}_${w}`:re.includes(w)?`${P}_${w}`:w}function pe(y,k,w,oe,ye,ae){let v=oe;return ae!==void 0?v=ae:w.validating?v="validating":y.length?v="error":k.length?v="warning":(w.touched||ye&&w.validated)&&(v="success"),v}},84937:function(Ce,J,r){Ce.exports=r.p+"static/avatar.60cae99d.jpg"}}]);