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

1 line
27 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([[83297],{21238:function(e,n,t){var a=t(7557),l=t.n(a),r=t(82242),i=t.n(r),s=t(41498),o=t.n(s),c=t(79800),d=t.n(c),u=t(39647),p=t.n(u),m=t(59301),h=t(78836),f=t(98135),x=t(78241),j=t(8591),g=t(43418),v=t(32157),Z=t(37712),_=["account","globalSetting","loading","dispatch","departmentName","majorName","visible","onClose","onSuccess"],y=f.Z.TextArea;n.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,e.loading,e.dispatch;var n=e.departmentName,t=e.majorName,a=e.visible,r=e.onClose,s=void 0===r?function(){}:r,c=e.onSuccess,u=void 0===c?function(){}:c,h=p()(e,_),b=x.Z.useForm(),C=d()(b,1)[0],N=(0,m.useRef)(),w=(0,m.useState)(!1),k=d()(w,2),I=k[0];k[1];(0,m.useEffect)((function(){N.current=h.departmentId}),[h.departmentId]),(0,m.useEffect)((function(){C.setFieldsValue({name:t})}),[t]);var F=function(){var e=o()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C.validateFields();case 2:return e.next=4,(0,v.ZP)("/api/departments/".concat(N.current,"/majors.json"),{method:"post",body:i()({},C.getFieldsValue())});case 4:0===e.sent.status&&(j.ZP.success("申请成功!"),u(C.getFieldValue("name")),C.resetFields(),s());case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,Z.jsx)(g.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:a,title:"申请新增专业名称",width:"600px",onCancel:s,onOk:function(){return C.submit()},confirmLoading:I,children:(0,Z.jsxs)(x.Z,{form:C,labelCol:{span:4},wrapperCol:{span:20},onFinish:F,children:[(0,Z.jsx)(x.Z.Item,{label:"院系名称:",children:n}),(0,Z.jsx)(x.Z.Item,{label:"专业名称:",name:"name",rules:[{required:!0,message:"请输入专业名称"}],children:(0,Z.jsx)(f.Z,{placeholder:"请输入专业名称",showCount:!0,maxLength:20})}),(0,Z.jsx)(x.Z.Item,{label:"说明:",name:"remarks",style:{marginBottom:0},children:(0,Z.jsx)(y,{placeholder:"再次说明特别情况(选填)"})})]})})}))},83297:function(e,n,t){var a=t(7557),l=t.n(a),r=t(82242),i=t.n(r),s=t(41498),o=t.n(s),c=t(79800),d=t.n(c),u=t(39647),p=t.n(u),m=t(59301),h=t(78836),f=t(57809),x=t(46651),j=t(78241),g=t(8591),v=t(43418),Z=t(71418),_=t(95237),y=t(43604),b=t(98135),C=t(6848),N=t(88522),w=t(3113),k=t(42933),I=t(48033),F=t(47162),S=t(51941),T=t(37962),V=t(69901),D=t(89392),O=t(29831),P=t(47481),E=t(21238),W=t(32157),A=t(37712),R=["user","account","globalSetting","loading","dispatch"],q=f.default.Option,L=x.Z.Dragger;n.Z=(0,h.connect)((function(e){var n=e.user,t=e.account,a=e.loading;return{user:n,account:t,globalSetting:e.globalSetting,loading:a.effects}}))((function(e){var n,t,a,r=e.user,s=e.account,c=e.globalSetting,u=e.loading,h=e.dispatch,x=(p()(e,R),j.Z.useForm()),z=d()(x,1)[0],B=(0,m.useState)({}),Q=d()(B,2),H=Q[0],U=Q[1],X=(0,m.useState)([]),M=d()(X,2),Y=M[0],$=M[1],G=(0,m.useState)([]),K=d()(G,2),J=K[0],ee=K[1],ne=(0,m.useState)([]),te=d()(ne,2),ae=te[0],le=te[1],re=(0,m.useState)([]),ie=d()(re,2),se=ie[0],oe=ie[1],ce=(0,m.useState)([]),de=d()(ce,2),ue=de[0],pe=de[1],me=(0,m.useState)([]),he=d()(me,2),fe=he[0],xe=he[1],je=(0,m.useState)(),ge=d()(je,2),ve=ge[0],Ze=ge[1],_e=(0,m.useState)(),ye=d()(_e,2),be=ye[0],Ce=ye[1],Ne=(0,m.useState)(),we=d()(Ne,2),ke=we[0],Ie=we[1],Fe=(0,m.useState)(),Se=d()(Fe,2),Te=Se[0],Ve=Se[1],De=(0,m.useState)(),Oe=d()(De,2),Pe=Oe[0],Ee=Oe[1],We=(0,m.useState)(),Ae=d()(We,2),Re=Ae[0],qe=Ae[1];(0,m.useEffect)((function(){var e,n,t,a;"Account-ProfessionalAuth"===s.actionTabs.key&&(null!==(e=s.basicInfo)&&void 0!==e&&e.school_id&&(Be(null===(n=s.basicInfo)||void 0===n?void 0:n.school_id),$([{id:null===(t=s.basicInfo)||void 0===t?void 0:t.school_id,name:null===(a=s.basicInfo)||void 0===a?void 0:a.school_name}])))}),[s.actionTabs.key]);var Le=(0,m.useRef)((0,D.throttle)((function(e){return ze(e)}),1200,{leading:!0,trailing:!0})).current,ze=function(){var e=o()(l()().mark((function e(n){var t,a,r;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h({type:"account/getSchoolOption",payload:{keyword:n,limit:10}});case 2:t=e.sent,$(null==t?void 0:t.schools),n&&""!=n&&(ee(null==t||null===(a=t.schools)||void 0===a?void 0:a.filter((function(e){return e.name.includes(n)}))),((null==t||null===(r=t.schools)||void 0===r?void 0:r.find((function(e){return e.name===n})))||{}).id?Ue(n,null,null==t?void 0:t.schools):(z.setFieldsValue(i()(i()({},z.getFieldsValue()),{},{department:""})),U(i()(i()({},z.getFieldsValue()),{school:n,department:""}))));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Be=function(){var e=o()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,h({type:"account/getDepartmentOption",payload:{id:n}});case 4:return t=e.sent,le(null==t?void 0:t.departments),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){if(s.basicInfo){var e=s.basicInfo,n={identity:e.identity,school:e.school_name,department:e.department_name,major_name:e.major_name,studentNo:e.student_id,jobTitle:"teacher"==e.identity?e.technical_title:"教授",manager:"professional"==e.identity?e.technical_title:"企业管理者",code_type:2};z.setFieldsValue(n),U(n)}}),[s.basicInfo]);var Qe=function(){Y.find((function(e){return e.name===H.school}))?Ee(!0):g.ZP.info("请先选择正确的单位或者学校!")},He=function(){ae.find((function(e){return e.name===H.department}))?qe(!0):g.ZP.info("请先选择正确的院系或者部门!")},Ue=function(){var e=o()(l()().mark((function e(n,t,a){var r,s,o,c,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=null===(r=(a||Y).find((function(e){return e.name===n})))||void 0===r?void 0:r.id,e.next=3,Be(o);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:c=e.t0,d=t||(null==c||null===(s=c.departments)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.name),z.setFieldsValue(i()(i()({},z.getFieldsValue()),{},{department:d})),U(i()(i()({},z.getFieldsValue()),{school:n,department:d}));case 10:case"end":return e.stop()}}),e)})));return function(n,t,a){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){Xe()}),[ae]);var Xe=function(){var e=o()(l()().mark((function e(){var n,t,a,r,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=null===(n=Y.find((function(e){return e.name===z.getFieldValue("school")})))||void 0===n?void 0:n.id,!(r=null===(t=ae.find((function(e){return e.name===z.getFieldValue("department")})))||void 0===t?void 0:t.id)){e.next=7;break}return e.next=5,(0,W.ZP)("/api/schools/".concat(a,"/departments/").concat(r,"/major_option.json"),{method:"get"});case 5:0==(null==(i=e.sent)?void 0:i.status)&&pe(null==i?void 0:i.majors);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Me=function(){var e=o()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ze();case 2:z.setFieldsValue(i()(i()({},z.getFieldsValue()),{},{school:n,department:""})),U(i()(i()({},z.getFieldsValue()),{school:n,department:""}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ye=function(){var e=o()(l()().mark((function e(n){var t,a,i,o,c,d,u,p,m,f,x,j,Z,_,y,b,C,N,w,k,I,F,S;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=(d=n||{}).school,p=d.department,m=d.identity,f=d.studentNo,x=d.jobTitle,j=d.manager,Z=d.code_type,_=d.code,y=d.major_name,ve){e.next=4;break}return g.ZP.info("请先上传照片!"),e.abrupt("return");case 4:if(b=null===(t=Y.find((function(e){return e.name===u})))||void 0===t?void 0:t.id,C=null===(a=ae.find((function(e){return e.name===p})))||void 0===a?void 0:a.id,N=null===(i=ue.find((function(e){return e.name===y})))||void 0===i?void 0:i.id,w="student"===m?f:"teacher"===m?x:j,b){e.next=11;break}return v.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,A.jsxs)("div",{style:{textAlign:"center"},children:[(0,A.jsx)("div",{style:{textAlign:"left"},children:"请扫码或搜索加入头歌官方交流QQ群727685969联系群内的运营进行咨询和申请新增学校名称。"}),(0,A.jsx)("img",{src:O,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 11:if(!p||C){e.next=14;break}return k=v.Z.confirm({icon:null,width:600,centered:!0,okText:"新增",cancelText:"取消",title:"提示",content:(0,A.jsx)(A.Fragment,{children:(0,A.jsx)("p",{children:"系统未找到您填写的院系/部门,是否申请新增该部门?"})}),onOk:Qe,onCancel:function(){k.destroy()}}),e.abrupt("return");case 14:if(!y||N){e.next=17;break}return"teacher"==z.getFieldValue("identity")?I=v.Z.confirm({icon:null,width:600,centered:!0,okText:"新增",cancelText:"取消",title:"提示",content:(0,A.jsx)(A.Fragment,{children:(0,A.jsx)("p",{children:"系统未找到您填写的专业,是否申请新增该专业?"})}),onOk:He,onCancel:function(){I.destroy()}}):v.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,A.jsxs)("div",{style:{textAlign:"center"},children:[(0,A.jsx)("div",{style:{textAlign:"left"},children:"请扫码或搜索加入头歌官方交流QQ群727685969联系群内的运营进行咨询和申请新增专业名称。"}),(0,A.jsx)("img",{src:O,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"}),e.abrupt("return");case 17:return e.next=19,h({type:"account/applyProfessionalAuth",payload:{id:(null===(o=s.basicInfo)||void 0===o?void 0:o.id)||(null===(c=r.userInfo)||void 0===c?void 0:c.login),school_id:b,department_id:C,major_id:N,identity:m,extra:w,code:_,code_type:Z,attachment_ids:[be]}});case 19:F=e.sent,$e(),0===(null==F?void 0:F.status)&&(_?g.ZP.info("职业认证审核通过"):g.ZP.info("申请已提交,请等待审核!"),Ze(""),h({type:"account/getBasicInfo",payload:{login:null===(S=r.userInfo)||void 0===S?void 0:S.login}}));case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),$e=function(){z.setFieldValue("code",""),h({type:"account/setActionTabs",payload:{}})},Ge={data:{type:"professional"},multiple:!0,withCredentials:!0,showUploadList:!1,action:"".concat(F.Z.API_SERVER,"/api/attachments.json"),className:T.Z.uploader,onChange:function(e){var n;"uploading"!==e.file.status?"done"===e.file.status&&(console.log(e.file,e.file.response),Ce(null===(n=e.file.response)||void 0===n?void 0:n.id),(0,V.y3)(e.file.originFileObj,(function(e){Ze(e),Ie(!1)}))):Ie(!0)},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;return n||g.ZP.info("请上传正确文件格式"),n}},Ke=function(){v.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,A.jsxs)("div",{style:{textAlign:"center"},children:[(0,A.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群","teacher"===H.identity?"727685969":"532739178",",联系群内的运营进行咨询和申请新增专业名称。"]}),(0,A.jsx)("img",{src:"teacher"===H.identity?O:P,style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})};return(0,A.jsxs)(v.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,forceRender:!0,className:T.Z.modal,open:"Account-ProfessionalAuth"===s.actionTabs.key,title:(0,A.jsxs)("div",{children:[(0,A.jsx)("i",{className:"iconfont icon-zhiyerenzheng font18 mr5 ".concat(T.Z.colorBlue)}),"职业认证"]}),width:"660px",footer:null,children:[(0,A.jsx)(Z.Z,{spinning:!!ke,children:(0,A.jsxs)(j.Z,{form:z,layout:"horizontal",size:"large",scrollToFirstError:!0,className:T.Z.formWrap,onValuesChange:function(e){(U(i()({},z.getFieldsValue())),"identity"in e&&U(i()(i()({},z.getFieldsValue()),{},{code_type:2})),"school"in e)&&(ee(Y.filter((function(n){return n.name.includes(e.school)}))),(Y.find((function(n){return n.name===e.school}))||{}).id?Ue(e.school):(z.setFieldValue("department",""),U(i()(i()({},H),{school:e.school,department:""}))))},onFinish:Ye,children:[(0,A.jsxs)(_.Z,{gutter:[10,0],children:[(0,A.jsx)(y.Z,{flex:"300px",children:(0,A.jsx)(j.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,A.jsxs)(f.default,{children:[(0,A.jsx)(q,{value:"teacher",children:"教师"}),(0,A.jsx)(q,{value:"student",children:"学生"}),(0,A.jsx)(q,{value:"professional",children:"专业人士"})]})})}),"student"===H.identity&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(y.Z,{flex:1,children:(0,A.jsx)(j.Z.Item,{initialValue:H.studentNo,name:"studentNo",rules:[{required:!0,message:"请先输入学号"}],children:(0,A.jsx)(b.Z,{type:"text",placeholder:"请输入学号"})})}),(0,A.jsx)(y.Z,{flex:0,children:(0,A.jsx)("div",{className:T.Z.tooltipWrapper,children:(0,A.jsx)(C.Z,{title:"单位管理员可管理已通过职业认证的学生账号信息(包含初始化密码)",children:(0,A.jsx)("span",{className:T.Z.tips,children:(0,A.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})})})})]}),"teacher"===H.identity&&(0,A.jsx)(y.Z,{flex:1,children:(0,A.jsx)(j.Z.Item,{initialValue:H.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,A.jsxs)(f.default,{children:[(0,A.jsx)(q,{value:"教授",children:"教授"}),(0,A.jsx)(q,{value:"副教授",children:"副教授"}),(0,A.jsx)(q,{value:"讲师",children:"讲师"}),(0,A.jsx)(q,{value:"助教",children:"助教"})]})})}),"professional"===H.identity&&(0,A.jsx)(y.Z,{flex:1,children:(0,A.jsx)(j.Z.Item,{initialValue:H.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,A.jsxs)(f.default,{children:[(0,A.jsx)(q,{value:"企业管理者",children:"企业管理者"}),(0,A.jsx)(q,{value:"部门管理者",children:"部门管理者"}),(0,A.jsx)(q,{value:"高级工程师",children:"高级工程师"}),(0,A.jsx)(q,{value:"工程师",children:"工程师"}),(0,A.jsx)(q,{value:"助理工程师",children:"助理工程师"})]})})})]}),(0,A.jsx)(j.Z.Item,{label:"学校/单位",name:"school",extra:H.school&&!(null!=Y&&Y.find((function(e){return e.name===H.school})))&&(0,A.jsx)("div",{className:T.Z.schoolHintWrap,children:(0,A.jsxs)("span",{className:T.Z.colorCDCDCD,children:["未找到包含“",H.school,"”的高校,如有需要,请",(0,A.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){Ke()},children:"联系平台运营"}),"申请新增"]})}),rules:[{required:!0,message:"请先选择学校/单位"}],children:(0,A.jsx)(N.Z,{showSearch:!0,onSearch:Le,children:J.map((function(e,n){return(0,A.jsx)(q,{value:e.name,children:e.name},n)}))})}),(0,A.jsx)(j.Z.Item,{label:"院系/部门",name:"department",extra:H.department&&!(null!=ae&&ae.find((function(e){return e.name===H.department})))&&(0,A.jsxs)("div",{className:T.Z.schoolHintWrap,children:[(0,A.jsx)("span",{className:T.Z.colorCDCDCD,children:H.department?"未找到包含“".concat(H.department,"”的高校,"):"未找到院系,"}),"teacher"===H.identity?(0,A.jsx)("span",{className:"".concat(T.Z.color0152d9," current"),onClick:Qe,children:"申请新增"}):(0,A.jsxs)("span",{className:T.Z.colorCDCDCD,children:["如有需要,请",(0,A.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){Ke()},children:"联系平台运营"}),"申请新增"]})]}),rules:[{required:!0,message:"请先选择院系/部门"}],children:(0,A.jsx)(N.Z,{showSearch:!0,onChange:function(e){Xe(),oe(ae.filter((function(n){return n.name.includes(e)})))},children:se.map((function(e,n){return(0,A.jsxs)(q,{value:e.name,children:[e.name,0==(null==e?void 0:e.status)&&(0,A.jsx)("span",{style:{color:"#FF8C29",marginLeft:"5px"},children:"(待审核)"})]},n)}))})}),(0,A.jsx)(j.Z.Item,{label:"专业",name:"major_name",extra:z.getFieldValue("major_name")&&!(null!=ue&&ue.find((function(e){return e.name==z.getFieldValue("major_name")})))&&(0,A.jsx)("div",{className:T.Z.schoolHintWrap,children:"teacher"==z.getFieldValue("identity")?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("span",{className:T.Z.colorCDCDCD,children:"未查询到“".concat(z.getFieldValue("major_name"),"”专业,")}),(0,A.jsx)("span",{className:"".concat(T.Z.color0152d9," current"),onClick:He,children:"申请新增"})]}):(0,A.jsxs)("span",{className:T.Z.colorCDCDCD,children:["未找到“",z.getFieldValue("major_name"),"”专业,如有需要,请",(0,A.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){Ke()},children:"联系平台运营"}),"申请新增"]})}),rules:["teacher"==z.getFieldValue("identity")&&{required:!0,message:"请先选择专业"}],children:(0,A.jsx)(N.Z,{size:"large",onChange:function(e){xe(ue.filter((function(n){return n.name.includes(e)})))},children:fe.map((function(e,n){return(0,A.jsxs)(q,{value:e.name,children:[e.name,0==(null==e?void 0:e.status)&&(0,A.jsx)("span",{style:{color:"#FF8C29",marginLeft:"5px"},children:"(待审核)"})]},n)}))})}),"student"===H.identity&&(0,A.jsxs)(_.Z,{gutter:[10,0],wrap:!1,children:[(0,A.jsx)(y.Z,{flex:"240px",children:(0,A.jsx)(j.Z.Item,{label:"验证码",name:"code_type",initialValue:2,children:(0,A.jsxs)(f.default,{children:[(0,A.jsx)(q,{value:2,children:"手机号"}),(0,A.jsx)(q,{value:1,children:"邀请码"})]})})}),(0,A.jsx)(y.Z,{flex:1,children:1===H.code_type?(0,A.jsx)(j.Z.Item,{name:"code",children:(0,A.jsx)(b.Z,{type:"text",placeholder:"请输入已加入的教学课堂的邀请码",maxLength:10})}):(0,A.jsx)(j.Z.Item,{name:"code",children:(0,A.jsx)(b.Z,{type:"text",placeholder:"请输入已加入的教学课堂中教师的手机号后六位",maxLength:10})})}),(0,A.jsx)(C.Z,{title:"当前账号申请认证的单位与已加入的教学课堂所属单位需相同",children:(0,A.jsx)(y.Z,{style:{paddingTop:"10px"},children:(0,A.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2 primary-hover font14",style:{cursor:"pointer"}})})})]}),(0,A.jsx)(j.Z.Item,{label:"职业证上传",required:!0,children:(0,A.jsxs)("div",{className:T.Z.flexRow,children:[(0,A.jsxs)("div",{className:"".concat(T.Z.flexColumn," ").concat(T.Z.example),children:[(0,A.jsx)("span",{className:T.Z.exampleImg,children:(0,A.jsx)("img",{src:S})}),(0,A.jsxs)("span",{className:"tc",children:[(0,A.jsx)("p",{children:"示例图片"}),(0,A.jsx)("p",{className:"".concat(T.Z.colorOrange," font12"),children:"png/jpg/bmp格式不超过2MB"})]})]}),(0,A.jsxs)("div",{className:T.Z.flexColumn,children:[(0,A.jsx)(L,i()(i()({},Ge),{},{accept:".png,.jpg,.bmp,.jpeg",children:ve?(0,A.jsx)("img",{src:ve,className:T.Z.uploadImg}):(0,A.jsxs)("div",{className:T.Z.imageTip,children:[(0,A.jsx)("p",{children:(0,A.jsx)("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(T.Z.uploadTipIcon)})}),(0,A.jsx)("p",{className:T.Z.uploadTip,children:(0,A.jsx)("a",{className:T.Z.color05101a,children:"点击或拖拽上传图片"})})]})})),(0,A.jsx)("span",{className:"tc",children:(0,A.jsx)("p",{className:T.Z.viewLargerImg,children:"查看大图"})})]})]})}),(0,A.jsx)("div",{className:T.Z.footerWrap,children:(0,A.jsxs)(j.Z.Item,{children:[(0,A.jsx)(w.ZP,{className:"mr5",size:"middle",onClick:$e,children:"取消"}),(0,A.jsx)(w.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:u["account/applyProfessionalAuth"],children:"提交"})]})}),(0,A.jsxs)("div",{className:T.Z.note,children:[(0,A.jsx)("p",{children:"认证须知:"}),(0,A.jsx)("p",{children:"1.根据职业上传相应的证件照教师教师证专业人士员工证、学生学生证请确保证件照内容完整并且清晰可见严禁PS"}),(0,A.jsx)("p",{children:"2.我们将在你提交职业证信息后的24小时不包含节假日内完成审核审核结果将会以系统消息的形式发送给你"}),(0,A.jsx)("p",{children:"3.职业认证审核完成后,无法删除,请谨慎填写;职业变更请选择重新认证;"}),(0,A.jsx)("p",{children:"4.职业认证审核完成后系统将自动发放500个金币作为奖励"}),(0,A.jsx)("p",{children:"5.我们会确保你所提供的信息均处于严格的保密状态,不会泄露;"}),(0,A.jsxs)("p",{children:["6.如存在恶意乱填写姓名,学号,及上传与职业证件无关图片者,一经发现将冻结",!(null!=c&&null!==(n=c.setting)&&void 0!==n&&n.is_local)&&"EduCoder","账号。"]}),(0,A.jsx)("p",{children:"7.非老师身份提交职业认证后系统会自动将状态改为已认证,你将可以体验平台需要职业认证的功能;如果在认证后的使用过程中未通过审核,你将不能继续体验需要认证的功能。"})]})]})}),(0,A.jsx)(k.Z,{visible:Te,onClose:function(){return Ve(!1)},schoolName:H.school,onSuccess:Me}),(0,A.jsx)(I.Z,{visible:Pe,onClose:function(){return Ee(!1)},schoolId:null===(t=Y.find((function(e){return e.name===H.school})))||void 0===t?void 0:t.id,schoolName:H.school,departmentName:H.department,onSuccess:function(e){return Ue(H.school,e)}}),(0,A.jsx)(E.Z,{visible:Re,onClose:function(){return qe(!1)},departmentId:null===(a=ae.find((function(e){return e.name===H.department})))||void 0===a?void 0:a.id,departmentName:H.department,majorName:z.getFieldValue("major_name"),onSuccess:function(e){z.setFieldsValue({major_name:e}),U(i()(i()({},z.getFieldsValue()),{major_name:e})),Xe()}})]})}))},42933:function(e,n,t){t.d(n,{Z:function(){return O}});var a=t(7557),l=t.n(a),r=t(82242),i=t.n(r),s=t(41498),o=t.n(s),c=t(79800),d=t.n(c),u=t(39647),p=t.n(u),m=t(59301),h=t(78836),f=t(98135),x=t(78241),j=t(43418),g=t(14491),v=t(8591),Z=t(19842),_=t(3113),y=t(2720),b=t(97650),C=t(95911),N="flexRow___qRWfN",w="flexColumn___qUHfF",k="formWrap___kSgvX",I="example___D0a_H",F="footerWrap___kTeYf",S=t(37712),T=["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"],V=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},D=f.Z.TextArea,O=(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,a=e.schoolName,r=e.visible,s=e.onClose,c=void 0===s?function(){}:s,u=e.onSuccess,h=void 0===u?function(){}:u,O=(p()(e,T),x.Z.useForm()),P=d()(O,1)[0];(0,m.useEffect)((function(){P.setFieldsValue({name:a})}),[a]);var E=function(){var e=o()(l()().mark((function e(n){var a,r,s,d,u,p,m,f;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(a=n||{}).name,s=a.city,d=void 0===s?[]:s,u=a.address,p=a.remarks,e.next=3,t({type:"account/appplySchool",payload:{name:r,province:d[0],city:d[1],address:u,remarks:p}});case 3:if(2!=(null==(m=e.sent)?void 0:m.status)){e.next=7;break}return f=j.Z.confirm({icon:null,width:600,centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("p",{children:"系统检测到您申请新增的单位已存在,请确认是否为该单位?"}),(0,S.jsx)(g.Z,{columns:[{title:"学校/单位",dataIndex:"name"},{title:"用户数",width:150,dataIndex:"users_count"}],dataSource:[i()({},m)],pagination:!1})]}),onOk:function(){var e=o()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h(r);case 2:f.destroy(),c();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),onCancel:function(){f.destroy()}}),e.abrupt("return");case 7:c(),0==m.status&&(v.ZP.success("新增学校/单位成功!"),h(r));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,S.jsx)(j.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:r,title:"申请添加单位名称",width:"600px",footer:null,children:(0,S.jsxs)(x.Z,{className:k,form:P,labelCol:{span:4},wrapperCol:{span:20},onFinish:E,children:[(0,S.jsx)(x.Z.Item,{label:"单位全称:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,S.jsx)(f.Z,{placeholder:"学校或工作单位"})}),(0,S.jsxs)("div",{className:"".concat(N," ").concat(I),children:[(0,S.jsx)("div",{children:"示例:"}),(0,S.jsxs)("div",{className:w,children:[(0,S.jsxs)("div",{children:[(0,S.jsx)(y.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,S.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)(b.Z,{style:{color:"red"}}),(0,S.jsx)("span",{className:"font14 ml5",children:"错误示例数据结构2019春"})]})]})]}),(0,S.jsx)(x.Z.Item,{label:"地区:",name:"city",children:(0,S.jsx)(Z.Z,{allowClear:!0,size:"middle",options:C.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:V}})}),(0,S.jsx)(x.Z.Item,{label:"详细地址:",name:"address",children:(0,S.jsx)(f.Z,{placeholder:"请填写完整的地址信息"})}),(0,S.jsx)(x.Z.Item,{label:"说明:",name:"remarks",children:(0,S.jsx)(D,{placeholder:"再次说明特别情况(选填)"})}),(0,S.jsx)("div",{className:F,children:(0,S.jsxs)(x.Z.Item,{children:[(0,S.jsx)(_.ZP,{className:"mr5",size:"middle",onClick:function(){c()},children:"取消"}),(0,S.jsx)(_.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:n["account/appplySchool"],children:"保存"})]})})]})})}))},37962:function(e,n){n.Z={modal:"modal___AR21E",colorBlue:"colorBlue___b0CCE",formWrap:"formWrap___OyO5X",flexRow:"flexRow___wW7jP",flexColumn:"flexColumn___BCgnC",example:"example___ZutfX",exampleImg:"exampleImg___kx2Sr",colorOrange:"colorOrange___Vxey1",uploader:"uploader___XWuRm",uploadImg:"uploadImg___K7STh",imageTip:"imageTip___E92I3",uploadTipIcon:"uploadTipIcon___T9xzR",uploadTip:"uploadTip___q47UY",color05101a:"color05101a___QWF70",viewLargerImg:"viewLargerImg___fGLAh",footerWrap:"footerWrap___ko3aN",note:"note___ks3DM",schoolHintWrap:"schoolHintWrap___nges7",colorCDCDCD:"colorCDCDCD___KQtws",color0152d9:"color0152d9___fTD_v",tips:"tips___NZ2ux"}},88522:function(e,n,t){var a=t(92310),l=t.n(a),r=t(29541),i=t(83930),s=t(59301),o=t(53487),c=t(92343),d=t(36355),u=t(57809);const{Option:p}=u.default;function m(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const h=(e,n)=>{const{prefixCls:t,className:a,popupClassName:o,dropdownClassName:h,children:f,dataSource:x}=e,j=(0,r.Z)(f);let g;1===j.length&&(0,c.l$)(j[0])&&!m(j[0])&&([g]=j);const v=g?()=>g:void 0;let Z;Z=j.length&&m(j[0])?f:x?x.map((e=>{if((0,c.l$)(e))return e;switch(typeof e){case"string":return s.createElement(p,{key:e,value:e},e);case"object":{const{value:n}=e;return s.createElement(p,{key:n,value:n},e.text)}default:return}})):[];const{getPrefixCls:_}=s.useContext(d.E_),y=_("select",t);return s.createElement(u.default,Object.assign({ref:n,suffixIcon:null},(0,i.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:y,popupClassName:o||h,className:l()(`${y}-auto-complete`,a),mode:u.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:v}),Z)},f=s.forwardRef(h),x=(0,o.Z)(f);f.Option=p,f._InternalPanelDoNotUseOrYouWillBeFired=x,n.Z=f},29831:function(e,n,t){e.exports=t.p+"static/touge_code.728ce351.jpg"}}]);