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

1 line
30 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([[85114],{62772:function(e,n,t){t.d(n,{Z:function(){return c}});var i=t(54476),a=t(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},l=t(7657),s=function(e,n){return a.createElement(l.Z,(0,i.Z)({},e,{ref:n,icon:r}))};var c=a.forwardRef(s)},32398:function(e,n,t){t.d(n,{Z:function(){return c}});var i=t(54476),a=t(59301),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"},l=t(7657),s=function(e,n){return a.createElement(l.Z,(0,i.Z)({},e,{ref:n,icon:r}))};var c=a.forwardRef(s)},91594:function(e,n,t){t.d(n,{Z:function(){return h}});var i=t(79800),a=t.n(i),r=t(59301),l=t(70717),s=t(3113),c=t(32398),o=t(41464),d=t(99267),u=t(37712),h=function(){var e=(0,r.useState)(""),n=a()(e,2),t=n[0],i=n[1],h=(0,r.useState)(0),m=a()(h,2),p=m[0],f=m[1],x=(0,r.useRef)("");function v(e){27==e.keyCode&&x.current&&j()}function j(){document.body.style.overflow="auto",i("")}(0,r.useEffect)((function(){return l.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 g=(0,r.useRef)(),y=(0,r.useRef)();return(0,u.jsx)(r.Fragment,{children:t?(0,u.jsxs)("div",{className:"image-preview-container",ref:g,onClick:function(e){e.nativeEvent.target!==g.current&&e.nativeEvent.target!==y.current||j()},children:[(0,u.jsxs)("div",{className:"button-group",children:[(0,u.jsxs)(s.ZP,{onClick:function(){f(p+90)},children:["旋转",(0,u.jsx)(c.Z,{})]}),(0,u.jsxs)(s.ZP,{href:t,children:["下载",(0,u.jsx)(o.Z,{})]}),(0,u.jsxs)(s.ZP,{onClick:j,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(p,"deg)")}})})]}):null})}},85114:function(e,n,t){t.r(n),t.d(n,{default:function(){return te},identityMap:function(){return ne}});var i=t(37205),a=t.n(i),r=t(82242),l=t.n(r),s=t(7557),c=t.n(s),o=t(41498),d=t.n(o),u=t(79800),h=t.n(u),m=t(39647),p=t.n(m),f=t(59301),x=t(49389),v=t(57809),j=t(10249),g=t(78241),y=t(8591),b=t(43418),_=t(95237),Z=t(43604),k=t(6848),w=t(88522),N=t(5112),I=t(54580),S=t(3113),C="wrap___isQuw",A="content___Gh5i7",P="hint___dh6_r",T="title___Txz11",F="titleWrap___p75TL",E="formWrap___tyQRy",z="schoolHintWrap___WnTDr",q="colorCDCDCD___Xq4Mx",V="color0152d9___lAjmo",R="submitButton___LHi3i",H="submitButtondiv___J6VbH",D="staffidInput___M9rEi",L=t(23329),O=t(67592),W=t(32637),B=t(83287),M=t(76577),G=t(58617),U=t(62772),Y=t(91594),J=t(70717),X=t(91689),K=t(37712),Q=["user","account","globalSetting","shixunHomeworks","loading","dispatch"],$=v.default.Option,ee=j.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,s=e.user,o=e.account,u=(e.globalSetting,e.shixunHomeworks),m=e.loading,ne=e.dispatch,te=(p()(e,Q),g.Z.useForm()),ie=h()(te,1)[0],ae=(0,f.useState)({}),re=h()(ae,2),le=re[0],se=re[1],ce=(0,f.useState)([]),oe=h()(ce,2),de=oe[0],ue=oe[1],he=(0,f.useState)([]),me=h()(he,2),pe=me[0],fe=me[1],xe=(0,f.useState)([]),ve=h()(xe,2),je=ve[0],ge=ve[1],ye=(0,f.useState)([]),be=h()(ye,2),_e=be[0],Ze=be[1],ke=(0,f.useState)(!0),we=h()(ke,2),Ne=we[0],Ie=we[1],Se=(0,f.useState)(!1),Ce=h()(Se,2),Ae=Ce[0],Pe=Ce[1],Te=(0,f.useState)(),Fe=h()(Te,2),Ee=Fe[0],ze=Fe[1],qe=(0,f.useState)(null),Ve=h()(qe,2),Re=Ve[0],He=Ve[1],De=(0,f.useState)(!0),Le=h()(De,2),Oe=Le[0],We=Le[1],Be=(0,f.useState)(),Me=h()(Be,2),Ge=(Me[0],Me[1],(0,f.useState)(!1)),Ue=h()(Ge,2),Ye=Ue[0],Je=(Ue[1],(0,f.useState)([])),Xe=h()(Je,2),Ke=Xe[0],Qe=Xe[1],$e=(0,f.useState)("学号"),en=h()($e,2),nn=en[0],tn=en[1],an=o.basicInfo,rn=void 0===an?{}:an,ln=rn&&"certified"==rn.professional_certification,sn={visible:!1};(0,f.useEffect)((function(){cn()}),[]),(0,f.useEffect)((function(){null!=rn&&rn.identity&&"student"===(null==rn?void 0:rn.identity)||null==rn||!rn.identity?tn("学号"):tn("工号")}),[o]),(0,f.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,ge(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 We(!0),e.next=3,ne({type:"account/getSchoolOption"});case 3:n=e.sent,We(!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,f.useEffect)((function(){if(o.basicInfo){var e,n=o.basicInfo,t={nickname:n.nickname,name:n.show_realname?n.name:(0,B.YA)(n.name),gender:n.gender,city:[n.location,n.location_city],identity:n.identity,school:n.school_name,department:n.department_name,studentNo:n.student_id,edu_entry_year:n.edu_entry_year,edu_background:n.edu_background,brief_introduction:n.brief_introduction,jobTitle:"teacher"==n.identity?n.technical_title:"教授",manager:"professional"==n.identity?n.technical_title:"企业管理者",staff_id:n.staff_id};if(null!=n&&n.face_image)Qe([{uid:"111",name:"111",url:X.Z.API_SERVER+n.face_image,response:{id:null==n||null===(e=n.face_image)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[3]}}]);ze(n.name),Ie(n.show_realname),He(n.identity),ie.setFieldsValue(t),se(t)}}),[o.basicInfo]);var dn,un,hn,mn=function(){var e=d()(c()().mark((function e(n,t){var i,a,r,s,o;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=null===(i=de.find((function(e){return e.name===n})))||void 0===i?void 0:i.id,e.next=3,on(r);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:s=e.t0,ge(null==s?void 0:s.departments),o=t||(null==s||null===(a=s.departments)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.name),ie.setFieldsValue({department:o}),se(l()(l()({},le),{school:n,department:o}));case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),pn=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:""}),se(l()(l()({},le),{school:n,department:""}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),fn=function(){var e=d()(c()().mark((function e(n){var t,i,a,r,l,u,h,m,p,f,v,j,g,_,Z,k,w,N,I,S,C,A,P,T;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.nickname,r=n.gender,l=n.identity,u=n.studentNo,h=n.jobTitle,m=n.manager,p=n.school,f=n.department,v=n.edu_background,j=n.edu_entry_year,g=n.brief_introduction,n.face_image,_=n.staff_id,Z=null===(t=je.find((function(e){return e.name===f})))||void 0===t?void 0:t.id,k=null===(i=de.find((function(e){return e.name===p})))||void 0===i?void 0:i.id,w=o.basicInfo,N=[],"uncertified"!=w.authentication&&(Ee!=w.name&&N.push("姓名"),r!=w.gender&&N.push("性别")),I=[],ln&&(l!=w.identity?I.push("职业"):("student"===le.identity&&u!=w.student_id&&I.push("职业"),"teacher"===le.identity&&h!=w.technical_title&&I.push("职业"),"professional"===le.identity&&m!=w.technical_title&&I.push("职业")),p!=w.school_name&&I.push("学校/单位"),f!=w.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,p,f,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,M.RA)({login:null===(i=s.userInfo)||void 0===i?void 0:i.login});case 3:if(!(I.length>0)){e.next=6;break}return e.next=6,(0,M.kN)({login:null===(d=s.userInfo)||void 0===d?void 0:d.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:l,location:location,name:Ee,nickname:a,school_id:k,edu_background:v,edu_entry_year:j,show_realname:Ne,brief_introduction:g,student_id:"student"===l?u:null,technical_title:h||m,face_image:null==Ke||null===(t=Ke[0])||void 0===t||null===(t=t.response)||void 0===t?void 0:t.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!==(f=o.basicInfo)&&void 0!==f&&f.base_info_completed||ne({type:"user/getUserInfo"}),ne({type:"account/getBasicInfo",payload:{login:null===(b=s.userInfo)||void 0===b?void 0:b.login}}),l===Re||"teacher"!==l){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===(S=o.basicInfo)||void 0===S?void 0:S.id,department_id:Z,gender:r,identity:l,location:location,name:Ee,nickname:a,school_id:k,edu_background:v,edu_entry_year:j,staff_id:_,show_realname:Ne,brief_introduction:g,student_id:"student"===l?u:null,technical_title:h||m,face_image:null==Ke||null===(C=Ke[0])||void 0===C||null===(C=C.response)||void 0===C?void 0:C.id}});case 14:if(-1!==(null==(A=e.sent)?void 0:A.status)){e.next=17;break}return e.abrupt("return");case 17:if(!A){e.next=25;break}if(y.ZP.info("保存成功"),null!==(P=o.basicInfo)&&void 0!==P&&P.base_info_completed||ne({type:"user/getUserInfo"}),ne({type:"account/getBasicInfo",payload:{login:null===(T=s.userInfo)||void 0===T?void 0:T.login}}),l===Re||"teacher"!==l){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:C,children:[(0,K.jsxs)("div",{className:A,children:[(0,K.jsx)("div",{className:F,children:(0,K.jsx)("div",{className:T,children:"基本信息"})}),(0,K.jsxs)(g.Z,{form:ie,className:E,layout:"horizontal",onValuesChange:function(e){var n;(se(l()({},ie.getFieldsValue())),"school"in e)&&(fe(de.filter((function(n){return n.name.includes(e.school)}))),(de.find((function(n){return n.name===e.school}))||{}).id?mn(e.school):(ie.setFieldsValue({department:""}),se(l()(l()({},le),{school:e.school,department:""}))));(null==e||null===(n=e.nickname)||void 0===n?void 0:n.length)<=0&&(Ie(!0),ie.setFieldsValue({name:Ee})),"name"in e&&ze(e.name),"identity"in e&&ie.setFieldsValue({staff_id:""})},onFinish:fn,children:[(0,K.jsx)(g.Z.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(20,"个字符")},{validator:B.HJ}],extra:(0,K.jsx)("span",{children:le.nickname?Ne?"显示:平台将显示您的真实姓名":"隐藏:平台将显示你的昵称":"填写昵称后可设置姓名进行隐藏(当进行姓名搜索时,会展示您的真实姓名)"}),children:(0,K.jsx)(j.Z,{style:{height:40},disabled:!!le.nickname&&!Ne,placeholder:"请输入真实姓名,最大限制".concat(20,"个字符"),maxLength:20,suffix:le.nickname?(0,K.jsx)("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(Ne?"icon-xianshi":"icon-yincang"," font18 ").concat(V),onClick:function(){var e=!Ne;Ie(e);var n=e?Ee:(0,B.YA)(Ee);ie.setFieldsValue({name:n})}}):null})}),(0,K.jsxs)(_.Z,{gutter:[10,0],children:[(0,K.jsx)(Z.Z,{children:(0,K.jsx)(k.Z,l()(l()({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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},sn),{},{children:(0,K.jsx)(g.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,K.jsxs)(v.default,{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"===le.identity&&(0,K.jsx)(k.Z,l()(l()({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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},sn),{},{children:(0,K.jsx)(g.Z.Item,{initialValue:le.studentNo,name:"studentNo",rules:[{required:!0,message:"请先输入学号"}],children:(0,K.jsx)(j.Z,{size:"large",style:{width:200},type:"text",placeholder:"请输入学号"})})})),"teacher"===le.identity&&(0,K.jsx)(k.Z,l()(l()({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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},sn),{},{children:(0,K.jsx)(g.Z.Item,{initialValue:le.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,K.jsxs)(v.default,{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"===le.identity&&(0,K.jsx)(k.Z,l()(l()({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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},sn),{},{children:(0,K.jsx)(g.Z.Item,{initialValue:le.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,K.jsxs)(v.default,{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"===le.identity||"professional"===le.identity)&&(0,K.jsx)(Z.Z,{flex:1,children:(0,K.jsx)(g.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)(j.Z,{className:D,suffix:" "})})})]}),(0,K.jsx)(k.Z,l()(l()({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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},sn),{},{children:(0,K.jsx)(g.Z.Item,{label:"学校/单位",name:"school",wrapperCol:{span:10},extra:!Oe&&le.school&&!(null!=de&&de.find((function(e){return e.name===le.school})))&&(0,K.jsxs)("div",{className:z,children:[(0,K.jsxs)("span",{className:q,children:["未找到包含“",le.school,"”的高校,"]}),(0,K.jsx)("span",{className:"".concat(V," current"),onClick:function(){ne({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},children:"申请新增"})]}),rules:[{required:!0,message:"请先选择学校/单位"},{whitespace:!0,message:"请先选择学校/单位"}],children:(0,K.jsx)(w.Z,{size:"large",showSearch:!0,options:null==pe?void 0:pe.map((function(e){return{value:e.name}}))})})})),(0,K.jsx)(k.Z,l()(l()({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:"认证信息"}),"中通过“重新认证”进行修改"]})]})}},sn),{},{children:(0,K.jsx)(g.Z.Item,{label:"院系/部门",name:"department",wrapperCol:{span:10},extra:!Oe&&le.department&&!(null!=je&&je.find((function(e){return e.name===le.department})))&&(0,K.jsxs)("div",{className:z,children:[(0,K.jsx)("span",{className:q,children:le.department?"未找到包含“".concat(le.department,"”的高校,"):"未找到院系,"}),(0,K.jsx)("span",{className:"".concat(V," current"),onClick:function(){de.find((function(e){return e.name===le.school}))?ne({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}}):y.ZP.info("请先选择正确的单位或者学校!")},children:"申请新增"})]}),children:(0,K.jsx)(w.Z,{size:"large",onChange:function(e){Ze(je.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)(g.Z.Item,{label:"昵称",name:"nickname",rules:[{message:"请输入您的昵称"},{validator:B.G7}],validateTrigger:"onSubmit",children:(0,K.jsx)(j.Z,{style:{height:40},placeholder:"请输入您的昵称,最大限制".concat(20,"个字符"),maxLength:20,suffix:"".concat((null===(t=le.nickname)||void 0===t?void 0:t.length)||0,"/").concat(20)})}),(0,K.jsx)(g.Z.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"性别",className:"mb0",children:(0,K.jsx)(g.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)(g.Z.Item,{label:"入学年份",name:"edu_entry_year",wrapperCol:{span:10},children:(0,K.jsx)(v.default,{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)(g.Z.Item,{label:"最高学历",wrapperCol:{span:10},name:"edu_background",children:(0,K.jsx)(v.default,{placeholder:"请选择最高学历",size:"large",children:B.jh.map((function(e,n){return(0,K.jsx)($,{value:e.id,children:e.name},n)}))})}),(0,K.jsx)(g.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)(g.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)(g.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)(g.Z.Item,{children:[(0,K.jsx)(S.ZP,{className:"".concat(2===u.actionTabs.type?H:R," ml100"),size:"middle",type:"primary",htmlType:"submit",loading:m["account/editAccount"],children:"保存"}),(0,K.jsx)(S.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)(L.Z,{visible:"Account-AppplySchool"===o.actionTabs.key,onClose:function(){ne({type:"account/setActionTabs",payload:{}})},schoolName:le.school,onSuccess:pn}),(0,K.jsx)(O.Z,{visible:"Account-AppplyDepartment"===o.actionTabs.key,onClose:function(){ne({type:"account/setActionTabs",payload:{}})},schoolId:null===(r=de.find((function(e){return e.name===le.school})))||void 0===r?void 0:r.id,schoolName:le.school,departmentName:le.department,onSuccess:function(e){return mn(le.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:W,width:162,height:162})]})}),(0,K.jsx)(Y.Z,{})]})}))},67592:function(e,n,t){t.d(n,{Z:function(){return Z}});var i=t(7557),a=t.n(i),r=t(41498),l=t.n(r),s=t(79800),c=t.n(s),o=t(39647),d=t.n(o),u=t(59301),h=t(49389),m=t(10249),p=t(78241),f=t(8591),x=t(43418),v=t(3113),j="formWrap___z8635",g="footerWrap___gNXP9",y=t(37712),b=["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"],_=m.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,s=e.visible,o=e.onClose,h=void 0===o?function(){}:o,Z=e.onSuccess,k=void 0===Z?function(){}:Z,w=d()(e,b),N=p.Z.useForm(),I=c()(N,1)[0],S=(0,u.useRef)();(0,u.useEffect)((function(){S.current=w.schoolId}),[w.schoolId]),(0,u.useEffect)((function(){I.setFieldsValue({department:r})}),[r]);var C=function(){var e=l()(a()().mark((function e(n){var i,r,l,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(i=n||{}).department,l=i.remarks,e.next=3,t({type:"account/appplyDepartment",payload:{school_id:S.current,name:r,remarks:l}});case 3:s=e.sent,h(),s&&(f.ZP.success("新增院系/部门成功!"),k(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:s,title:"申请添加子单位名称",width:"600px",footer:null,children:(0,y.jsxs)(p.Z,{className:j,form:I,labelCol:{span:4},wrapperCol:{span:20},onFinish:C,children:[(0,y.jsx)(p.Z.Item,{label:"单位名称:",children:i}),(0,y.jsx)(p.Z.Item,{label:"部门名称:",name:"department",rules:[{required:!0,message:"请输入部门或者学院名称"}],children:(0,y.jsx)(m.Z,{placeholder:"请输入部门或者学院名称"})}),(0,y.jsx)(p.Z.Item,{label:"说明:",name:"remarks",children:(0,y.jsx)(_,{placeholder:"再次说明特别情况(选填)"})}),(0,y.jsx)("div",{className:g,children:(0,y.jsxs)(p.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:"保存"})]})})]})})}))},23329:function(e,n,t){t.d(n,{Z:function(){return P}});var i=t(7557),a=t.n(i),r=t(41498),l=t.n(r),s=t(79800),c=t.n(s),o=t(39647),d=t.n(o),u=t(59301),h=t(49389),m=t(10249),p=t(78241),f=t(8591),x=t(43418),v=t(19842),j=t(3113),g=t(29679),y=t(19248),b=t(57725),_="flexRow___qRWfN",Z="flexColumn___qUHfF",k="formWrap___kSgvX",w="example___D0a_H",N="footerWrap___kTeYf",I=t(37712),S=["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"],C=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},A=m.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,s=e.onClose,o=void 0===s?function(){}:s,h=e.onSuccess,P=void 0===h?function(){}:h,T=(d()(e,S),p.Z.useForm()),F=c()(T,1)[0];(0,u.useEffect)((function(){F.setFieldsValue({name:i})}),[i]);var E=function(){var e=l()(a()().mark((function e(n){var i,r,l,s,c,d,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(i=n||{}).name,l=i.city,s=void 0===l?[]:l,c=i.address,d=i.remarks,e.next=3,t({type:"account/appplySchool",payload:{name:r,province:s[0],city:s[1],address:c,remarks:d}});case 3:u=e.sent,o(),u&&(f.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)(p.Z,{className:k,form:F,labelCol:{span:4},wrapperCol:{span:20},onFinish:E,children:[(0,I.jsx)(p.Z.Item,{label:"单位全称:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,I.jsx)(m.Z,{placeholder:"学校或工作单位"})}),(0,I.jsxs)("div",{className:"".concat(_," ").concat(w),children:[(0,I.jsx)("div",{children:"示例:"}),(0,I.jsxs)("div",{className:Z,children:[(0,I.jsxs)("div",{children:[(0,I.jsx)(g.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)(p.Z.Item,{label:"地区:",name:"city",children:(0,I.jsx)(v.Z,{allowClear:!0,size:"middle",options:b.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:C}})}),(0,I.jsx)(p.Z.Item,{label:"详细地址:",name:"address",children:(0,I.jsx)(m.Z,{placeholder:"请填写完整的地址信息"})}),(0,I.jsx)(p.Z.Item,{label:"说明:",name:"remarks",children:(0,I.jsx)(A,{placeholder:"再次说明特别情况(选填)"})}),(0,I.jsx)("div",{className:N,children:(0,I.jsxs)(p.Z.Item,{children:[(0,I.jsx)(j.ZP,{className:"mr5",size:"middle",onClick:function(){o()},children:"取消"}),(0,I.jsx)(j.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"}}]);