|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[16853],{51812:function(e,n,t){var a=t(7557),s=t.n(a),o=t(82242),r=t.n(o),c=t(41498),l=t.n(c),i=t(79800),u=t.n(i),d=t(39647),m=t.n(d),p=t(59301),f=t(34912),x=t(92832),h=t(78241),v=t(8591),g=t(43418),j=t(3085),b=t(37712),Z=["account","globalSetting","loading","dispatch","departmentName","majorName","visible","onClose","onSuccess"],C=x.Z.TextArea;n.Z=(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,e.loading,e.dispatch;var n=e.departmentName,t=e.majorName,a=e.visible,o=e.onClose,c=void 0===o?function(){}:o,i=e.onSuccess,d=void 0===i?function(){}:i,f=m()(e,Z),y=h.Z.useForm(),S=u()(y,1)[0],k=(0,p.useRef)(),w=(0,p.useState)(!1),N=u()(w,2),_=N[0];N[1];(0,p.useEffect)((function(){k.current=f.departmentId}),[f.departmentId]),(0,p.useEffect)((function(){S.setFieldsValue({name:t})}),[t]);var I=function(){var e=l()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S.validateFields();case 2:return e.next=4,(0,j.ZP)("/api/departments/".concat(k.current,"/majors.json"),{method:"post",body:r()({},S.getFieldsValue())});case 4:0===e.sent.status&&(v.ZP.success("申请成功!"),d(S.getFieldValue("name")),S.resetFields(),c());case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,b.jsx)(g.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:a,title:"申请新增专业名称",width:"600px",onCancel:c,onOk:function(){return S.submit()},confirmLoading:_,children:(0,b.jsxs)(h.Z,{form:S,labelCol:{span:4},wrapperCol:{span:20},onFinish:I,children:[(0,b.jsx)(h.Z.Item,{label:"院系名称:",children:n}),(0,b.jsx)(h.Z.Item,{label:"专业名称:",name:"name",rules:[{required:!0,message:"请输入专业名称"}],children:(0,b.jsx)(x.Z,{placeholder:"请输入专业名称",showCount:!0,maxLength:20})}),(0,b.jsx)(h.Z.Item,{label:"说明:",name:"remarks",style:{marginBottom:0},children:(0,b.jsx)(C,{placeholder:"再次说明特别情况(选填)"})})]})})}))},56444:function(e,n,t){var a=t(82242),s=t.n(a),o=(t(59301),t(93314)),r=t(3113),c=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,a=void 0===t?{}:t,l=e.styles,i=void 0===l?{}:l,u=e.customText,d=e.ButtonText,m=e.ButtonClick,p=e.Buttonclass,f=e.ButtonTwo,x=e.imgStyles,h=e.loading,v=void 0!==h&&h;return(0,c.jsxs)("section",{className:"tc animated fadeIn",style:s()(s()({},{color:"#999",margin:"100px auto",visibility:v?"hidden":"visible"}),i),children:[(0,c.jsx)("img",{src:n||o,style:s()(s()({},x),{},{pointerEvents:"none",userSelect:"none"})}),(0,c.jsx)("p",{className:"mt20 font14",children:u||"暂时还没有相关数据哦!"}),d&&(0,c.jsx)(r.ZP,s()(s()({className:p,onClick:m},a),{},{children:d})),f&&f]})}},81209:function(e,n,t){t.d(n,{Z:function(){return T}});var a=t(7557),s=t.n(a),o=t(82242),r=t.n(o),c=t(41498),l=t.n(c),i=t(79800),u=t.n(i),d=t(39647),m=t.n(d),p=t(59301),f=t(34912),x=t(92832),h=t(78241),v=t(43418),g=t(51945),j=t(8591),b=t(19842),Z=t(3113),C=t(46906),y=t(21884),S=t(58995),k="flexRow___Ys7oN",w="flexColumn___awMMf",N="formWrap___j8Lzv",_="example___xf0jY",I="footerWrap___GFnQD",O=t(37712),E=["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"],F=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},P=x.Z.TextArea,T=(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,a=e.schoolName,o=e.visible,c=e.onClose,i=void 0===c?function(){}:c,d=e.onSuccess,f=void 0===d?function(){}:d,T=(m()(e,E),h.Z.useForm()),B=u()(T,1)[0];(0,p.useEffect)((function(){B.setFieldsValue({name:a})}),[a]);var L=function(){var e=l()(s()().mark((function e(n){var a,o,c,u,d,m,p,x;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(a=n||{}).name,c=a.city,u=void 0===c?[]:c,d=a.address,m=a.remarks,e.next=3,t({type:"account/appplySchool",payload:{name:o,province:u[0],city:u[1],address:d,remarks:m}});case 3:if(2!=(null==(p=e.sent)?void 0:p.status)){e.next=7;break}return x=v.Z.confirm({icon:null,width:600,centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("p",{children:"系统检测到您申请新增的单位已存在,请确认是否为该单位?"}),(0,O.jsx)(g.Z,{columns:[{title:"学校/单位",dataIndex:"name"},{title:"用户数",width:150,dataIndex:"users_count"}],dataSource:[r()({},p)],pagination:!1})]}),onOk:function(){var e=l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f(o);case 2:x.destroy(),i();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),onCancel:function(){x.destroy()}}),e.abrupt("return");case 7:i(),0==p.status&&(j.ZP.success("新增学校/单位成功!"),f(o));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,O.jsx)(v.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:o,title:"申请添加单位名称",width:"600px",footer:null,children:(0,O.jsxs)(h.Z,{className:N,form:B,labelCol:{span:4},wrapperCol:{span:20},onFinish:L,children:[(0,O.jsx)(h.Z.Item,{label:"单位全称:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,O.jsx)(x.Z,{placeholder:"学校或工作单位"})}),(0,O.jsxs)("div",{className:"".concat(k," ").concat(_),children:[(0,O.jsx)("div",{children:"示例:"}),(0,O.jsxs)("div",{className:w,children:[(0,O.jsxs)("div",{children:[(0,O.jsx)(C.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,O.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)(y.Z,{style:{color:"red"}}),(0,O.jsx)("span",{className:"font14 ml5",children:"错误示例:数据结构2019春"})]})]})]}),(0,O.jsx)(h.Z.Item,{label:"地区:",name:"city",children:(0,O.jsx)(b.Z,{allowClear:!0,size:"middle",options:S.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:F}})}),(0,O.jsx)(h.Z.Item,{label:"详细地址:",name:"address",children:(0,O.jsx)(x.Z,{placeholder:"请填写完整的地址信息"})}),(0,O.jsx)(h.Z.Item,{label:"说明:",name:"remarks",children:(0,O.jsx)(P,{placeholder:"再次说明特别情况(选填)"})}),(0,O.jsx)("div",{className:I,children:(0,O.jsxs)(h.Z.Item,{children:[(0,O.jsx)(Z.ZP,{className:"mr5",size:"middle",onClick:function(){i()},children:"取消"}),(0,O.jsx)(Z.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:n["account/appplySchool"],children:"保存"})]})})]})})}))},38948:function(e,n,t){var a=t(79800),s=t.n(a),o=t(59301),r=t(34912),c=t(99171),l=t(37712);n.Z=function(e){var n=e.children,t=e.active,a=((0,r.useParams)(),(0,o.useState)(t||1)),i=s()(a,2),u=(i[0],i[1]),d=(0,o.useRef)();return(0,o.useEffect)((function(){var e;d.current=null===(e=location.pathname.split("/"))||void 0===e?void 0:e[2]}),[location.pathname]),(0,l.jsx)("section",{style:{backgroundColor:"#fff",padding:"22px 0 0 38px"},children:(0,l.jsx)(c.YG,{value:t,onChange:function(e){u(e)},tabBarExtraContent:n,dataSource:[{id:1,name:"基本信息",link:"/users/".concat(d.current,"/baseInfo/edit")},{id:2,name:"实名认证",link:"/users/".concat(d.current,"/realNameCertification")},{id:3,name:"职业认证",link:"/users/".concat(d.current,"/careerCertification")}]})})}},88522:function(e,n,t){var a=t(92310),s=t.n(a),o=t(75440),r=t(55405),c=t(59301),l=t(53487),i=t(92343),u=t(36355),d=t(57809);const{Option:m}=d.default;function p(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const f=(e,n)=>{const{prefixCls:t,className:a,popupClassName:l,dropdownClassName:f,children:x,dataSource:h}=e,v=(0,o.Z)(x);let g;1===v.length&&(0,i.l$)(v[0])&&!p(v[0])&&([g]=v);const j=g?()=>g:void 0;let b;b=v.length&&p(v[0])?x:h?h.map((e=>{if((0,i.l$)(e))return e;switch(typeof e){case"string":return c.createElement(m,{key:e,value:e},e);case"object":{const{value:n}=e;return c.createElement(m,{key:n,value:n},e.text)}default:return}})):[];const{getPrefixCls:Z}=c.useContext(u.E_),C=Z("select",t);return c.createElement(d.default,Object.assign({ref:n,suffixIcon:null},(0,r.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:C,popupClassName:l||f,className:s()(`${C}-auto-complete`,a),mode:d.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:j}),b)},x=c.forwardRef(f),h=(0,l.Z)(x);x.Option=m,x._InternalPanelDoNotUseOrYouWillBeFired=h,n.Z=x},29831:function(e,n,t){e.exports=t.p+"static/touge_code.728ce351.jpg"},95836:function(e,n,t){e.exports=t.p+"static/touge_code4.2cfe11e0.png"}}]); |