|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[46178],{63017:function(e,n,t){var i=t(82242),a=t.n(i),l=(t(59301),t(93314)),s=t(3113),r=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,f=e.ButtonTwo,p=e.imgStyles,x=e.loading,v=void 0!==x&&x;return(0,r.jsxs)("section",{className:"tc animated fadeIn",style:a()(a()({},{color:"#999",margin:"100px auto",visibility:v?"hidden":"visible"}),c),children:[(0,r.jsx)("img",{src:n||l,style:a()(a()({},p),{},{pointerEvents:"none",userSelect:"none"})}),(0,r.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,r.jsx)(s.ZP,a()(a()({className:m,onClick:h},i),{},{children:u})),f&&f]})}},62261:function(e,n,t){t.r(n),t.d(n,{default:function(){return re},identityMap:function(){return se}});var i=t(37205),a=t.n(i),l=t(7557),s=t.n(l),r=t(82242),o=t.n(r),c=t(41498),d=t.n(c),u=t(79800),h=t.n(u),m=t(39647),f=t.n(m),p=t(59301),x=t(79265),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(24645),C=t(3113),S="wrap___UcHlM",F="content___G5KsE",T="hint___WWGVB",A="formWrap___PlK4W",V="schoolHintWrap___BVdvA",P="colorCDCDCD___gbgqi",q="color0152d9___R6uW1",E="submitButton___dSqFa",z="submitButtondiv___qx6r5",B="staffidInput___qFhii",L="selecticon___WwgCc",R=t(24146),Q=t(31593),O=t(32637),M=t(95972),G=t(54745),H=t(50023),W=t(72528),D=t(43851),Y=t(34837),U=t(82710),K=t(89392),J=t(29831),X=t(75694),$=t(25553),ee=t(69423),ne=t(10665),te=t(37712),ie=["user","account","globalSetting","shixunHomeworks","loading","dispatch"],ae=v.default.Option,le=j.Z.TextArea,se={teacher:"教师",student:"学生",professional:"专业人士"},re=(0,x.connect)((function(e){var n=e.user,t=e.account,i=e.loading,a=e.globalSetting,l=e.shixunHomeworks;return{user:n,account:t,globalSetting:a,loading:i.effects,shixunHomeworks:l}}))((function(e){var n,t,i,l,r,c=e.user,u=e.account,m=e.globalSetting,se=e.shixunHomeworks,re=e.loading,oe=e.dispatch,ce=(f()(e,ie),g.Z.useForm()),de=h()(ce,1)[0],ue=g.Z.useForm(),he=h()(ue,1)[0],me=(0,p.useState)({}),fe=h()(me,2),pe=(fe[0],fe[1]),xe=(0,p.useState)(!1),ve=h()(xe,2),je=ve[0],ge=ve[1],_e=(0,p.useState)({}),ye=h()(_e,2),be=ye[0],Ze=ye[1],ke=(0,p.useState)([]),we=h()(ke,2),Ie=we[0],Ne=we[1],Ce=(0,p.useState)([]),Se=h()(Ce,2),Fe=Se[0],Te=Se[1],Ae=(0,p.useState)([]),Ve=h()(Ae,2),Pe=Ve[0],qe=Ve[1],Ee=(0,p.useState)([]),ze=h()(Ee,2),Be=ze[0],Le=ze[1],Re=(0,p.useState)([]),Qe=h()(Re,2),Oe=Qe[0],Me=Qe[1],Ge=(0,p.useState)([]),He=h()(Ge,2),We=He[0],De=He[1],Ye=(0,p.useState)(!0),Ue=h()(Ye,2),Ke=Ue[0],Je=Ue[1],Xe=(0,p.useState)(!1),$e=h()(Xe,2),en=$e[0],nn=$e[1],tn=(0,p.useState)(),an=h()(tn,2),ln=an[0],sn=an[1],rn=(0,p.useState)(null),on=h()(rn,2),cn=on[0],dn=on[1],un=(0,p.useState)(!0),hn=h()(un,2),mn=hn[0],fn=hn[1],pn=(0,p.useState)(),xn=h()(pn,2),vn=(xn[0],xn[1],(0,p.useState)(!1)),jn=h()(vn,2),gn=jn[0],_n=(jn[1],(0,p.useState)([])),yn=h()(_n,2),bn=yn[0],Zn=yn[1],kn=(0,p.useState)(!0),wn=h()(kn,2),In=wn[0],Nn=wn[1],Cn=(0,p.useState)(!1),Sn=h()(Cn,2),Fn=Sn[0],Tn=Sn[1],An=(0,p.useRef)(!0),Vn=(0,p.useState)(""),Pn=h()(Vn,2),qn=Pn[0],En=Pn[1],zn=(0,p.useState)(""),Bn=h()(zn,2),Ln=Bn[0],Rn=Bn[1],Qn=(0,p.useState)(""),On=h()(Qn,2),Mn=On[0],Gn=On[1],Hn=(0,p.useRef)((0,K.throttle)((function(e){return Jn(e)}),1200,{leading:!0,trailing:!0})).current,Wn=u.basicInfo,Dn=void 0===Wn?{}:Wn,Yn=Dn&&"certified"==Dn.professional_certification,Un={visible:!1},Kn=(0,p.useRef)();(0,p.useEffect)((function(){var e;Kn.current=null===(e=location.pathname.split("/"))||void 0===e?void 0:e[2]}),[location.pathname]),(0,p.useEffect)((function(){var e,n;null!==(e=u.basicInfo)&&void 0!==e&&e.school_name&&Jn(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,p.useEffect)((function(){In&&(de.setFieldsValue({studentNo:be.studentNo}),de.validateFields(["studentNo"]))}),[be.studentNo]),(0,p.useEffect)((function(){"student"!==be.identity||In||de.validateFields(["studentNo"])}),[be.identity]),(0,p.useEffect)((function(){mn||!be.school||Ie.find((function(e){return e.name===be.school}))?En(""):En("error")}),[mn,be.school,Ie]),(0,p.useEffect)((function(){mn||!be.department||Pe.find((function(e){return e.name===be.department}))?Rn(""):Rn("error")}),[mn,be.department,Pe]),(0,p.useEffect)((function(){!mn&&be.major_name&&(null==Oe?void 0:Oe.length)>0&&!Oe.find((function(e){return e.name===be.major_name}))&&Gn("error")}),[mn,be.major_name]);var Jn=function(){var e=d()(s()().mark((function e(n){var t,i,a;return s()().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,Ne(null==t?void 0:t.schools),Te(null==t?void 0:t.schools),!n||""==n){e.next=24;break}if(Te(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return e.name.includes(n)}))),!((null==t||null===(a=t.schools)||void 0===a?void 0:a.find((function(e){return e.name===n})))||{}).id){e.next=14;break}return e.next=12,nt(n,null==Dn?void 0:Dn.department_name,null==t?void 0:t.schools);case 12:e.next=22;break;case 14:de.setFieldsValue({department:"",major_name:""}),Ze(o()(o()({},de.getFieldValue()),{school:n,department:"",major_name:""})),qe([]),Le([]),Me([]),De([]),Rn(""),Gn("");case 22:e.next=32;break;case 24:de.setFieldsValue({department:"",major_name:""}),Ze(o()(o()({},de.getFieldValue()),{department:"",major_name:""})),qe([]),Le([]),Me([]),De([]),Rn(""),Gn("");case 32:fn(!1);case 33:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Xn=function(e){if(e)return oe({type:"account/getDepartmentOption",payload:{id:e}})};(0,p.useEffect)((function(){if(u.basicInfo){var e,n,t,i=u.basicInfo,a={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)Zn([{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),Je(i.show_realname),dn(i.identity),de.setFieldsValue(a),Ze(a)}}),[u.basicInfo]);var $n,et,nt=function(){var e=d()(s()().mark((function e(n,t,i){var l,r,c,d,u;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=null===(l=(i||Ie).find((function(e){return e.name===n})))||void 0===l?void 0:l.id,e.next=3,Xn(c);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:d=e.t0,u=An.current?t:null==d||null===(r=d.departments[0])||void 0===r?void 0:r.name,de.setFieldsValue({department:u}),Ze(o()(o()({},de.getFieldsValue()),{school:n,department:u})),qe(a()(null==d?void 0:d.departments)),Le(a()(null==d?void 0:d.departments)),Gn(""),tt(An.current,a()(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)}}(),tt=function(){var e=d()(s()().mark((function e(){var n,t,i,l,r,c,d,u,h,m,f=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=f.length>0&&void 0!==f[0]&&f[0],l=f.length>1?f[1]:void 0,r=f.length>2?f[2]:void 0,console.log(de.getFieldsValue()),console.log(be),console.log(Ie),An.current=!1,c=null===(n=r.find((function(e){return e.name===de.getFieldValue("school")})))||void 0===n?void 0:n.id,!(d=null===(t=l.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)&&(Me(a()(null==u?void 0:u.majors)),De(a()(null==u?void 0:u.majors)),m=i?null==Dn?void 0:Dn.major_name:null==u||null===(h=u.majors[0])||void 0===h?void 0:h.name,de.setFieldsValue({major_name:m}),Ze(o()(o()({},de.getFieldsValue()),{major_name:m})));case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),it=function(){var e=d()(s()().mark((function e(){var n,t,i,l,r,c,d;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null===(n=Ie.find((function(e){return e.name===de.getFieldValue("school")})))||void 0===n?void 0:n.id,!(l=null===(t=Pe.find((function(e){return e.name===de.getFieldValue("department")})))||void 0===t?void 0:t.id)){e.next=8;break}return Gn(""),e.next=6,(0,U.ZP)("/api/schools/".concat(i,"/departments/").concat(l,"/major_option.json"),{method:"get"});case 6:0==(null==(r=e.sent)?void 0:r.status)&&(Me(null==r?void 0:r.majors),De(a()(null==r?void 0:r.majors)),d=null==r||null===(c=r.majors)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.name,de.setFieldsValue({major_name:d}),Ze(o()(o()({},de.getFieldsValue()),{major_name:d})));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),at=function(){var e=d()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Jn();case 2:de.setFieldsValue({school:n,department:""}),Ze(o()(o()({},be),{school:n,department:""}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),lt=function(e){var n,t,i,a;return"number"===e?"teacher"===be.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"===be.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===(a=m.setting)||void 0===a?void 0:a.homepage_stu_qq_qrcode_url):void 0},st=function(){var e=d()(s()().mark((function e(n){var t,i,a,l,r,o,h,m,f,p,v,j,g,b,Z,k,w,I,N,C,S,F,T,A,V,P,q;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=n.nickname,r=n.gender,o=n.identity,h=n.studentNo,m=n.jobTitle,f=n.manager,p=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=Pe.find((function(e){return e.name===v})))||void 0===t?void 0:t.id,I=null===(i=Ie.find((function(e){return e.name===p})))||void 0===i?void 0:i.id,N="student"===o?null===(a=Oe.find((function(e){return e.name===k})))||void 0===a?void 0:a.id:null,C=u.basicInfo,console.log("B",n,C),S=[],"uncertified"!=C.authentication&&(ln!=C.name&&S.push("姓名"),r!=C.gender&&S.push("性别")),F=[],Yn&&(o!=C.identity?F.push("职业"):(be.identity,"teacher"===be.identity&&m!=C.technical_title&&F.push("职业"),"professional"===be.identity&&f!=C.technical_title&&F.push("职业")),p!=C.school_name&&F.push("学校/单位"),v!=C.department_name&&F.push("院系/部门"),"student"===o&&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群:",lt("number"),",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,te.jsx)("img",{src:lt("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群:",lt("number"),",联系群内的运营人员申请新增部门或专业名称。"]}),(0,te.jsx)("img",{src:lt("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 16:if("student"!==o||!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群:",lt("number"),",联系群内的运营人员申请新增部门或专业名称。"]}),(0,te.jsx)("img",{src:lt("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()(s()().mark((function e(){var n,t,i,a,d,p,v;return s()().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===(a=c.userInfo)||void 0===a?void 0:a.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:r,identity:o,location:location,name:ln,nickname:l,school_id:I,edu_background:j,edu_entry_year:g,show_realname:Ke,brief_introduction:b,student_id:"student"===o?h:null,technical_title:m||f,face_image:null==bn||null===(t=bn[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!==(p=u.basicInfo)&&void 0!==p&&p.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===cn||"teacher"!==o){e.next=18;break}return nn(!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(Kn.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:r,identity:o,location:location,name:ln,nickname:l,school_id:I,edu_background:j,edu_entry_year:g,staff_id:Z,show_realname:Ke,brief_introduction:b,student_id:"student"===o?h:null,technical_title:m||f,face_image:null==bn||null===(A=bn[0])||void 0===A||null===(A=A.response)||void 0===A?void 0:A.id}});case 25:if(-1!==(null==(V=e.sent)?void 0:V.status)){e.next=28;break}return e.abrupt("return");case 28:if(!V){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===cn||"teacher"!==o){e.next=35;break}return nn(!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(Kn.current,"/baseInfo"));case 37:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),rt=(0,te.jsxs)("div",{children:[gn?(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:A,layout:"horizontal",onValuesChange:function(e){var n;Ze(o()({},de.getFieldsValue())),(null==e||null===(n=e.nickname)||void 0===n?void 0:n.length)<=0&&(Je(!0),de.setFieldsValue({name:ln})),"name"in e&&sn(e.name),"identity"in e&&de.setFieldsValue({staff_id:""})},onFinish:st,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:be.nickname?Ke?"显示:平台将显示您的真实姓名":"隐藏:平台将显示你的昵称":"填写昵称后可设置姓名进行隐藏(当进行姓名搜索时,会展示您的真实姓名)"}),children:(0,te.jsx)(j.Z,{style:{height:40},disabled:!!be.nickname&&!Ke,placeholder:"请输入真实姓名,最大限制".concat(20,"个字符"),maxLength:20,suffix:be.nickname?(0,te.jsx)("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(Ke?"icon-xianshi":"icon-yincang"," font18 ").concat(q),onClick:function(){var e=!Ke;Je(e);var n=e?ln:(0,M.YA)(ln);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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Un),{},{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)(ae,{value:"teacher",children:"教师"}),(0,te.jsx)(ae,{value:"student",children:"学生"}),(0,te.jsx)(ae,{value:"professional",children:"专业人士"})]})})}))}),(0,te.jsxs)(Z.Z,{children:["student"===be.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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Un),{},{children:(0,te.jsx)(g.Z.Item,{initialValue:be.studentNo,name:"studentNo",dependencies:["school"],validateTrigger:"onBlur",rules:[{whitespace:!0,message:"不能全为空"},{required:!0,validator:(et=d()(s()().mark((function e(n,t){var i,a,l;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Nn(!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==Ie||null===(a=Ie.find((function(e){return e.name===be.school})))||void 0===a?void 0:a.id)||(null==Dn?void 0:Dn.school_id),student_id:t}});case 3:return(null==(l=e.sent)?void 0:l.status)<-1&&Fn&&(ge(!0),Tn(!1)),e.abrupt("return",(null==l?void 0:l.status)<-1?Promise.reject((0,te.jsxs)("span",{children:["该学号已被使用,如需继续使用该学号,请先",(0,te.jsx)("a",{onClick:function(){ge(!0)},children:"解绑学号"})]})):Promise.resolve());case 6:case"end":return e.stop()}}),e)}))),function(e,n){return et.apply(this,arguments)})}],children:(0,te.jsx)(j.Z,{size:"large",style:{width:200},type:"text",placeholder:"请输入学号,最大限制20个字符",showCount:!0,maxLength:20})})})),"teacher"===be.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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Un),{},{children:(0,te.jsx)(g.Z.Item,{initialValue:be.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,te.jsxs)(v.default,{style:{width:200},size:"large",children:[(0,te.jsx)(ae,{value:"教授",children:"教授"}),(0,te.jsx)(ae,{value:"研究员",children:"研究员"}),(0,te.jsx)(ae,{value:"副教授",children:"副教授"}),(0,te.jsx)(ae,{value:"副研究员",children:"副研究员"}),(0,te.jsx)(ae,{value:"讲师",children:"讲师"}),(0,te.jsx)(ae,{value:"助理研究员",children:"助理研究员"}),(0,te.jsx)(ae,{value:"助理教授",children:"助理教授"})]})})})),"professional"===be.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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Un),{},{children:(0,te.jsx)(g.Z.Item,{initialValue:be.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,te.jsxs)(v.default,{style:{width:200},size:"large",children:[(0,te.jsx)(ae,{value:"企业管理者",children:"企业管理者"}),(0,te.jsx)(ae,{value:"部门管理者",children:"部门管理者"}),(0,te.jsx)(ae,{value:"高级工程师",children:"高级工程师"}),(0,te.jsx)(ae,{value:"工程师",children:"工程师"}),(0,te.jsx)(ae,{value:"助理工程师",children:"助理工程师"})]})})}))]}),("teacher"===be.identity||"professional"===be.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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Un),{},{children:(0,te.jsxs)("div",{style:{position:"relative"},children:[(0,te.jsx)(g.Z.Item,{label:"学校/单位",name:"school",wrapperCol:{span:10},extra:!mn&&be.school&&!(null!=Ie&&Ie.find((function(e){return e.name===be.school})))&&(0,te.jsx)("div",{className:V,children:(0,te.jsxs)("span",{className:P,children:["未找到包含“",be.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"===be.identity?"727685969":"816055138",",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,te.jsx)("img",{src:"teacher"===be.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:qn,size:"large",showSearch:!0,onChange:Hn,placeholder:"请输入单位名称",children:Fe.map((function(e,n){return(0,te.jsx)(ae,{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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Un),{},{children:(0,te.jsxs)("div",{style:{position:"relative"},children:[(0,te.jsx)(g.Z.Item,{label:"院系/部门",name:"department",wrapperCol:{span:10},extra:!mn&&be.department&&!(null!=Pe&&Pe.find((function(e){return e.name===be.department})))&&(0,te.jsxs)("div",{className:V,children:[(0,te.jsx)("span",{className:P,children:be.department?"未找到包含“".concat(be.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群:",lt("number"),",联系群内的运营人员申请新增部门或专业名称。"]}),(0,te.jsx)("img",{src:lt("code"),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})]}),children:(0,te.jsx)(w.Z,{status:Ln,size:"large",placeholder:"请输入部门名称",onChange:function(e){""==e&&(de.setFieldsValue({major_name:""}),Ze(o()(o()({},de.getFieldsValue()),{major_name:""})),Me([]),De([]),Gn("")),it(),Le(Pe.filter((function(n){return n.name.includes(e)})))},children:Be.map((function(e,n){return(0,te.jsxs)(ae,{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"})})})]})})),"student"===be.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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},Un),{},{children:(0,te.jsxs)("div",{style:{position:"relative"},children:[(0,te.jsx)(g.Z.Item,{label:"专业",name:"major_name",wrapperCol:{span:10},extra:"error"===Mn&&(0,te.jsx)("div",{className:V,children:(0,te.jsxs)("span",{className:P,children:["未找到“",be.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"===be.identity?"727685969":"816055138",",联系群内的运营人员申请新增部门或专业名称。"]}),(0,te.jsx)("img",{src:"teacher"===be.identity?J:X,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})}),children:(0,te.jsx)(w.Z,{status:Mn,size:"large",placeholder:"请输入专业名称",onChange:function(e){De(Oe.filter((function(n){return n.name.includes(e)}))),e&&0==(null==Oe?void 0:Oe.length)?Gn("error"):""!=e?e&&(null==Oe?void 0:Oe.length)>0&&Oe.find((function(n){return n.name===e}))&&Gn(""):Gn("")},children:We.map((function(e,n){return(0,te.jsxs)(ae,{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=be.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:($n=(new Date).getFullYear(),Array(31).fill({}).map((function(e,n){return(0,te.jsx)(ae,{value:$n-n,children:(0,te.jsx)("span",{children:$n-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)(ae,{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:bn,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){Zn(a()(e.fileList))},children:(null==bn?void 0:bn.length)>0?null:rt})}),(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)(le,{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===se.actionTabs.type?z:E," ml100"),size:"middle",type:"primary",onClick:function(){Tn(!0),de.submit()},loading:re["account/updateAccount"],children:"保存"}),(0,te.jsx)(C.ZP,{className:E,size:"middle",onClick:function(){return x.history.push("/users/".concat(Kn.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:be.school,onSuccess:at}),(0,te.jsx)(Q.Z,{visible:"Account-AppplyDepartment"===u.actionTabs.key,onClose:function(){oe({type:"account/setActionTabs",payload:{}})},schoolId:null===(l=Ie.find((function(e){return e.name===be.school})))||void 0===l?void 0:l.id,schoolName:be.school,departmentName:be.department,onSuccess:function(e){return nt(be.school,e)}}),(0,te.jsx)(ne.Z,{visible:"Account-AppplyProfession"===u.actionTabs.key,onClose:function(){oe({type:"account/setActionTabs",payload:{}})},departmentId:null===(r=Pe.find((function(e){return e.name===be.department})))||void 0===r?void 0:r.id,departmentName:be.department,majorName:be.major_name,onSuccess:function(e){de.setFieldsValue({major_name:e}),Ze(o()(o()({},de.getFieldsValue()),{major_name:e})),it()}}),(0,te.jsx)(y.Z,{centered:!0,destroyOnClose:!0,open:en,title:"头歌教师交流社区",width:560,footer:null,onCancel:function(){nn(!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:je,centered:!0,destroyOnClose:!0,onCancel:function(){ge(!1),he.resetFields()},onOk:function(){he.submit()},children:(0,te.jsxs)(g.Z,{form:he,size:"large",onValuesChange:function(e,n){pe(n)},onFinish:function(){var e=d()(s()().mark((function e(n){var t,i;return s()().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:be.studentNo,school_id:(null==Ie||null===(i=Ie.find((function(e){return e.name===be.school})))||void 0===i?void 0:i.id)||(null==Dn?void 0:Dn.school_id),check_type:4},n)});case 2:0==e.sent.status&&(_.ZP.success("解绑成功"),de.validateFields(),he.resetFields(),ge(!1));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,te.jsxs)("div",{className:"mb20",children:["很抱歉,该学号(",be.studentNo,")在",be.school,"内已被使用,您可以提供",(0,te.jsx)("span",{style:{color:"#3061d0"},children:"当前账号所在学校中任意一位已职业认证的教师姓名"}),"进行解绑:"]}),(0,te.jsx)(g.Z.Item,{name:"check_value",rules:[{required:!0,message:"请填写".concat(null==be?void 0:be.school,"中任意一位已职业认证的教师姓名")}],style:{marginBottom:"10px"},children:(0,te.jsx)(j.Z,{type:"text",placeholder:"请填写".concat(null==be?void 0:be.school,"中任意一位已职业认证的教师姓名")})}),(0,te.jsxs)("div",{children:["请注意,每位学生每天仅有 ",(0,te.jsx)("span",{style:{color:"#FA6400"},children:"2"})," 次成功解绑学号的机会,请谨慎操作"]})]})}),(0,te.jsx)(D.Z,{})]})}))},24146:function(e,n,t){t.d(n,{Z:function(){return P}});var i=t(7557),a=t.n(i),l=t(82242),s=t.n(l),r=t(41498),o=t.n(r),c=t(79800),d=t.n(c),u=t(39647),h=t.n(u),m=t(59301),f=t(79265),p=t(92832),x=t(78241),v=t(43418),j=t(2595),g=t(8591),_=t(19842),y=t(3113),b=t(79999),Z=t(33130),k=t(2400),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"],A=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},V=p.Z.TextArea,P=(0,f.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,l=e.visible,r=e.onClose,c=void 0===r?function(){}:r,u=e.onSuccess,f=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()(a()().mark((function e(n){var i,l,r,d,u,h,m,p;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=(i=n||{}).name,r=i.city,d=void 0===r?[]:r,u=i.address,h=i.remarks,e.next=3,t({type:"account/appplySchool",payload:{name:l,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 p=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:[s()({},m)],pagination:!1})]}),onOk:function(){var e=o()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(l);case 2:p.destroy(),c();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),onCancel:function(){p.destroy()}}),e.abrupt("return");case 7:c(),0==m.status&&(g.ZP.success("新增学校/单位成功!"),f(l));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:l,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)(p.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:A}})}),(0,F.jsx)(x.Z.Item,{label:"详细地址:",name:"address",children:(0,F.jsx)(p.Z,{placeholder:"请填写完整的地址信息"})}),(0,F.jsx)(x.Z.Item,{label:"说明:",name:"remarks",children:(0,F.jsx)(V,{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:"保存"})]})})]})})}))},25553:function(e,n,t){var i=t(79800),a=t.n(i),l=t(59301),s=t(79265),r=t(48999),o=t(37712);n.Z=function(e){var n=e.children,t=e.active,i=((0,s.useParams)(),(0,l.useState)(t||1)),c=a()(i,2),d=(c[0],c[1]),u=(0,l.useRef)();return(0,l.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)(r.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")}]})})}}}]); |