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.
NewEduCoderBuild/77984.async.js

1 line
40 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[77984],{88820:function(e,n,t){var i=t(82242),l=t.n(i),a=(t(59301),t(93314)),r=t(3113),s=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,i=void 0===t?{}:t,o=e.styles,c=void 0===o?{}:o,d=e.customText,u=e.ButtonText,h=e.ButtonClick,m=e.Buttonclass,p=e.ButtonTwo,f=e.imgStyles,x=e.loading,v=void 0!==x&&x;return(0,s.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"100px auto",visibility:v?"hidden":"visible"}),c),children:[(0,s.jsx)("img",{src:n||a,style:l()(l()({},f),{},{pointerEvents:"none",userSelect:"none"})}),(0,s.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,s.jsx)(r.ZP,l()(l()({className:m,onClick:h},i),{},{children:u})),p&&p]})}},12476:function(e,n,t){t.r(n),t.d(n,{default:function(){return se},identityMap:function(){return re}});var i=t(37205),l=t.n(i),a=t(7557),r=t.n(a),s=t(82242),o=t.n(s),c=t(41498),d=t.n(c),u=t(79800),h=t.n(u),m=t(39647),p=t.n(m),f=t(59301),x=t(64201),v=t(57809),j=t(92832),g=t(78241),_=t(8591),y=t(43418),b=t(95237),Z=t(43604),k=t(6848),w=t(88522),I=t(5112),N=t(59028),C=t(3113),S="wrap___UcHlM",F="content___G5KsE",T="hint___WWGVB",V="formWrap___PlK4W",A="schoolHintWrap___BVdvA",P="colorCDCDCD___gbgqi",q="color0152d9___R6uW1",E="submitButton___dSqFa",z="submitButtondiv___qx6r5",B="staffidInput___qFhii",L="selecticon___WwgCc",R=t(8853),Q=t(60121),O=t(32637),M=t(23603),G=t(96192),H=t(42141),W=t(26762),D=t(21207),Y=t(26750),U=t(18838),K=t(89392),J=t(29831),X=t(75694),$=t(57668),ee=t(41681),ne=t(14024),te=t(37712),ie=["user","account","globalSetting","shixunHomeworks","loading","dispatch"],le=v.default.Option,ae=j.Z.TextArea,re={teacher:"教师",student:"学生",professional:"专业人士"},se=(0,x.connect)((function(e){var n=e.user,t=e.account,i=e.loading,l=e.globalSetting,a=e.shixunHomeworks;return{user:n,account:t,globalSetting:l,loading:i.effects,shixunHomeworks:a}}))((function(e){var n,t,i,a,s,c=e.user,u=e.account,m=e.globalSetting,re=e.shixunHomeworks,se=e.loading,oe=e.dispatch,ce=(p()(e,ie),g.Z.useForm()),de=h()(ce,1)[0],ue=g.Z.useForm(),he=h()(ue,1)[0],me=(0,f.useState)({}),pe=h()(me,2),fe=pe[0],xe=pe[1],ve=(0,f.useState)(!1),je=h()(ve,2),ge=je[0],_e=je[1],ye=(0,f.useState)({}),be=h()(ye,2),Ze=be[0],ke=be[1],we=(0,f.useState)([]),Ie=h()(we,2),Ne=Ie[0],Ce=Ie[1],Se=(0,f.useState)([]),Fe=h()(Se,2),Te=Fe[0],Ve=Fe[1],Ae=(0,f.useState)([]),Pe=h()(Ae,2),qe=Pe[0],Ee=Pe[1],ze=(0,f.useState)([]),Be=h()(ze,2),Le=Be[0],Re=Be[1],Qe=(0,f.useState)([]),Oe=h()(Qe,2),Me=Oe[0],Ge=Oe[1],He=(0,f.useState)([]),We=h()(He,2),De=We[0],Ye=We[1],Ue=(0,f.useState)(!0),Ke=h()(Ue,2),Je=Ke[0],Xe=Ke[1],$e=(0,f.useState)(!1),en=h()($e,2),nn=en[0],tn=en[1],ln=(0,f.useState)(),an=h()(ln,2),rn=an[0],sn=an[1],on=(0,f.useState)(null),cn=h()(on,2),dn=cn[0],un=cn[1],hn=(0,f.useState)(!0),mn=h()(hn,2),pn=mn[0],fn=mn[1],xn=(0,f.useState)(),vn=h()(xn,2),jn=(vn[0],vn[1],(0,f.useState)(!1)),gn=h()(jn,2),_n=gn[0],yn=(gn[1],(0,f.useState)([])),bn=h()(yn,2),Zn=bn[0],kn=bn[1],wn=(0,f.useState)(!0),In=h()(wn,2),Nn=In[0],Cn=In[1],Sn=(0,f.useRef)(!0),Fn=(0,f.useState)(""),Tn=h()(Fn,2),Vn=Tn[0],An=Tn[1],Pn=(0,f.useState)(""),qn=h()(Pn,2),En=qn[0],zn=qn[1],Bn=(0,f.useState)(""),Ln=h()(Bn,2),Rn=Ln[0],Qn=Ln[1],On=(0,f.useRef)((0,K.throttle)((function(e){return Yn(e)}),1200,{leading:!0,trailing:!0})).current,Mn=u.basicInfo,Gn=void 0===Mn?{}:Mn,Hn=Gn&&"certified"==Gn.professional_certification,Wn={visible:!1},Dn=(0,f.useRef)();(0,f.useEffect)((function(){var e;Dn.current=null===(e=location.pathname.split("/"))||void 0===e?void 0:e[2]}),[location.pathname]),(0,f.useEffect)((function(){var e,n;null!==(e=u.basicInfo)&&void 0!==e&&e.school_name&&Yn(null===(n=u.basicInfo)||void 0===n?void 0:n.school_name)}),[null===(n=u.basicInfo)||void 0===n?void 0:n.school_name]),(0,f.useEffect)((function(){Nn&&(de.setFieldsValue({studentNo:Ze.studentNo}),de.validateFields(["studentNo"]))}),[Ze.studentNo]),(0,f.useEffect)((function(){pn||!Ze.school||Ne.find((function(e){return e.name===Ze.school}))?An(""):An("error")}),[pn,Ze.school,Ne]),(0,f.useEffect)((function(){pn||!Ze.department||qe.find((function(e){return e.name===Ze.department}))?zn(""):zn("error")}),[pn,Ze.department,qe]),(0,f.useEffect)((function(){!pn&&Ze.major_name&&(null==Me?void 0:Me.length)>0&&!Me.find((function(e){return e.name===Ze.major_name}))&&Qn("error")}),[pn,Ze.major_name]);var Yn=function(){var e=d()(r()().mark((function e(n){var t,i,l;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fn(!0),e.next=3,oe({type:"account/getSchoolOption",payload:{keyword:n,limit:99999}});case 3:if(t=e.sent,Ce(null==t?void 0:t.schools),Ve(null==t?void 0:t.schools),!n||""==n){e.next=24;break}if(Ve(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return e.name.includes(n)}))),!((null==t||null===(l=t.schools)||void 0===l?void 0:l.find((function(e){return e.name===n})))||{}).id){e.next=14;break}return e.next=12,Xn(n,null==Gn?void 0:Gn.department_name,null==t?void 0:t.schools);case 12:e.next=22;break;case 14:de.setFieldsValue({department:"",major_name:""}),ke(o()(o()({},de.getFieldValue()),{school:n,department:"",major_name:""})),Ee([]),Re([]),Ge([]),Ye([]),zn(""),Qn("");case 22:e.next=32;break;case 24:de.setFieldsValue({department:"",major_name:""}),ke(o()(o()({},de.getFieldValue()),{department:"",major_name:""})),Ee([]),Re([]),Ge([]),Ye([]),zn(""),Qn("");case 32:fn(!1);case 33:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Un=function(e){if(e)return oe({type:"account/getDepartmentOption",payload:{id:e}})};(0,f.useEffect)((function(){if(u.basicInfo){var e,n,t,i=u.basicInfo,l={nickname:i.nickname,name:i.show_realname?i.name:(0,M.YA)(i.name),gender:i.gender,city:[i.location,i.location_city],identity:i.identity,school:i.school_name,department:i.department_name,major_name:i.major_name,studentNo:i.student_id,edu_entry_year:i.edu_entry_year,edu_background:(e=i.edu_background,null===M.jh||void 0===M.jh||null===(n=M.jh.find((function(n){return n.name===e})))||void 0===n?void 0:n.id),brief_introduction:i.brief_introduction,jobTitle:"teacher"==i.identity?i.technical_title:"教授",manager:"professional"==i.identity?i.technical_title:"企业管理者",staff_id:i.staff_id};if(null!=i&&i.face_image)kn([{uid:"111",name:"111",url:ee.Z.API_SERVER+i.face_image,response:{id:null==i||null===(t=i.face_image)||void 0===t||null===(t=t.split("/"))||void 0===t?void 0:t[3]}}]);sn(i.name),Xe(i.show_realname),un(i.identity),de.setFieldsValue(l),ke(l)}}),[u.basicInfo]);var Kn,Jn,Xn=function(){var e=d()(r()().mark((function e(n,t,i){var a,s,c,d,u;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=null===(a=(i||Ne).find((function(e){return e.name===n})))||void 0===a?void 0:a.id,e.next=3,Un(c);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:d=e.t0,u=Sn.current?t:null==d||null===(s=d.departments[0])||void 0===s?void 0:s.name,de.setFieldsValue({department:u}),ke(o()(o()({},de.getFieldsValue()),{school:n,department:u})),Ee(l()(null==d?void 0:d.departments)),Re(l()(null==d?void 0:d.departments)),Qn(""),$n(Sn.current,l()(null==d?void 0:d.departments),i);case 14:case"end":return e.stop()}}),e)})));return function(n,t,i){return e.apply(this,arguments)}}(),$n=function(){var e=d()(r()().mark((function e(){var n,t,i,a,s,c,d,u,h,m,p=arguments;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=p.length>0&&void 0!==p[0]&&p[0],a=p.length>1?p[1]:void 0,s=p.length>2?p[2]:void 0,console.log(de.getFieldsValue()),console.log(Ze),console.log(Ne),Sn.current=!1,c=null===(n=s.find((function(e){return e.name===de.getFieldValue("school")})))||void 0===n?void 0:n.id,!(d=null===(t=a.find((function(e){return e.name===de.getFieldValue("department")})))||void 0===t?void 0:t.id)){e.next=14;break}return e.next=12,(0,U.ZP)("/api/schools/".concat(c,"/departments/").concat(d,"/major_option.json"),{method:"get"});case 12:0==(null==(u=e.sent)?void 0:u.status)&&(Ge(l()(null==u?void 0:u.majors)),Ye(l()(null==u?void 0:u.majors)),m=i?null==Gn?void 0:Gn.major_name:null==u||null===(h=u.majors[0])||void 0===h?void 0:h.name,de.setFieldsValue({major_name:m}),ke(o()(o()({},de.getFieldsValue()),{major_name:m})));case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),et=function(){var e=d()(r()().mark((function e(){var n,t,i,a,s,c,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null===(n=Ne.find((function(e){return e.name===de.getFieldValue("school")})))||void 0===n?void 0:n.id,!(a=null===(t=qe.find((function(e){return e.name===de.getFieldValue("department")})))||void 0===t?void 0:t.id)){e.next=8;break}return Qn(""),e.next=6,(0,U.ZP)("/api/schools/".concat(i,"/departments/").concat(a,"/major_option.json"),{method:"get"});case 6:0==(null==(s=e.sent)?void 0:s.status)&&(Ge(null==s?void 0:s.majors),Ye(l()(null==s?void 0:s.majors)),d=null==s||null===(c=s.majors)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.name,de.setFieldsValue({major_name:d}),ke(o()(o()({},de.getFieldsValue()),{major_name:d})));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),nt=function(){var e=d()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yn();case 2:de.setFieldsValue({school:n,department:""}),ke(o()(o()({},Ze),{school:n,department:""}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),tt=function(e){var n,t,i,l;return"number"===e?"teacher"===Ze.identity?"".concat(null==m||null===(n=m.setting)||void 0===n?void 0:n.homepage_tea_qq_number):"".concat(null==m||null===(t=m.setting)||void 0===t?void 0:t.homepage_stu_qq_number):"code"===e?"teacher"===Ze.identity?"".concat(ee.Z.IMG_SERVER,"/").concat(null==m||null===(i=m.setting)||void 0===i?void 0:i.homepage_tea_qq_qrcode_url):"".concat(ee.Z.IMG_SERVER,"/").concat(null==m||null===(l=m.setting)||void 0===l?void 0:l.homepage_stu_qq_qrcode_url):void 0},it=function(){var e=d()(r()().mark((function e(n){var t,i,l,a,s,o,h,m,p,f,v,j,g,b,Z,k,w,I,N,C,S,F,T,V,A,P,q;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.nickname,s=n.gender,o=n.identity,h=n.studentNo,m=n.jobTitle,p=n.manager,f=n.school,v=n.department,j=n.edu_background,g=n.edu_entry_year,b=n.brief_introduction,n.face_image,Z=n.staff_id,k=n.major_name,w=null===(t=qe.find((function(e){return e.name===v})))||void 0===t?void 0:t.id,I=null===(i=Ne.find((function(e){return e.name===f})))||void 0===i?void 0:i.id,N=null===(l=Me.find((function(e){return e.name===k})))||void 0===l?void 0:l.id,C=u.basicInfo,console.log("B",n,C),S=[],"uncertified"!=C.authentication&&(rn!=C.name&&S.push("姓名"),s!=C.gender&&S.push("性别")),F=[],Hn&&(o!=C.identity?F.push("职业"):(Ze.identity,"teacher"===Ze.identity&&m!=C.technical_title&&F.push("职业"),"professional"===Ze.identity&&p!=C.technical_title&&F.push("职业")),f!=C.school_name&&F.push("学校/单位"),v!=C.department_name&&F.push("院系/部门"),k!=C.major_name&&F.push("专业")),I){e.next=13;break}return y.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,te.jsxs)("div",{style:{textAlign:"center"},children:[(0,te.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群",tt("number"),",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,te.jsx)("img",{src:tt("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 13:if(!v||w){e.next=16;break}return y.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,te.jsxs)("div",{style:{textAlign:"center"},children:[(0,te.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群",tt("number"),",联系群内的运营人员申请新增部门或专业名称。"]}),(0,te.jsx)("img",{src:tt("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 16:if(!k||N){e.next=19;break}return y.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,te.jsxs)("div",{style:{textAlign:"center"},children:[(0,te.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群",tt("number"),",联系群内的运营人员申请新增部门或专业名称。"]}),(0,te.jsx)("img",{src:tt("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 19:if(!(S.length>0||F.length>0)){e.next=23;break}y.Z.confirm({centered:!0,icon:null,okText:"确定",cancelText:"取消",title:"提示",content:(0,te.jsx)("div",{children:"本次修改涉及".concat(S.toString().replaceAll(",","、")).concat(S.length>0&&F.length>0?"、":"").concat(F.toString().replaceAll(",","、"),",需要重新进行").concat(S.length>0?"实名认证":"").concat(S.length>0&&F.length>0?"和":"").concat(F.length>0?"职业认证":"",",请确认是否进行修改")}),onOk:function(){var e=d()(r()().mark((function e(){var n,t,i,l,d,f,v;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(S.length>0)){e.next=3;break}return e.next=3,(0,G.RA)({login:null===(i=c.userInfo)||void 0===i?void 0:i.login});case 3:if(!(F.length>0)){e.next=6;break}return e.next=6,(0,G.kN)({login:null===(l=c.userInfo)||void 0===l?void 0:l.login});case 6:return e.next=8,oe({type:"account/updateAccount",payload:{id:null===(n=u.basicInfo)||void 0===n?void 0:n.id,department_id:w,major_id:N,gender:s,identity:o,location:location,name:rn,nickname:a,school_id:I,edu_background:j,edu_entry_year:g,show_realname:Je,brief_introduction:b,student_id:"student"===o?h:null,technical_title:m||p,face_image:null==Zn||null===(t=Zn[0])||void 0===t||null===(t=t.response)||void 0===t?void 0:t.id}});case 8:if(-1!==(null==(d=e.sent)?void 0:d.status)){e.next=11;break}return e.abrupt("return");case 11:if(!d){e.next=20;break}if(_.ZP.info("保存成功"),null!==(f=u.basicInfo)&&void 0!==f&&f.base_info_completed||oe({type:"user/getUserInfo"}),oe({type:"account/getBasicInfo",payload:{login:null===(v=c.userInfo)||void 0===v?void 0:v.login}}),o===dn||"teacher"!==o){e.next=18;break}return tn(!0),e.abrupt("return");case 18:"0"===localStorage.getItem("Noviceguide")||oe({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:4,href:"/classrooms",text:(0,te.jsx)("div",{children:"OK接下来让我们开始新建【教学课堂】请您找到闪光框并点击 “教学课堂”。"})}}),x.history.push("/users/".concat(Dn.current,"/baseInfo"));case 20:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.next=37;break;case 23:return e.next=25,oe({type:"account/updateAccount",payload:{id:null===(T=u.basicInfo)||void 0===T?void 0:T.id,department_id:w,major_id:N,gender:s,identity:o,location:location,name:rn,nickname:a,school_id:I,edu_background:j,edu_entry_year:g,staff_id:Z,show_realname:Je,brief_introduction:b,student_id:"student"===o?h:null,technical_title:m||p,face_image:null==Zn||null===(V=Zn[0])||void 0===V||null===(V=V.response)||void 0===V?void 0:V.id}});case 25:if(-1!==(null==(A=e.sent)?void 0:A.status)){e.next=28;break}return e.abrupt("return");case 28:if(!A){e.next=37;break}if(_.ZP.info("保存成功"),null!==(P=u.basicInfo)&&void 0!==P&&P.base_info_completed||oe({type:"user/getUserInfo"}),oe({type:"account/getBasicInfo",payload:{login:null===(q=c.userInfo)||void 0===q?void 0:q.login}}),o===dn||"teacher"!==o){e.next=35;break}return tn(!0),e.abrupt("return");case 35:"0"===localStorage.getItem("Noviceguide")||oe({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:4,href:"/classrooms",text:(0,te.jsx)("div",{children:"OK接下来让我们开始新建【教学课堂】请您找到闪光框并点击 “教学课堂”。"})}}),x.history.push("/users/".concat(Dn.current,"/baseInfo"));case 37:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),lt=(0,te.jsxs)("div",{children:[_n?(0,te.jsx)(H.Z,{}):(0,te.jsx)(W.Z,{}),(0,te.jsx)("div",{style:{marginTop:8},children:"上传"})]});return(0,te.jsxs)("section",{className:S,children:[(0,te.jsx)($.Z,{active:1}),(0,te.jsx)("div",{className:F,children:(0,te.jsxs)(g.Z,{form:de,className:V,layout:"horizontal",onValuesChange:function(e){var n;ke(o()({},de.getFieldsValue())),(null==e||null===(n=e.nickname)||void 0===n?void 0:n.length)<=0&&(Xe(!0),de.setFieldsValue({name:rn})),"name"in e&&sn(e.name),"identity"in e&&de.setFieldsValue({staff_id:""})},onFinish:it,scrollToFirstError:!0,children:[(0,te.jsx)(g.Z.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(20,"个字符")},{validator:M.HJ}],extra:(0,te.jsx)("span",{children:Ze.nickname?Je?"显示:平台将显示您的真实姓名":"隐藏:平台将显示你的昵称":"填写昵称后可设置姓名进行隐藏(当进行姓名搜索时,会展示您的真实姓名)"}),children:(0,te.jsx)(j.Z,{style:{height:40},disabled:!!Ze.nickname&&!Je,placeholder:"请输入真实姓名,最大限制".concat(20,"个字符"),maxLength:20,suffix:Ze.nickname?(0,te.jsx)("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(Je?"icon-xianshi":"icon-yincang"," font18 ").concat(q),onClick:function(){var e=!Je;Xe(e);var n=e?rn:(0,M.YA)(rn);de.setFieldsValue({name:n})}}):null})}),(0,te.jsxs)(b.Z,{gutter:[10,0],children:[(0,te.jsx)(Z.Z,{children:(0,te.jsx)(k.Z,o()(o()({placement:"bottom",title:function(){return(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{children:"已提交职业认证"}),(0,te.jsxs)("div",{children:["可在",(0,te.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Wn),{},{children:(0,te.jsx)(g.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,te.jsxs)(v.default,{style:{width:135},size:"large",children:[(0,te.jsx)(le,{value:"teacher",children:"教师"}),(0,te.jsx)(le,{value:"student",children:"学生"}),(0,te.jsx)(le,{value:"professional",children:"专业人士"})]})})}))}),(0,te.jsxs)(Z.Z,{children:["student"===Ze.identity&&(0,te.jsx)(k.Z,o()(o()({placement:"bottom",title:function(){return(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{children:"已提交职业认证"}),(0,te.jsxs)("div",{children:["可在",(0,te.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Wn),{},{children:(0,te.jsx)(g.Z.Item,{initialValue:Ze.studentNo,name:"studentNo",validateTrigger:"onBlur",rules:[{whitespace:!0,message:"不能全为空"},{required:!0,validator:(Jn=d()(r()().mark((function e(n,t){var i,l,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Cn(!1),e.next=3,(0,U.ZP)("/api/users/accounts/".concat(null==c||null===(i=c.userInfo)||void 0===i?void 0:i.user_id,"/valid_student_id"),{method:"get",params:{school_id:(null==Gn?void 0:Gn.school_id)||(null==Ne||null===(l=Ne.find((function(e){return e.name===Ze.school})))||void 0===l?void 0:l.id),student_id:t}});case 3:return a=e.sent,e.abrupt("return",(null==a?void 0:a.status)<-1?Promise.reject((0,te.jsxs)("span",{children:["该学号已被使用,如需继续使用该学号,请先",(0,te.jsx)("a",{onClick:function(){_e(!0),xe({check_type:4})},children:"解绑学号"})]})):Promise.resolve());case 5:case"end":return e.stop()}}),e)}))),function(e,n){return Jn.apply(this,arguments)})}],children:(0,te.jsx)(j.Z,{size:"large",style:{width:200},type:"text",placeholder:"请输入学号最大限制20个字符",showCount:!0,maxLength:20})})})),"teacher"===Ze.identity&&(0,te.jsx)(k.Z,o()(o()({placement:"bottom",title:function(){return(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{children:"已提交职业认证"}),(0,te.jsxs)("div",{children:["可在",(0,te.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Wn),{},{children:(0,te.jsx)(g.Z.Item,{initialValue:Ze.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,te.jsxs)(v.default,{style:{width:200},size:"large",children:[(0,te.jsx)(le,{value:"教授",children:"教授"}),(0,te.jsx)(le,{value:"研究员",children:"研究员"}),(0,te.jsx)(le,{value:"副教授",children:"副教授"}),(0,te.jsx)(le,{value:"副研究员",children:"副研究员"}),(0,te.jsx)(le,{value:"讲师",children:"讲师"}),(0,te.jsx)(le,{value:"助理研究员",children:"助理研究员"}),(0,te.jsx)(le,{value:"助理教授",children:"助理教授"})]})})})),"professional"===Ze.identity&&(0,te.jsx)(k.Z,o()(o()({placement:"bottom",title:function(){return(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{children:"已提交职业认证"}),(0,te.jsxs)("div",{children:["可在",(0,te.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Wn),{},{children:(0,te.jsx)(g.Z.Item,{initialValue:Ze.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,te.jsxs)(v.default,{style:{width:200},size:"large",children:[(0,te.jsx)(le,{value:"企业管理者",children:"企业管理者"}),(0,te.jsx)(le,{value:"部门管理者",children:"部门管理者"}),(0,te.jsx)(le,{value:"高级工程师",children:"高级工程师"}),(0,te.jsx)(le,{value:"工程师",children:"工程师"}),(0,te.jsx)(le,{value:"助理工程师",children:"助理工程师"})]})})}))]}),("teacher"===Ze.identity||"professional"===Ze.identity)&&(0,te.jsx)(Z.Z,{flex:1,children:(0,te.jsx)(g.Z.Item,{label:"工号",name:"staff_id",labelCol:{span:4},rules:[{validator:function(e,n){return/[\u4E00-\u9FA5]/g.test(n)?Promise.reject("请勿输入中文字符"):n.length>20?Promise.reject("最大限制20个字符"):Promise.resolve()}}],children:(0,te.jsx)(j.Z,{className:B,suffix:" ",showCount:!0,maxLength:20,placeholder:"请输入工号最大限制20个字符"})})})]}),(0,te.jsx)(k.Z,o()(o()({placement:"bottom",title:function(){return(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{children:"已提交职业认证"}),(0,te.jsxs)("div",{children:["可在",(0,te.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Wn),{},{children:(0,te.jsxs)("div",{style:{position:"relative"},children:[(0,te.jsx)(g.Z.Item,{label:"学校/单位",name:"school",wrapperCol:{span:10},extra:!pn&&Ze.school&&!(null!=Ne&&Ne.find((function(e){return e.name===Ze.school})))&&(0,te.jsx)("div",{className:A,children:(0,te.jsxs)("span",{className:P,children:["未找到包含“",Ze.school,"”的高校,如有需要,请",(0,te.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){y.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,te.jsxs)("div",{style:{textAlign:"center"},children:[(0,te.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群","teacher"===Ze.identity?"727685969":"816055138",",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,te.jsx)("img",{src:"teacher"===Ze.identity?J:X,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})}),rules:[{required:!0,message:"请先选择学校/单位"},{whitespace:!0,message:"请先选择学校/单位"}],children:(0,te.jsx)(w.Z,{status:Vn,size:"large",showSearch:!0,onChange:On,placeholder:"请输入单位名称",children:Te.map((function(e,n){return(0,te.jsx)(le,{value:e.name,children:e.name},n)}))})}),(0,te.jsx)("span",{className:L,children:(0,te.jsx)("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:(0,te.jsx)("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})})})]})})),(0,te.jsx)(k.Z,o()(o()({placement:"bottom",title:function(){return(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{children:"已提交职业认证"}),(0,te.jsxs)("div",{children:["可在",(0,te.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Wn),{},{children:(0,te.jsxs)("div",{style:{position:"relative"},children:[(0,te.jsx)(g.Z.Item,{label:"院系/部门",name:"department",wrapperCol:{span:10},extra:!pn&&Ze.department&&!(null!=qe&&qe.find((function(e){return e.name===Ze.department})))&&(0,te.jsxs)("div",{className:A,children:[(0,te.jsx)("span",{className:P,children:Ze.department?"未找到包含“".concat(Ze.department,"”的高校,"):"未找到院系,"}),(0,te.jsxs)("span",{className:P,children:["如有需要,请",(0,te.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){y.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,te.jsxs)("div",{style:{textAlign:"center"},children:[(0,te.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群",tt("number"),",联系群内的运营人员申请新增部门或专业名称。"]}),(0,te.jsx)("img",{src:tt("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})]}),children:(0,te.jsx)(w.Z,{status:En,size:"large",placeholder:"请输入部门名称",onChange:function(e){""==e&&(de.setFieldsValue({major_name:""}),ke(o()(o()({},de.getFieldsValue()),{major_name:""})),Ge([]),Ye([]),Qn("")),et(),Re(qe.filter((function(n){return n.name.includes(e)})))},children:Le.map((function(e,n){return(0,te.jsxs)(le,{value:e.name,children:[e.name,0==(null==e?void 0:e.status)&&(0,te.jsx)("span",{style:{color:"#FF8C29",marginLeft:"5px"},children:"(待审核)"})]},n)}))})}),(0,te.jsx)("span",{className:L,children:(0,te.jsx)("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:(0,te.jsx)("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})})})]})})),(0,te.jsx)(k.Z,o()(o()({placement:"bottom",title:function(){return(0,te.jsxs)("div",{children:[(0,te.jsx)("div",{children:"已提交职业认证"}),(0,te.jsxs)("div",{children:["可在",(0,te.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Wn),{},{children:(0,te.jsxs)("div",{style:{position:"relative"},children:[(0,te.jsx)(g.Z.Item,{label:"专业",name:"major_name",wrapperCol:{span:10},extra:"error"===Rn&&(0,te.jsx)("div",{className:A,children:(0,te.jsxs)("span",{className:P,children:["未找到“",Ze.major_name,"”专业,如有需要,请",(0,te.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){y.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,te.jsxs)("div",{style:{textAlign:"center"},children:[(0,te.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群","teacher"===Ze.identity?"727685969":"816055138",",联系群内的运营人员申请新增部门或专业名称。"]}),(0,te.jsx)("img",{src:"teacher"===Ze.identity?J:X,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})}),children:(0,te.jsx)(w.Z,{status:Rn,size:"large",placeholder:"请输入专业名称",onChange:function(e){Ye(Me.filter((function(n){return n.name.includes(e)}))),e&&0==(null==Me?void 0:Me.length)?Qn("error"):""!=e?e&&(null==Me?void 0:Me.length)>0&&Me.find((function(n){return n.name===e}))&&Qn(""):Qn("")},children:De.map((function(e,n){return(0,te.jsxs)(le,{value:e.name,children:[e.name,0==(null==e?void 0:e.status)&&(0,te.jsx)("span",{style:{color:"#FF8C29",marginLeft:"5px"},children:"(待审核)"})]},n)}))})}),(0,te.jsx)("span",{className:L,children:(0,te.jsx)("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:(0,te.jsx)("path",{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"})})})]})})),(0,te.jsx)(g.Z.Item,{label:"昵称",name:"nickname",rules:[{message:"请输入您的昵称"},{validator:M.G7}],validateTrigger:"onSubmit",children:(0,te.jsx)(j.Z,{style:{height:40},placeholder:"请输入您的昵称,最大限制".concat(20,"个字符"),maxLength:20,suffix:"".concat((null===(t=Ze.nickname)||void 0===t?void 0:t.length)||0,"/").concat(20)})}),(0,te.jsx)(g.Z.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"性别",className:"mb0",children:(0,te.jsx)(g.Z.Item,{name:"gender",children:(0,te.jsxs)(I.ZP.Group,{children:[(0,te.jsx)(I.ZP,{value:0,children:"男"}),(0,te.jsx)(I.ZP,{value:1,children:"女"})]})})}),(0,te.jsx)(g.Z.Item,{label:"入学年份",name:"edu_entry_year",wrapperCol:{span:10},children:(0,te.jsx)(v.default,{placeholder:"请选择入学年份",size:"large",children:(Kn=(new Date).getFullYear(),Array(31).fill({}).map((function(e,n){return(0,te.jsx)(le,{value:Kn-n,children:(0,te.jsx)("span",{children:Kn-n})},n)})))})}),(0,te.jsx)(g.Z.Item,{label:"最高学历",wrapperCol:{span:10},name:"edu_background",children:(0,te.jsx)(v.default,{placeholder:"请选择最高学历",size:"large",children:M.jh.map((function(e,n){return(0,te.jsx)(le,{value:e.id,children:e.name},n)}))})}),(0,te.jsxs)("div",{style:{display:"flex"},children:[(0,te.jsx)(g.Z.Item,{label:"上传证件照",wrapperCol:{span:10},name:"face_image",children:(0,te.jsx)(N.Z,{listType:"picture-card",withCredentials:!0,className:"avatar-uploader",fileList:Zn,onPreview:function(e){Y.Z.publish("preview-image",e.thumbUrl||e.url)},action:"".concat(ee.Z.API_SERVER,"/api/attachments.json"),beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type;if(!n)return _.ZP.error("您上传的不是JPG/PNG类型文件"),Promise.reject();var t=e.size/1024/1024<1;return t?n&&t:(_.ZP.error("文件不能大于1MB"),Promise.reject())},onChange:function(e){kn(l()(e.fileList))},children:(null==Zn?void 0:Zn.length)>0?null:lt})}),(0,te.jsxs)("div",{style:{marginLeft:16,color:"#666666",display:"flex",flexDirection:"column",marginTop:5},children:[(0,te.jsx)("span",{children:"要求:"}),(0,te.jsx)("span",{children:"1.学生照片必须为高清的人脸照"}),(0,te.jsx)("span",{children:"2.按照 姓名-学号 的方式来命名照片"}),(0,te.jsx)("span",{children:"3.图片大小在1MB以内"})]})]}),(0,te.jsxs)("div",{style:{position:"relative"},children:[(0,te.jsx)(g.Z.Item,{label:"简介",name:"brief_introduction",rules:[{required:!1}],children:(0,te.jsx)(ae,{maxLength:500,rows:6})}),(0,te.jsxs)("div",{style:{position:"absolute",bottom:10,right:10},children:[null===(i=de.getFieldValue("brief_introduction"))||void 0===i?void 0:i.length,"/500"]})]}),(0,te.jsxs)(g.Z.Item,{children:[(0,te.jsx)(C.ZP,{className:"".concat(2===re.actionTabs.type?z:E," ml100"),size:"middle",type:"primary",htmlType:"submit",loading:se["account/updateAccount"],children:"保存"}),(0,te.jsx)(C.ZP,{className:E,size:"middle",onClick:function(){return x.history.push("/users/".concat(Dn.current,"/baseInfo"))},children:"取消"})]})]})}),(0,te.jsx)("div",{className:"".concat(T," font14"),children:"* 我们确保你所提供的信息均处于严格保密状态,不会泄露"}),(0,te.jsx)(R.Z,{visible:"Account-AppplySchool"===u.actionTabs.key,onClose:function(){oe({type:"account/setActionTabs",payload:{}})},schoolName:Ze.school,onSuccess:nt}),(0,te.jsx)(Q.Z,{visible:"Account-AppplyDepartment"===u.actionTabs.key,onClose:function(){oe({type:"account/setActionTabs",payload:{}})},schoolId:null===(a=Ne.find((function(e){return e.name===Ze.school})))||void 0===a?void 0:a.id,schoolName:Ze.school,departmentName:Ze.department,onSuccess:function(e){return Xn(Ze.school,e)}}),(0,te.jsx)(ne.Z,{visible:"Account-AppplyProfession"===u.actionTabs.key,onClose:function(){oe({type:"account/setActionTabs",payload:{}})},departmentId:null===(s=qe.find((function(e){return e.name===Ze.department})))||void 0===s?void 0:s.id,departmentName:Ze.department,majorName:Ze.major_name,onSuccess:function(e){de.setFieldsValue({major_name:e}),ke(o()(o()({},de.getFieldsValue()),{major_name:e})),et()}}),(0,te.jsx)(y.Z,{centered:!0,destroyOnClose:!0,open:nn,title:"头歌教师交流社区",width:560,footer:null,onCancel:function(){tn(!1)},children:(0,te.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,te.jsx)("aside",{style:{letterSpacing:1},children:"基于您所在院校与平台有深度合作我们特意为您配备了平台的1对1助教您可以扫描下方二维码添加助理微信我们将7*24小时为您答疑解惑。"}),(0,te.jsx)("img",{className:"mt20 mb20",src:O,width:162,height:162})]})}),(0,te.jsx)(y.Z,{title:"解绑学号",open:ge,centered:!0,destroyOnClose:!0,onCancel:function(){_e(!1),he.resetFields()},onOk:function(){he.submit()},children:(0,te.jsxs)(g.Z,{form:he,initialValues:{check_type:4},size:"large",onValuesChange:function(e,n){xe(n)},onFinish:function(){var e=d()(r()().mark((function e(n){var t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,U.ZP)("/api/users/accounts/".concat(null==c||null===(t=c.userInfo)||void 0===t?void 0:t.user_id,"/unbind_student_id.json"),{method:"post",body:o()({student_id:Ze.studentNo,school_id:(null==Gn?void 0:Gn.school_id)||(null==Ne||null===(i=Ne.find((function(e){return e.name===Ze.school})))||void 0===i?void 0:i.id)},n)});case 2:0==e.sent.status&&(_.ZP.success("解绑成功"),de.validateFields(),he.resetFields(),_e(!1));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,te.jsxs)("div",{children:["很抱歉,该学号(",Ze.studentNo,")已被使用,您可以提供当前账号所在学校或者原账号(使用该学号的账号)的相关信息进行解绑:"]}),(0,te.jsxs)("div",{className:"mt20 mb20",style:{background:"#f5f5f5",borderRadius:"5px",padding:"10px"},children:["1、当前账号所在学校中任意一位已职业认证的教师姓名",(0,te.jsx)("br",{}),"2、原账号绑定的手机号码或者邮箱",(0,te.jsx)("br",{}),"3、原账号已加入的教学课堂中教师手机号后6位或者课堂邀请码",(0,te.jsx)("br",{}),"注意:请确保原账号所在学校与已加入的教学课堂所属学校相同。"]}),(0,te.jsxs)(b.Z,{gutter:[10,0],children:[(0,te.jsx)(Z.Z,{span:6,children:(0,te.jsx)(g.Z.Item,{name:"check_type",children:(0,te.jsxs)(v.default,{children:[(0,te.jsx)(le,{value:4,children:"教师姓名"}),(0,te.jsx)(le,{value:1,children:"邀请码"}),(0,te.jsx)(le,{value:2,children:"手机号"}),(0,te.jsx)(le,{value:3,children:"邮箱"})]})})}),(0,te.jsxs)(Z.Z,{flex:1,children:[1==(null==fe?void 0:fe.check_type)&&(0,te.jsx)(g.Z.Item,{name:"check_value",rules:[{required:!0,message:"请提供所在学校的教学课堂的邀请码"}],children:(0,te.jsx)(j.Z,{type:"text",placeholder:"请提供所在学校的教学课堂的邀请码",maxLength:10})}),2==(null==fe?void 0:fe.check_type)&&(0,te.jsx)(g.Z.Item,{name:"check_value",rules:[{required:!0,message:"请输入手机号码"}],children:(0,te.jsx)(j.Z,{type:"text",placeholder:"请输入手机号码",maxLength:11})}),3==(null==fe?void 0:fe.check_type)&&(0,te.jsx)(g.Z.Item,{name:"check_value",rules:[{required:!0,type:"email",message:"请输入邮箱"}],children:(0,te.jsx)(j.Z,{type:"text",placeholder:"请输入邮箱"})}),4==(null==fe?void 0:fe.check_type)&&(0,te.jsx)(g.Z.Item,{name:"check_value",rules:[{required:!0,message:"请输入所在学校中任意一位已职业认证的教师姓名"}],children:(0,te.jsx)(j.Z,{type:"text",placeholder:"请输入所在学校中任意一位已职业认证的教师姓名"})})]})]})]})}),(0,te.jsx)(D.Z,{})]})}))},8853:function(e,n,t){t.d(n,{Z:function(){return P}});var i=t(7557),l=t.n(i),a=t(82242),r=t.n(a),s=t(41498),o=t.n(s),c=t(79800),d=t.n(c),u=t(39647),h=t.n(u),m=t(59301),p=t(64201),f=t(92832),x=t(78241),v=t(43418),j=t(61998),g=t(8591),_=t(19842),y=t(3113),b=t(80559),Z=t(58670),k=t(15587),w="flexRow___Ys7oN",I="flexColumn___awMMf",N="formWrap___j8Lzv",C="example___xf0jY",S="footerWrap___GFnQD",F=t(37712),T=["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"],V=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},A=f.Z.TextArea,P=(0,p.connect)((function(e){var n=e.account,t=e.loading;return{account:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){e.account,e.globalSetting;var n=e.loading,t=e.dispatch,i=e.schoolName,a=e.visible,s=e.onClose,c=void 0===s?function(){}:s,u=e.onSuccess,p=void 0===u?function(){}:u,P=(h()(e,T),x.Z.useForm()),q=d()(P,1)[0];(0,m.useEffect)((function(){q.setFieldsValue({name:i})}),[i]);var E=function(){var e=o()(l()().mark((function e(n){var i,a,s,d,u,h,m,f;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(i=n||{}).name,s=i.city,d=void 0===s?[]:s,u=i.address,h=i.remarks,e.next=3,t({type:"account/appplySchool",payload:{name:a,province:d[0],city:d[1],address:u,remarks:h}});case 3:if(2!=(null==(m=e.sent)?void 0:m.status)){e.next=7;break}return f=v.Z.confirm({icon:null,width:600,centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("p",{children:"系统检测到您申请新增的单位已存在,请确认是否为该单位?"}),(0,F.jsx)(j.Z,{columns:[{title:"学校/单位",dataIndex:"name"},{title:"用户数",width:150,dataIndex:"users_count"}],dataSource:[r()({},m)],pagination:!1})]}),onOk:function(){var e=o()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p(a);case 2:f.destroy(),c();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),onCancel:function(){f.destroy()}}),e.abrupt("return");case 7:c(),0==m.status&&(g.ZP.success("新增学校/单位成功!"),p(a));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,F.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:a,title:"申请添加单位名称",width:"600px",footer:null,children:(0,F.jsxs)(x.Z,{className:N,form:q,labelCol:{span:4},wrapperCol:{span:20},onFinish:E,children:[(0,F.jsx)(x.Z.Item,{label:"单位全称:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,F.jsx)(f.Z,{placeholder:"学校或工作单位"})}),(0,F.jsxs)("div",{className:"".concat(w," ").concat(C),children:[(0,F.jsx)("div",{children:"示例:"}),(0,F.jsxs)("div",{className:I,children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(b.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,F.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,F.jsxs)("div",{children:[(0,F.jsx)(Z.Z,{style:{color:"red"}}),(0,F.jsx)("span",{className:"font14 ml5",children:"错误示例数据结构2019春"})]})]})]}),(0,F.jsx)(x.Z.Item,{label:"地区:",name:"city",children:(0,F.jsx)(_.Z,{allowClear:!0,size:"middle",options:k.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:V}})}),(0,F.jsx)(x.Z.Item,{label:"详细地址:",name:"address",children:(0,F.jsx)(f.Z,{placeholder:"请填写完整的地址信息"})}),(0,F.jsx)(x.Z.Item,{label:"说明:",name:"remarks",children:(0,F.jsx)(A,{placeholder:"再次说明特别情况(选填)"})}),(0,F.jsx)("div",{className:S,children:(0,F.jsxs)(x.Z.Item,{children:[(0,F.jsx)(y.ZP,{className:"mr5",size:"middle",onClick:function(){c()},children:"取消"}),(0,F.jsx)(y.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:n["account/appplySchool"],children:"保存"})]})})]})})}))},57668:function(e,n,t){var i=t(79800),l=t.n(i),a=t(59301),r=t(64201),s=t(82730),o=t(37712);n.Z=function(e){var n=e.children,t=e.active,i=((0,r.useParams)(),(0,a.useState)(t||1)),c=l()(i,2),d=(c[0],c[1]),u=(0,a.useRef)();return(0,a.useEffect)((function(){var e;u.current=null===(e=location.pathname.split("/"))||void 0===e?void 0:e[2]}),[location.pathname]),(0,o.jsx)("section",{style:{backgroundColor:"#fff",padding:"22px 0 0 38px"},children:(0,o.jsx)(s.YG,{value:t,onChange:function(e){d(e)},tabBarExtraContent:n,dataSource:[{id:1,name:"基本信息",link:"/users/".concat(u.current,"/baseInfo/edit")},{id:2,name:"实名认证",link:"/users/".concat(u.current,"/realNameCertification")},{id:3,name:"职业认证",link:"/users/".concat(u.current,"/careerCertification")}]})})}}}]);