"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[59788,20576],{95171:function(l,e,n){n.r(e),n.d(e,{default:function(){return Z}});var i=n(39647),t=n.n(i),a=(n(59301),n(65363)),d=n(3113),s=n(78241),o=n(59028),r="wrap___b7NLQ",c="content___PtdDU",u="hint___eYy0R",h="title___Ijn2y",m="titleWrap___DpFsH",_="formWrap___Obi0m",v=n(50712),p=n(27627),x=n(15309),g=n(80848),j=n(65428),b=n(38296),f=n(37712),y=["account","globalSetting","loading","dispatch"],Z=(0,a.connect)((function(l){var e=l.account,n=l.loading;return{account:e,globalSetting:l.globalSetting,loading:n.models.index}}))((function(l){var e,n,i=l.account,Z=(l.globalSetting,l.loading,l.dispatch),I=(t()(l,y),i.basicInfo);return(0,f.jsxs)("section",{className:r,children:[(0,f.jsxs)("div",{className:c,children:[(0,f.jsxs)("div",{className:m,children:[(0,f.jsx)("div",{className:h,children:"基本信息"}),(0,f.jsx)(d.ZP,{type:"primary",ghost:!0,onClick:function(){"0"===localStorage.getItem("Noviceguide")||Z({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:2,href:"/account/profile/edit",text:(0,f.jsx)("div",{children:"请您完善一下平台的基本信息,包括:昵称、职业、学校/单位, 点击保存"})}}),a.history.push("/account/profile/edit")},children:"修改"})]}),(0,f.jsxs)(s.Z,{className:_,labelCol:{span:3},wrapperCol:{span:21},layout:"horizontal",children:[(0,f.jsx)(s.Z.Item,{label:"姓名",children:1==(null==I?void 0:I.show_realname)?null==I?void 0:I.name:(0,p.YA)(null==I?void 0:I.name)}),(0,f.jsxs)(s.Z.Item,{label:"职业",children:[v.identityMap[null==I?void 0:I.identity]," ",(null==I?void 0:I.technical_title)||(null==I?void 0:I.student_id),(0,f.jsx)("span",{className:"ml20",children:null==I?void 0:I.staff_id})]}),(0,f.jsx)(s.Z.Item,{label:"学校/单位",children:null==I?void 0:I.school_name}),(0,f.jsx)(s.Z.Item,{label:"院系/部门",children:null==I?void 0:I.department_name}),(0,f.jsx)(s.Z.Item,{label:"昵称",children:null==I?void 0:I.nickname}),(0,f.jsx)(s.Z.Item,{label:"性别",children:0==(null==I?void 0:I.gender)?"男":"女"}),(0,f.jsx)(s.Z.Item,{label:"入学年份",children:null==I?void 0:I.edu_entry_year}),(0,f.jsx)(s.Z.Item,{label:"最高学历",children:null==I?void 0:I.edu_background}),(0,f.jsx)(s.Z.Item,{label:"student"===(null==I?void 0:I.identity)?"班级":"负责班级",children:(0,f.jsx)("div",{style:{width:"100%",display:"flex",flexWrap:"wrap"},children:null===(null==I?void 0:I.student_group_name)||""===(null==I?void 0:I.student_group_name)||0===(null==I||null===(e=I.student_group_name)||void 0===e?void 0:e.length)?(0,b.JA)()?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{children:"未分班"}),(0,f.jsx)("span",{style:{color:"#FA6400"},children:"(请联系上课老师添加班级)"})]}):null:Array.isArray(null==I?void 0:I.student_group_name)?null==I||null===(n=I.student_group_name)||void 0===n?void 0:n.map((function(l,e){var n;return(0,f.jsx)("div",{children:e===(null==I||null===(n=I.student_group_name)||void 0===n?void 0:n.length)-1?"".concat(l):"".concat(l,",")},e)})):(0,f.jsx)("div",{children:null==I?void 0:I.student_group_name})})}),(null==I?void 0:I.face_image)&&(0,f.jsx)(s.Z.Item,{label:"上传证件照",children:(0,f.jsx)(o.Z,{listType:"picture-card",withCredentials:!0,disabled:!0,onPreview:function(l){j.Z.publish("preview-image",l.thumbUrl||l.url)},className:"avatar-uploader",fileList:[{uid:"111",name:"111",url:x.Z.API_SERVER+(null==I?void 0:I.face_image)}]})}),(0,f.jsx)(s.Z.Item,{label:"简介",children:null==I?void 0:I.brief_introduction})]})]}),(0,f.jsx)("div",{className:"".concat(u," font14"),children:"* 我们确保你所提供的信息均处于严格保密状态,不会泄露"}),(0,f.jsx)(g.Z,{})]})}))}}]);