|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[44838],{97937:function(e,n,t){t.d(n,{Z:function(){return c}});var i=t(87462),a=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},s=t(43387),l=function(e,n){return a.createElement(s.Z,(0,i.Z)({},e,{ref:n,icon:r}))};var c=a.forwardRef(l)},23430:function(e,n,t){t.d(n,{Z:function(){return c}});var i=t(87462),a=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},s=t(43387),l=function(e,n){return a.createElement(s.Z,(0,i.Z)({},e,{ref:n,icon:r}))};var c=a.forwardRef(l)},50888:function(e,n,t){t.d(n,{Z:function(){return c}});var i=t(87462),a=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},s=t(43387),l=function(e,n){return a.createElement(s.Z,(0,i.Z)({},e,{ref:n,icon:r}))};var c=a.forwardRef(l)},24969:function(e,n,t){t.d(n,{Z:function(){return c}});var i=t(87462),a=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},s=t(43387),l=function(e,n){return a.createElement(s.Z,(0,i.Z)({},e,{ref:n,icon:r}))};var c=a.forwardRef(l)},33160:function(e,n,t){t.d(n,{Z:function(){return c}});var i=t(87462),a=t(67294),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},s=t(43387),l=function(e,n){return a.createElement(s.Z,(0,i.Z)({},e,{ref:n,icon:r}))};var c=a.forwardRef(l)},75490:function(e,n,t){t.d(n,{Z:function(){return h}});var i=t(27424),a=t.n(i),r=t(67294),s=t(91562),l=t(71577),c=t(33160),o=t(23430),d=t(97937),u=t(85893),h=function(){var e=(0,r.useState)(""),n=a()(e,2),t=n[0],i=n[1],h=(0,r.useState)(0),f=a()(h,2),m=f[0],p=f[1],x=(0,r.useRef)("");function v(e){27==e.keyCode&&x.current&&g()}function g(){document.body.style.overflow="auto",i("")}(0,r.useEffect)((function(){return s.Z.subscribe("preview-image",(function(e){i(e),document.body.style.overflow="hidden"}))}),[]),(0,r.useEffect)((function(){return document.addEventListener("keydown",v),function(){document.removeEventListener("keydown",v)}}),[]),(0,r.useEffect)((function(){x.current=t}),[t]);var j=(0,r.useRef)(),y=(0,r.useRef)();return(0,u.jsx)(r.Fragment,{children:t?(0,u.jsxs)("div",{className:"image-preview-container",ref:j,onClick:function(e){e.nativeEvent.target!==j.current&&e.nativeEvent.target!==y.current||g()},children:[(0,u.jsxs)("div",{className:"button-group",children:[(0,u.jsxs)(l.ZP,{onClick:function(){p(m+90)},children:["旋转",(0,u.jsx)(c.Z,{})]}),(0,u.jsxs)(l.ZP,{href:t,children:["下载",(0,u.jsx)(o.Z,{})]}),(0,u.jsxs)(l.ZP,{onClick:g,children:["关闭",(0,u.jsx)(d.Z,{})]})]}),(0,u.jsx)("div",{className:"preview-wrp-group",ref:y,children:(0,u.jsx)("img",{className:"image-preview",src:t,alt:"预览大图",style:{transform:"rotate(".concat(m,"deg)")}})})]}):null})}},28744:function(e,n,t){t.r(n),t.d(n,{default:function(){return te},identityMap:function(){return ne}});var i=t(861),a=t.n(i),r=t(42122),s=t.n(r),l=t(17061),c=t.n(l),o=t(17156),d=t.n(o),u=t(27424),h=t.n(u),f=t(70215),m=t.n(f),p=t(67294),x=t(88275),v=t(96101),g=t(11486),j=t(91773),y=t(2453),b=t(14446),_=t(71230),Z=t(15746),w=t(83062),k=t(49288),N=t(78045),I=t(92421),C=t(71577),S="wrap___isQuw",A="content___Gh5i7",P="hint___dh6_r",T="title___Txz11",E="titleWrap___p75TL",z="formWrap___tyQRy",F="schoolHintWrap___WnTDr",V="colorCDCDCD___Xq4Mx",q="color0152d9___lAjmo",R="submitButton___LHi3i",H="submitButtondiv___J6VbH",L="staffidInput___M9rEi",D=t(90320),M=t(6971),B=t(32637),O=t(29427),W=t(45868),G=t(50888),U=t(24969),Y=t(75490),J=t(91562),X=t(59758),K=t(85893),Q=["user","account","globalSetting","shixunHomeworks","loading","dispatch"],$=v.Z.Option,ee=g.Z.TextArea,ne={teacher:"教师",student:"学生",professional:"专业人士"},te=(0,x.connect)((function(e){var n=e.user,t=e.account,i=e.loading,a=e.globalSetting,r=e.shixunHomeworks;return{user:n,account:t,globalSetting:a,loading:i.effects,shixunHomeworks:r}}))((function(e){var n,t,i,r,l=e.user,o=e.account,u=(e.globalSetting,e.shixunHomeworks),f=e.loading,ne=e.dispatch,te=(m()(e,Q),j.Z.useForm()),ie=h()(te,1)[0],ae=(0,p.useState)({}),re=h()(ae,2),se=re[0],le=re[1],ce=(0,p.useState)([]),oe=h()(ce,2),de=oe[0],ue=oe[1],he=(0,p.useState)([]),fe=h()(he,2),me=fe[0],pe=fe[1],xe=(0,p.useState)([]),ve=h()(xe,2),ge=ve[0],je=ve[1],ye=(0,p.useState)([]),be=h()(ye,2),_e=be[0],Ze=be[1],we=(0,p.useState)(!0),ke=h()(we,2),Ne=ke[0],Ie=ke[1],Ce=(0,p.useState)(!1),Se=h()(Ce,2),Ae=Se[0],Pe=Se[1],Te=(0,p.useState)(),Ee=h()(Te,2),ze=Ee[0],Fe=Ee[1],Ve=(0,p.useState)(null),qe=h()(Ve,2),Re=qe[0],He=qe[1],Le=(0,p.useState)(!0),De=h()(Le,2),Me=De[0],Be=De[1],Oe=(0,p.useState)(),We=h()(Oe,2),Ge=(We[0],We[1],(0,p.useState)(!1)),Ue=h()(Ge,2),Ye=Ue[0],Je=(Ue[1],(0,p.useState)([])),Xe=h()(Je,2),Ke=Xe[0],Qe=Xe[1],$e=(0,p.useState)("学号"),en=h()($e,2),nn=en[0],tn=en[1],an=o.basicInfo,rn=void 0===an?{}:an,sn=rn&&"certified"==rn.professional_certification,ln={visible:!1};(0,p.useEffect)((function(){cn()}),[]),(0,p.useEffect)((function(){null!=rn&&rn.identity&&"student"===(null==rn?void 0:rn.identity)||null==rn||!rn.identity?tn("学号"):tn("工号")}),[o]),(0,p.useEffect)((function(){d()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,on(null===(n=o.basicInfo)||void 0===n?void 0:n.school_id);case 2:t=e.sent,je(null==t?void 0:t.departments);case 4:case"end":return e.stop()}}),e)})))()}),[null===(n=o.basicInfo)||void 0===n?void 0:n.school_id]);var cn=function(){var e=d()(c()().mark((function e(){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Be(!0),e.next=3,ne({type:"account/getSchoolOption"});case 3:n=e.sent,Be(!1),ue(null==n?void 0:n.schools);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),on=function(e){if(e)return ne({type:"account/getDepartmentOption",payload:{id:e}})};(0,p.useEffect)((function(){if(o.basicInfo){var e,n,t=o.basicInfo,i={nickname:t.nickname,name:t.show_realname?t.name:(0,O.YA)(t.name),gender:t.gender,city:[t.location,t.location_city],identity:t.identity,school:t.school_name,department:t.department_name,studentNo:t.student_id,edu_entry_year:t.edu_entry_year,edu_background:t.edu_background,brief_introduction:t.brief_introduction,jobTitle:"teacher"==t.identity?t.technical_title:"教授",manager:"professional"==t.identity?t.technical_title:"企业管理者",staff_id:t.staff_id};if(null!=t&&t.face_image)Qe([{uid:"111",name:"111",url:X.Z.API_SERVER+t.face_image,response:{id:null==t||null===(e=t.face_image)||void 0===e||null===(n=e.split("/"))||void 0===n?void 0:n[3]}}]);Fe(t.name),Ie(t.show_realname),He(t.identity),ie.setFieldsValue(i),le(i)}}),[o.basicInfo]);var dn,un,hn,fn=function(){var e=d()(c()().mark((function e(n,t){var i,a,r,l,o,d;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=null===(i=de.find((function(e){return e.name===n})))||void 0===i?void 0:i.id,e.next=3,on(l);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:o=e.t0,je(null==o?void 0:o.departments),d=t||(null==o||null===(a=o.departments)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.name),ie.setFieldsValue({department:d}),le(s()(s()({},se),{school:n,department:d}));case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),mn=function(){var e=d()(c()().mark((function e(n){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cn();case 2:ie.setFieldsValue({school:n,department:""}),le(s()(s()({},se),{school:n,department:""}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),pn=function(){var e=d()(c()().mark((function e(n){var t,i,a,r,s,u,h,f,m,p,v,g,j,_,Z,w,k,N,I,C,S,A,P,T,E;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.nickname,r=n.gender,s=n.identity,u=n.studentNo,h=n.jobTitle,f=n.manager,m=n.school,p=n.department,v=n.edu_background,g=n.edu_entry_year,j=n.brief_introduction,n.face_image,_=n.staff_id,Z=null===(t=ge.find((function(e){return e.name===p})))||void 0===t?void 0:t.id,w=null===(i=de.find((function(e){return e.name===m})))||void 0===i?void 0:i.id,k=o.basicInfo,N=[],"uncertified"!=k.authentication&&(ze!=k.name&&N.push("姓名"),r!=k.gender&&N.push("性别")),I=[],sn&&(s!=k.identity?I.push("职业"):("student"===se.identity&&u!=k.student_id&&I.push("职业"),"teacher"===se.identity&&h!=k.technical_title&&I.push("职业"),"professional"===se.identity&&f!=k.technical_title&&I.push("职业")),m!=k.school_name&&I.push("学校/单位"),p!=k.department_name&&I.push("院系/部门")),!(N.length>0||I.length>0)){e.next=12;break}b.Z.confirm({centered:!0,icon:null,okText:"确定",cancelText:"取消",title:"提示",content:(0,K.jsx)("div",{children:"本次修改涉及".concat(N.toString().replaceAll(",","、")).concat(N.length>0&&I.length>0?"、":"").concat(I.toString().replaceAll(",","、"),",需要重新进行").concat(N.length>0?"实名认证":"").concat(N.length>0&&I.length>0?"和":"").concat(I.length>0?"职业认证":"",",请确认是否进行修改")}),onOk:function(){var e=d()(c()().mark((function e(){var n,t,i,d,m,p,b,_;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(N.length>0)){e.next=3;break}return e.next=3,(0,W.RA)({login:null===(d=l.userInfo)||void 0===d?void 0:d.login});case 3:if(!(I.length>0)){e.next=6;break}return e.next=6,(0,W.kN)({login:null===(m=l.userInfo)||void 0===m?void 0:m.login});case 6:return e.next=8,ne({type:"account/updateAccount",payload:{id:null===(n=o.basicInfo)||void 0===n?void 0:n.id,department_id:Z,gender:r,identity:s,location:location,name:ze,nickname:a,school_id:w,edu_background:v,edu_entry_year:g,show_realname:Ne,brief_introduction:j,student_id:"student"===s?u:null,technical_title:h||f,face_image:null==Ke||null===(t=Ke[0])||void 0===t||null===(i=t.response)||void 0===i?void 0:i.id}});case 8:if(-1!==(null==(p=e.sent)?void 0:p.status)){e.next=11;break}return e.abrupt("return");case 11:if(!p){e.next=19;break}if(y.ZP.info("保存成功"),null!==(b=o.basicInfo)&&void 0!==b&&b.base_info_completed||ne({type:"user/getUserInfo"}),ne({type:"account/getBasicInfo",payload:{login:null===(_=l.userInfo)||void 0===_?void 0:_.login}}),s===Re||"teacher"!==s){e.next=17;break}return e.abrupt("return");case 17:"0"===localStorage.getItem("Noviceguide")||ne({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:4,href:"/classrooms",text:(0,K.jsx)("div",{children:"OK,接下来,让我们开始新建【教学课堂】,请您找到闪光框并点击 “教学课堂”。"})}}),x.history.push("/account/profile");case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.next=25;break;case 12:return e.next=14,ne({type:"account/updateAccount",payload:{id:null===(C=o.basicInfo)||void 0===C?void 0:C.id,department_id:Z,gender:r,identity:s,location:location,name:ze,nickname:a,school_id:w,edu_background:v,edu_entry_year:g,staff_id:_,show_realname:Ne,brief_introduction:j,student_id:"student"===s?u:null,technical_title:h||f,face_image:null==Ke||null===(S=Ke[0])||void 0===S||null===(A=S.response)||void 0===A?void 0:A.id}});case 14:if(-1!==(null==(P=e.sent)?void 0:P.status)){e.next=17;break}return e.abrupt("return");case 17:if(!P){e.next=25;break}if(y.ZP.info("保存成功"),null!==(T=o.basicInfo)&&void 0!==T&&T.base_info_completed||ne({type:"user/getUserInfo"}),ne({type:"account/getBasicInfo",payload:{login:null===(E=l.userInfo)||void 0===E?void 0:E.login}}),s===Re||"teacher"!==s){e.next=23;break}return e.abrupt("return");case 23:"0"===localStorage.getItem("Noviceguide")||ne({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:4,href:"/classrooms",text:(0,K.jsx)("div",{children:"OK,接下来,让我们开始新建【教学课堂】,请您找到闪光框并点击 “教学课堂”。"})}}),x.history.push("/account/profile");case 25:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),xn=function(){Pe(!1),x.history.push("/account/profile")},vn=(0,K.jsxs)("div",{children:[Ye?(0,K.jsx)(G.Z,{}):(0,K.jsx)(U.Z,{}),(0,K.jsx)("div",{style:{marginTop:8},children:"上传"})]});return(0,K.jsxs)("section",{className:S,children:[(0,K.jsxs)("div",{className:A,children:[(0,K.jsx)("div",{className:E,children:(0,K.jsx)("div",{className:T,children:"基本信息"})}),(0,K.jsxs)(j.Z,{form:ie,className:z,layout:"horizontal",onValuesChange:function(e){var n;(le(s()({},ie.getFieldsValue())),"school"in e)&&(pe(de.filter((function(n){return n.name.includes(e.school)}))),(de.find((function(n){return n.name===e.school}))||{}).id?fn(e.school):(ie.setFieldsValue({department:""}),le(s()(s()({},se),{school:e.school,department:""}))));(null==e||null===(n=e.nickname)||void 0===n?void 0:n.length)<=0&&(Ie(!0),ie.setFieldsValue({name:ze})),"name"in e&&Fe(e.name),"identity"in e&&ie.setFieldsValue({staff_id:""})},onFinish:pn,children:[(0,K.jsx)(j.Z.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(20,"个字符")},{validator:O.HJ}],extra:(0,K.jsx)("span",{children:se.nickname?Ne?"显示:平台将显示您的真实姓名":"隐藏:平台将显示你的昵称":"填写昵称后可设置姓名进行隐藏(当进行姓名搜索时,会展示您的真实姓名)"}),children:(0,K.jsx)(g.Z,{style:{height:40},disabled:!!se.nickname&&!Ne,placeholder:"请输入真实姓名,最大限制".concat(20,"个字符"),maxLength:20,suffix:se.nickname?(0,K.jsx)("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(Ne?"icon-xianshi":"icon-yincang"," font18 ").concat(q),onClick:function(){var e=!Ne;Ie(e);var n=e?ze:(0,O.YA)(ze);ie.setFieldsValue({name:n})}}):null})}),(0,K.jsxs)(_.Z,{gutter:[10,0],children:[(0,K.jsx)(Z.Z,{children:(0,K.jsx)(w.Z,s()(s()({placement:"bottom",title:function(){return(0,K.jsxs)("div",{children:[(0,K.jsx)("div",{children:"已提交职业认证"}),(0,K.jsxs)("div",{children:["可在",(0,K.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},ln),{},{children:(0,K.jsx)(j.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,K.jsxs)(v.Z,{style:{width:160},size:"large",children:[(0,K.jsx)($,{value:"teacher",children:"教师"}),(0,K.jsx)($,{value:"student",children:"学生"}),(0,K.jsx)($,{value:"professional",children:"专业人士"})]})})}))}),(0,K.jsxs)(Z.Z,{children:["student"===se.identity&&(0,K.jsx)(w.Z,s()(s()({placement:"bottom",title:function(){return(0,K.jsxs)("div",{children:[(0,K.jsx)("div",{children:"已提交职业认证"}),(0,K.jsxs)("div",{children:["可在",(0,K.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},ln),{},{children:(0,K.jsx)(j.Z.Item,{initialValue:se.studentNo,name:"studentNo",rules:[{required:!0,message:"请先输入学号"}],children:(0,K.jsx)(g.Z,{size:"large",style:{width:200},type:"text",placeholder:"请输入学号"})})})),"teacher"===se.identity&&(0,K.jsx)(w.Z,s()(s()({placement:"bottom",title:function(){return(0,K.jsxs)("div",{children:[(0,K.jsx)("div",{children:"已提交职业认证"}),(0,K.jsxs)("div",{children:["可在",(0,K.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},ln),{},{children:(0,K.jsx)(j.Z.Item,{initialValue:se.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,K.jsxs)(v.Z,{style:{width:200},size:"large",children:[(0,K.jsx)($,{value:"教授",children:"教授"}),(0,K.jsx)($,{value:"研究员",children:"研究员"}),(0,K.jsx)($,{value:"副教授",children:"副教授"}),(0,K.jsx)($,{value:"副研究员",children:"副研究员"}),(0,K.jsx)($,{value:"讲师",children:"讲师"}),(0,K.jsx)($,{value:"助理研究员",children:"助理研究员"}),(0,K.jsx)($,{value:"助理教授",children:"助理教授"})]})})})),"professional"===se.identity&&(0,K.jsx)(w.Z,s()(s()({placement:"bottom",title:function(){return(0,K.jsxs)("div",{children:[(0,K.jsx)("div",{children:"已提交职业认证"}),(0,K.jsxs)("div",{children:["可在",(0,K.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},ln),{},{children:(0,K.jsx)(j.Z.Item,{initialValue:se.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,K.jsxs)(v.Z,{style:{width:200},size:"large",children:[(0,K.jsx)($,{value:"企业管理者",children:"企业管理者"}),(0,K.jsx)($,{value:"部门管理者",children:"部门管理者"}),(0,K.jsx)($,{value:"高级工程师",children:"高级工程师"}),(0,K.jsx)($,{value:"工程师",children:"工程师"}),(0,K.jsx)($,{value:"助理工程师",children:"助理工程师"})]})})}))]}),("teacher"===se.identity||"professional"===se.identity)&&(0,K.jsx)(Z.Z,{flex:1,children:(0,K.jsx)(j.Z.Item,{label:"工号",name:"staff_id",labelCol:{span:4},rules:[{validator:function(e,n){return/[\u4E00-\u9FA5]/g.test(n)?Promise.reject("请勿输入中文字符"):Promise.resolve()}}],children:(0,K.jsx)(g.Z,{className:L,suffix:" "})})})]}),(0,K.jsx)(w.Z,s()(s()({placement:"bottom",title:function(){return(0,K.jsxs)("div",{children:[(0,K.jsx)("div",{children:"已提交职业认证"}),(0,K.jsxs)("div",{children:["可在",(0,K.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},ln),{},{children:(0,K.jsx)(j.Z.Item,{label:"学校/单位",name:"school",wrapperCol:{span:10},extra:!Me&&se.school&&!(null!=de&&de.find((function(e){return e.name===se.school})))&&(0,K.jsxs)("div",{className:F,children:[(0,K.jsxs)("span",{className:V,children:["未找到包含“",se.school,"”的高校,"]}),(0,K.jsx)("span",{className:"".concat(q," current"),onClick:function(){ne({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},children:"申请新增"})]}),rules:[{required:!0,message:"请先选择学校/单位"},{whitespace:!0,message:"请先选择学校/单位"}],children:(0,K.jsx)(k.Z,{size:"large",showSearch:!0,options:null==me?void 0:me.map((function(e){return{value:e.name}}))})})})),(0,K.jsx)(w.Z,s()(s()({placement:"bottom",title:function(){return(0,K.jsxs)("div",{children:[(0,K.jsx)("div",{children:"已提交职业认证"}),(0,K.jsxs)("div",{children:["可在",(0,K.jsx)("a",{href:"/account/certification",className:"c-blue",children:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},ln),{},{children:(0,K.jsx)(j.Z.Item,{label:"院系/部门",name:"department",wrapperCol:{span:10},extra:!Me&&se.department&&!(null!=ge&&ge.find((function(e){return e.name===se.department})))&&(0,K.jsxs)("div",{className:F,children:[(0,K.jsx)("span",{className:V,children:se.department?"未找到包含“".concat(se.department,"”的高校,"):"未找到院系,"}),(0,K.jsx)("span",{className:"".concat(q," current"),onClick:function(){de.find((function(e){return e.name===se.school}))?ne({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}}):y.ZP.info("请先选择正确的单位或者学校!")},children:"申请新增"})]}),children:(0,K.jsx)(k.Z,{size:"large",onChange:function(e){Ze(ge.filter((function(n){return n.name.includes(e)})))},children:_e.map((function(e,n){return(0,K.jsx)($,{value:e.name,children:e.name},n)}))})})})),(0,K.jsx)(j.Z.Item,{label:"昵称",name:"nickname",rules:[{message:"请输入您的昵称"},{validator:O.G7}],validateTrigger:"onSubmit",children:(0,K.jsx)(g.Z,{style:{height:40},placeholder:"请输入您的昵称,最大限制".concat(20,"个字符"),maxLength:20,suffix:"".concat((null===(t=se.nickname)||void 0===t?void 0:t.length)||0,"/").concat(20)})}),(0,K.jsx)(j.Z.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"性别",className:"mb0",children:(0,K.jsx)(j.Z.Item,{name:"gender",children:(0,K.jsxs)(N.ZP.Group,{children:[(0,K.jsx)(N.ZP,{value:0,children:"男"}),(0,K.jsx)(N.ZP,{value:1,children:"女"})]})})}),(0,K.jsx)(j.Z.Item,{label:"入学年份",name:"edu_entry_year",wrapperCol:{span:10},children:(0,K.jsx)(v.Z,{placeholder:"请选择入学年份",size:"large",children:(hn=(new Date).getFullYear(),Array(31).fill({}).map((function(e,n){return(0,K.jsx)($,{value:hn-n,children:(0,K.jsx)("span",{children:hn-n})},n)})))})}),(0,K.jsx)(j.Z.Item,{label:"最高学历",wrapperCol:{span:10},name:"edu_background",children:(0,K.jsx)(v.Z,{placeholder:"请选择最高学历",size:"large",children:O.jh.map((function(e,n){return(0,K.jsx)($,{value:e.id,children:e.name},n)}))})}),(0,K.jsx)(j.Z.Item,{labelCol:{span:3},label:"学号"===nn?"班级":"负责班级",children:(0,K.jsx)("div",{style:{width:"100%",display:"flex",flexWrap:"wrap"},children:(un={background:"#FAFAFA",borderRadius:"2px",border:"1px solid #E1E1E1",marginRight:"10px",lineHeight:"28px",padding:"0 10px 0 10px",color:"#999999"},null===(null==rn?void 0:rn.student_group_name)||void 0===(null==rn?void 0:rn.student_group_name)||0===(null==rn?void 0:rn.student_group_name.length)?"学号"===nn?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)("div",{style:un,children:"未分班"}),(0,K.jsx)("span",{style:{color:"#FA6400"},children:"(请联系上课老师添加班级)"})]}):null:Array.isArray(null==rn?void 0:rn.student_group_name)?null==rn||null===(dn=rn.student_group_name)||void 0===dn?void 0:dn.map((function(e,n){return(0,K.jsx)("div",{style:un,children:e},n)})):"学号"===nn?(0,K.jsx)("div",{style:un,children:null==rn?void 0:rn.student_group_name}):null)})}),(0,K.jsxs)("div",{style:{display:"flex"},children:[(0,K.jsx)(j.Z.Item,{label:"上传证件照",wrapperCol:{span:10},name:"face_image",children:(0,K.jsx)(I.Z,{listType:"picture-card",withCredentials:!0,className:"avatar-uploader",fileList:Ke,onPreview:function(e){J.Z.publish("preview-image",e.thumbUrl||e.url)},action:"".concat(X.Z.API_SERVER,"/api/attachments.json"),beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type;if(!n)return y.ZP.error("您上传的不是JPG/PNG类型文件"),Promise.reject();var t=e.size/1024/1024<1;return t?n&&t:(y.ZP.error("文件不能大于1MB"),Promise.reject())},onChange:function(e){Qe(a()(e.fileList))},children:(null==Ke?void 0:Ke.length)>0?null:vn})}),(0,K.jsxs)("div",{style:{marginLeft:16,color:"#666666",display:"flex",flexDirection:"column",marginTop:5},children:[(0,K.jsx)("span",{children:"要求:"}),(0,K.jsx)("span",{children:"1.学生照片必须为高清的人脸照"}),(0,K.jsx)("span",{children:"2.按照 姓名-学号 的方式来命名照片"}),(0,K.jsx)("span",{children:"3.图片大小在1MB以内"})]})]}),(0,K.jsxs)("div",{style:{position:"relative"},children:[(0,K.jsx)(j.Z.Item,{label:"简介",name:"brief_introduction",rules:[{required:!1}],children:(0,K.jsx)(ee,{maxLength:500,rows:6})}),(0,K.jsxs)("div",{style:{position:"absolute",bottom:10,right:10},children:[null===(i=ie.getFieldValue("brief_introduction"))||void 0===i?void 0:i.length,"/500"]})]}),(0,K.jsxs)(j.Z.Item,{children:[(0,K.jsx)(C.ZP,{className:"".concat(2===u.actionTabs.type?H:R," ml100"),size:"middle",type:"primary",htmlType:"submit",loading:f["account/editAccount"],children:"保存"}),(0,K.jsx)(C.ZP,{className:R,size:"middle",onClick:function(){return x.history.push("/account/profile")},children:"取消"})]})]})]}),(0,K.jsx)("div",{className:"".concat(P," font14"),children:"* 我们确保你所提供的信息均处于严格保密状态,不会泄露"}),(0,K.jsx)(D.Z,{visible:"Account-AppplySchool"===o.actionTabs.key,onClose:function(){ne({type:"account/setActionTabs",payload:{}})},schoolName:se.school,onSuccess:mn}),(0,K.jsx)(M.Z,{visible:"Account-AppplyDepartment"===o.actionTabs.key,onClose:function(){ne({type:"account/setActionTabs",payload:{}})},schoolId:null===(r=de.find((function(e){return e.name===se.school})))||void 0===r?void 0:r.id,schoolName:se.school,departmentName:se.department,onSuccess:function(e){return fn(se.school,e)}}),(0,K.jsx)(b.Z,{centered:!0,destroyOnClose:!0,open:Ae,title:"化学“101计划”网络平台教师交流社区",width:648,onCancel:xn,onOk:xn,children:(0,K.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,K.jsxs)("aside",{style:{padding:"8px 70px"},children:[(0,K.jsx)("span",{style:{letterSpacing:1},children:"基于您所在院校与平台有深度合作,我们特意为您配备了平台的1对1助"}),(0,K.jsx)("br",{}),"教,您可以扫描下方二维码添加助理微信,我们将7*24小时为您答疑解惑。"]}),(0,K.jsx)("img",{src:B,width:162,height:162})]})}),(0,K.jsx)(Y.Z,{})]})}))},6971:function(e,n,t){t.d(n,{Z:function(){return Z}});var i=t(17061),a=t.n(i),r=t(17156),s=t.n(r),l=t(27424),c=t.n(l),o=t(70215),d=t.n(o),u=t(67294),h=t(88275),f=t(11486),m=t(91773),p=t(2453),x=t(14446),v=t(71577),g="formWrap___z8635",j="footerWrap___gNXP9",y=t(85893),b=["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"],_=f.Z.TextArea,Z=(0,h.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,r=e.departmentName,l=e.visible,o=e.onClose,h=void 0===o?function(){}:o,Z=e.onSuccess,w=void 0===Z?function(){}:Z,k=d()(e,b),N=m.Z.useForm(),I=c()(N,1)[0],C=(0,u.useRef)();(0,u.useEffect)((function(){C.current=k.schoolId}),[k.schoolId]),(0,u.useEffect)((function(){I.setFieldsValue({department:r})}),[r]);var S=function(){var e=s()(a()().mark((function e(n){var i,r,s,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(i=n||{}).department,s=i.remarks,e.next=3,t({type:"account/appplyDepartment",payload:{school_id:C.current,name:r,remarks:s}});case 3:l=e.sent,h(),l&&(p.ZP.success("新增院系/部门成功!"),w(r));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,y.jsx)(x.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:l,title:"申请添加子单位名称",width:"600px",footer:null,children:(0,y.jsxs)(m.Z,{className:g,form:I,labelCol:{span:4},wrapperCol:{span:20},onFinish:S,children:[(0,y.jsx)(m.Z.Item,{label:"单位名称:",children:i}),(0,y.jsx)(m.Z.Item,{label:"部门名称:",name:"department",rules:[{required:!0,message:"请输入部门或者学院名称"}],children:(0,y.jsx)(f.Z,{placeholder:"请输入部门或者学院名称"})}),(0,y.jsx)(m.Z.Item,{label:"说明:",name:"remarks",children:(0,y.jsx)(_,{placeholder:"再次说明特别情况(选填)"})}),(0,y.jsx)("div",{className:j,children:(0,y.jsxs)(m.Z.Item,{children:[(0,y.jsx)(v.ZP,{className:"mr5",size:"middle",onClick:function(){h()},children:"取消"}),(0,y.jsx)(v.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:n["account/appplyDepartment"],children:"保存"})]})})]})})}))},90320:function(e,n,t){t.d(n,{Z:function(){return P}});var i=t(17061),a=t.n(i),r=t(17156),s=t.n(r),l=t(27424),c=t.n(l),o=t(70215),d=t.n(o),u=t(67294),h=t(88275),f=t(11486),m=t(91773),p=t(2453),x=t(14446),v=t(40068),g=t(71577),j=t(89739),y=t(4340),b=t(12325),_="flexRow___qRWfN",Z="flexColumn___qUHfF",w="formWrap___kSgvX",k="example___D0a_H",N="footerWrap___kTeYf",I=t(85893),C=["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"],S=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},A=f.Z.TextArea,P=(0,h.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,r=e.visible,l=e.onClose,o=void 0===l?function(){}:l,h=e.onSuccess,P=void 0===h?function(){}:h,T=(d()(e,C),m.Z.useForm()),E=c()(T,1)[0];(0,u.useEffect)((function(){E.setFieldsValue({name:i})}),[i]);var z=function(){var e=s()(a()().mark((function e(n){var i,r,s,l,c,d,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(i=n||{}).name,s=i.city,l=void 0===s?[]:s,c=i.address,d=i.remarks,e.next=3,t({type:"account/appplySchool",payload:{name:r,province:l[0],city:l[1],address:c,remarks:d}});case 3:u=e.sent,o(),u&&(p.ZP.success("新增学校/单位成功!"),P(r));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,I.jsx)(x.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:r,title:"申请添加单位名称",width:"600px",footer:null,children:(0,I.jsxs)(m.Z,{className:w,form:E,labelCol:{span:4},wrapperCol:{span:20},onFinish:z,children:[(0,I.jsx)(m.Z.Item,{label:"单位全称:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,I.jsx)(f.Z,{placeholder:"学校或工作单位"})}),(0,I.jsxs)("div",{className:"".concat(_," ").concat(k),children:[(0,I.jsx)("div",{children:"示例:"}),(0,I.jsxs)("div",{className:Z,children:[(0,I.jsxs)("div",{children:[(0,I.jsx)(j.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,I.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)(y.Z,{style:{color:"red"}}),(0,I.jsx)("span",{className:"font14 ml5",children:"错误示例:数据结构2019春"})]})]})]}),(0,I.jsx)(m.Z.Item,{label:"地区:",name:"city",children:(0,I.jsx)(v.Z,{allowClear:!0,size:"middle",options:b.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:S}})}),(0,I.jsx)(m.Z.Item,{label:"详细地址:",name:"address",children:(0,I.jsx)(f.Z,{placeholder:"请填写完整的地址信息"})}),(0,I.jsx)(m.Z.Item,{label:"说明:",name:"remarks",children:(0,I.jsx)(A,{placeholder:"再次说明特别情况(选填)"})}),(0,I.jsx)("div",{className:N,children:(0,I.jsxs)(m.Z.Item,{children:[(0,I.jsx)(g.ZP,{className:"mr5",size:"middle",onClick:function(){o()},children:"取消"}),(0,I.jsx)(g.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:n["account/appplySchool"],children:"保存"})]})})]})})}))},32637:function(e,n,t){e.exports=t.p+"static/AssistantCode3.a8740efb.jpeg"}}]); |