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/p__Engineering__Lists__Teac...

1 line
24 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden 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([[92045],{61799:function(e,n,t){t.r(n),t.d(n,{default:function(){return R}});var a=t(7557),r=t.n(a),l=t(82242),i=t.n(l),s=t(41498),o=t.n(s),c=t(79800),d=t.n(c),u=t(59301),h={flex_box_center:"flex_box_center____IKzc",flex_space_between:"flex_space_between___pQ6WG",flex_box_vertical_center:"flex_box_vertical_center___FwFRn",flex_box_center_end:"flex_box_center_end___ALgdQ",flex_box_column:"flex_box_column___Nkmwa",wrap:"wrap___myvWj",title:"title___WWH7y",tabWarp:"tabWarp___nJkgr",control:"control___ZBPSX",label:"label___Yi2Z_",customTable:"customTable___MusIf",detail:"detail___NJGhU",button:"button___giltN",form:"form___nYZVP",customModal:"customModal___w75LI"},_=t(96707),p=t(74531),v=t(43418),m=t(81327),x=t(98135),f=t(14491),j=t(51836),b=t(89392),g="customModal___PPyWA",y="customTable___eZMV0",Z=t(37712),w=function(e){var n=e.visible,t=e.onOk,a=e.onCancel,l=e.title,s=void 0===l?"选择认证团队教师":l,c=e.schoolId,h={page:1,per_page:20,total:0,name:"",save_name:"",tel:"",save_tel:""},_=(0,u.useState)(i()({},h)),p=d()(_,2),w=p[0],k=p[1],C=(0,u.useState)([]),N=d()(C,2),P=N[0],I=N[1],S=(0,u.useState)([]),T=d()(S,2),O=T[0],F=T[1],z=(0,u.useState)(!1),W=d()(z,2),R=W[0],E=W[1],K=(0,u.useState)(!1),L=d()(K,2),M=L[0],q=L[1];(0,u.useEffect)((function(){n?A(h):(I([]),E(!1),k(h))}),[n]);var A=function(){var e=o()(r()().mark((function e(n){var t,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=(0,b.cloneDeep)(n)).school_id=c,q(!0),e.next=5,(0,j.ZP)("/api/ec_years/1/ec_teachers/search_users.json",{method:"get",params:t});case 5:null!=(a=e.sent)&&a.data&&(w.total=null==a?void 0:a.count,w.save_name=w.save_name,w.save_tel=w.tel,k(i()({},w)),F((null==a?void 0:a.data)||[])),q(!1);case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),D={selectedRowKeys:P,columnWidth:40,onChange:function(e){return I(e)}},U=[{title:"姓名",dataIndex:"name"},{title:"手机号码",dataIndex:"phone",render:function(e){if(!e)return"";var n=null==e?void 0:e.replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2");return(0,Z.jsx)("span",{children:n})}},{title:"职称",dataIndex:"pro"},{title:"职务",dataIndex:"identity"},{title:"所属学院",dataIndex:"department"}];return(0,Z.jsxs)(v.Z,{title:s,open:n,onOk:function(){E(!0),t(P,(function(){E(!1)}))},centered:!0,wrapClassName:g,onCancel:function(){a()},confirmLoading:R,width:"800px",okText:"保存",cancelText:"取消",children:[(0,Z.jsx)(m.Z,{size:20,children:(0,Z.jsx)(x.Z.Search,{style:{width:343,height:38},placeholder:"请输入姓名",value:null==w?void 0:w.save_name,onChange:function(e){w.save_name=e.target.value,k(i()({},w))},onSearch:function(){w.page=1,w.name=w.save_name,k(i()({},w)),A(w)}})}),(0,Z.jsx)("div",{style:{color:"#FA6400"},className:"mt10 mb10 pr20",children:"!需从头歌平台选择已注册的本学校教师。未出现在列表的教师请先在头歌平台注册账号,然后在账号管理-基本信息页面,正确填写学校/单位信息。"}),(0,Z.jsx)(f.Z,{rowSelection:D,dataSource:O,bordered:!1,rowKey:"id",scroll:{y:400},columns:U,loading:M,className:y,onChange:function(e,n,t){w.page=null==e?void 0:e.current,w.per_page=null==e?void 0:e.pageSize,k(i()({},w)),A(w)},pagination:{pageSize:w.per_page,total:w.total,current:w.page,showQuickJumper:!0,hideOnSinglePage:!0,size:"default",position:["bottomCenter"],showTotal:function(e){return(0,Z.jsxs)("span",{className:"mr10",children:["共",(0,Z.jsx)("span",{className:"c-orange",children:e}),"条数据"]})}}})]})},k=t(59922),C=t(78241),N=t(8591),P=t(6848),I=t(5112),S=t(3113),T=t(99313),O=t(57809),F=t(76279),z=t(68339),W=t(14735),R=(0,_.connect)((function(e){return{user:e.user}}))((function(e){var n,t,a=e.user,l=(0,u.useState)({page:1,per_page:20,total:0,search:"",tab:"1",save_search:"",ec_major_school_id:null,ec_year_id:null,category:"name",sort_by:null,direction:null}),s=d()(l,2),c=s[0],_=s[1],g=(0,u.useState)(!0),y=d()(g,2),R=y[0],E=y[1],K=(0,u.useState)(!1),L=d()(K,2),M=L[0],q=L[1],A=(0,u.useState)(!1),D=d()(A,2),U=D[0],V=D[1],Y=(0,u.useState)(!1),B=d()(Y,2),Q=B[0],H=B[1],J=(0,u.useState)(!1),$=d()(J,2),G=$[0],X=$[1],ee=(0,u.useState)(!1),ne=d()(ee,2),te=ne[0],ae=ne[1],re=(0,u.useState)(!1),le=d()(re,2),ie=le[0],se=le[1],oe=(0,u.useState)([]),ce=d()(oe,2),de=ce[0],ue=ce[1],he=(0,u.useState)([]),_e=d()(he,2),pe=_e[0],ve=_e[1],me=(0,u.useState)([]),xe=d()(me,2),fe=xe[0],je=xe[1],be=(0,u.useState)([]),ge=d()(be,2),ye=ge[0],Ze=ge[1],we=C.Z.useForm(),ke=d()(we,1)[0],Ce=(0,u.useRef)(null);(0,u.useEffect)((function(){var e;null!=a&&null!==(e=a.userInfo)&&void 0!==e&&e.school_id&&Pe()}),[null==a||null===(n=a.userInfo)||void 0===n?void 0:n.school_id]);var Ne=function(){var e=o()(r()().mark((function e(n){var t,l,s,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=(0,b.cloneDeep)(n),k.U.setItem(null==a||null===(t=a.userInfo)||void 0===t?void 0:t.login,[null==l?void 0:l.ec_major_school_id,null==l?void 0:l.ec_year_id]),l[null==n?void 0:n.category]=null==n?void 0:n.search,"2"===(null==n?void 0:n.tab)&&(l.school_id=null==a||null===(s=a.userInfo)||void 0===s?void 0:s.school_id),E(!0),e.next=7,(0,j.ZP)("/api/ec_years/".concat(c.ec_year_id,"/").concat("1"===(null==n?void 0:n.tab)?"ec_course_teachers":"ec_teachers",".json"),{method:"get",params:l});case 7:null!=(o=e.sent)&&o.data&&(Ze((null==o?void 0:o.data)||[]),c.total=null==o?void 0:o.count,c.save_search=c.search,_(i()({},c))),E(!1);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Pe=function(){var e=o()(r()().mark((function e(){var n,t,l,i,s,o,d,u,h;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/schools/".concat(null==a||null===(n=a.userInfo)||void 0===n?void 0:n.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(null!=(o=e.sent)&&null!==(t=o.data)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.ec_major_school_id){e.next=7;break}return E(!1),q(!0),e.abrupt("return");case 7:return d=k.U.getItem(null==a||null===(l=a.userInfo)||void 0===l?void 0:l.login),u=d[0]||(null==o||null===(i=o.data)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.ec_major_school_id),e.next=11,(0,j.ZP)("/api/ec_major_schools/".concat(u,"/ec_years/get_year_list.json"),{method:"get"});case 11:h=e.sent,c.ec_major_school_id=u,c.ec_year_id=d[1]||(null==h||null===(s=h.data)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.ec_year_id),ve((null==o?void 0:o.data)||[]),je((null==h?void 0:h.data)||[]),_(c),Ne(c);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ie=function(){var e=o()(r()().mark((function e(n){var t,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/ec_major_schools/".concat(n,"/ec_years/get_year_list.json"),{method:"get"});case 2:a=e.sent,c.ec_major_school_id=n,c.ec_year_id=null==a||null===(t=a.data)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.ec_year_id,je((null==a?void 0:a.data)||[]),_(c),Ne(c);case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Se=function(e,n){if(c.page=1,c[n]=e,"category"===n)return c.search="",c.save_search="",void _(i()({},c));"ec_major_school_id"!==n?"ec_year_id"===n&&(_(i()({},c)),Ne(c)):Ie(e)},Te=function(e){var n;0!==e.length?v.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:"确认要删除吗?",onOk:(n=o()(r()().mark((function n(){var t,a;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,j.ZP)("/api/ec_years/".concat(c.ec_year_id,"/").concat("1"===(null==c?void 0:c.tab)?"ec_course_teachers":"ec_teachers",".json"),{method:"delete",body:{ids:e}});case 2:0===(null==(t=n.sent)?void 0:t.status)&&(a=e.length===ye.length&&c.page>1?c.page-1:c.page,c.page=a,ue([]),_(i()({},c)),Ne(c));case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})}):N.ZP.warning("请选择要移除的教师")},Oe={selectedRowKeys:de,columnWidth:54,onChange:function(e){return ue(e)},getCheckboxProps:function(e){return{disabled:e.is_manager}}},Fe=[{title:"序号",dataIndex:"index",width:90,render:function(e,n,t){return c.per_page*(c.page-1)+t+1}},{title:"姓名",dataIndex:"name",ellipsis:!0,sortOrder:"name"===c.sort_by&&("desc"===c.direction?"descend":"ascend"),render:function(e,n){return e?(0,Z.jsxs)("span",{children:[n.is_manager&&(0,Z.jsx)(P.Z,{title:"系统管理员",children:(0,Z.jsx)("i",{className:"iconfont icon-ren mr5"})}),e]}):"--"}},{title:"手机号码",dataIndex:"1"===(null==c?void 0:c.tab)?"tel":"phone",ellipsis:!0,sorter:!0,sortOrder:c.sort_by===("1"===(null==c?void 0:c.tab)?"tel":"phone")&&("desc"===c.direction?"descend":"ascend"),render:function(e){return e||"--"}},{title:"邮箱",dataIndex:"1"===(null==c?void 0:c.tab)?"email":"mail",ellipsis:!0,sorter:!0,sortOrder:c.sort_by===("1"===(null==c?void 0:c.tab)?"email":"mail")&&("desc"===c.direction?"descend":"ascend"),render:function(e){return e||"--"}},{title:"职称",dataIndex:"1"===(null==c?void 0:c.tab)?"pro":"technical_title",ellipsis:!0,sortOrder:c.sort_by===("1"===(null==c?void 0:c.tab)?"pro":"technical_title")&&("desc"===c.direction?"descend":"ascend"),render:function(e){return e||""}},{title:"职务",dataIndex:"1"===(null==c?void 0:c.tab)?"job":"identity",ellipsis:!0,sortOrder:c.sort_by===("1"===(null==c?void 0:c.tab)?"job":"identity")&&("desc"===c.direction?"descend":"ascend"),render:function(e){return e||""}},{title:"所属学院/系",ellipsis:!0,dataIndex:"department",render:function(e){return e||""}},{title:"操作",dataIndex:"action",align:"center",width:90,render:function(e,n){return(0,Z.jsxs)("span",{children:["1"===c.tab?(0,Z.jsx)("i",{onClick:function(){return Ee(n.id)},className:"iconfont icon-bianji7 c-gcrz-primary current"}):(0,Z.jsx)("i",{onClick:function(){return Re(n.id)},className:"iconfont icon-chakansvg c-gcrz-primary current"}),!n.is_manager&&(0,Z.jsx)("i",{onClick:function(){return Te([n.id])},className:"iconfont icon-piliangshanchubeifen c-gcrz-primary current ml10"})]})}}],ze=function(){var e=o()(r()().mark((function e(n,t){var l,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==n.length){e.next=4;break}return N.ZP.warning("请选择一条数据"),t(),e.abrupt("return");case 4:return e.next=6,(0,j.ZP)("/api/ec_years/".concat(c.ec_year_id,"/ec_teachers.json"),{method:"post",body:{ids:n,school_id:null==a||null===(l=a.userInfo)||void 0===l?void 0:l.school_id}});case 6:0===(null==(i=e.sent)?void 0:i.status)&&(Ne(c),ae(!1)),t();case 9:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),We=function(){var e=o()(r()().mark((function e(n,t){var a,l,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==n.length){e.next=4;break}return N.ZP.warning("请上传文件"),t(),e.abrupt("return");case 4:return(l=new FormData).append("file",null===(a=n[0])||void 0===a?void 0:a.file),e.next=8,(0,j.ZP)("/api/ec_years/".concat(c.ec_year_id,"/ec_course_teachers/import_course_teachers.json"),{method:"post",body:l},!0);case 8:0===(null==(i=e.sent)?void 0:i.status)&&(Ne(c),X(!1)),t();case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Re=function(){var e=o()(r()().mark((function e(n){var t,l,i,s,o,d,u,_,p;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/ec_years/".concat(c.ec_year_id,"/ec_teachers.json"),{method:"get",params:{teacher_id:n,school_id:null==a||null===(t=a.userInfo)||void 0===t?void 0:t.school_id}});case 2:null!=(l=e.sent)&&l.data&&v.Z.info({title:"查看认证团队人员信息",className:"custom-modal-divider ",centered:!0,icon:null,content:(0,Z.jsxs)("div",{className:h.detail,children:[(0,Z.jsxs)("p",{children:[(0,Z.jsx)("span",{children:"姓名"}),(0,Z.jsx)("span",{children:(null==l||null===(i=l.data)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.name)||"-"})]}),(0,Z.jsxs)("p",{children:[(0,Z.jsx)("span",{children:"手机号码"}),(0,Z.jsx)("span",{children:(null==l||null===(s=l.data)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.phone)||"-"})]}),(0,Z.jsxs)("p",{children:[(0,Z.jsx)("span",{children:"邮箱"}),(0,Z.jsx)("span",{children:(null==l||null===(o=l.data)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.mail)||"-"})]}),(0,Z.jsxs)("p",{children:[(0,Z.jsx)("span",{children:"职称"}),(0,Z.jsx)("span",{children:(null==l||null===(d=l.data)||void 0===d||null===(d=d[0])||void 0===d?void 0:d.technical_title)||"-"})]}),(0,Z.jsxs)("p",{children:[(0,Z.jsx)("span",{children:"职务"}),(0,Z.jsx)("span",{children:(null==l||null===(u=l.data)||void 0===u||null===(u=u[0])||void 0===u?void 0:u.identity)||"-"})]}),(0,Z.jsxs)("p",{children:[(0,Z.jsx)("span",{children:"单位"}),(0,Z.jsx)("span",{children:(null==l||null===(_=l.data)||void 0===_||null===(_=_[0])||void 0===_?void 0:_.school)||"-"})]}),(0,Z.jsxs)("p",{children:[(0,Z.jsx)("span",{children:"学院/系"}),(0,Z.jsx)("span",{children:(null==l||null===(p=l.data)||void 0===p||null===(p=p[0])||void 0===p?void 0:p.department)||"-"})]})]}),okText:"关闭"});case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ee=function(){var e=o()(r()().mark((function e(n){var t,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return se(n),e.next=3,(0,j.ZP)("/api/ec_years/".concat(c.ec_year_id,"/ec_course_teachers.json"),{method:"get",params:{teacher_id:n}});case 3:null!=(t=e.sent)&&t.data&&ke.setFieldsValue((null==t||null===(a=t.data)||void 0===a?void 0:a[0])||{});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ke=function(){var e=o()(r()().mark((function e(n){var t,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ce.current?V(!0):H(!0),!ie){e.next=7;break}return e.next=4,(0,j.ZP)("/api/ec_years/".concat(c.ec_year_id,"/ec_course_teachers.json"),{method:"put",body:i()(i()({},n),{},{id:ie})});case 4:a=e.sent,e.next=10;break;case 7:return e.next=9,(0,j.ZP)("/api/ec_years/".concat(c.ec_year_id,"/ec_course_teachers.json"),{method:"post",body:n});case 9:a=e.sent;case 10:0===(null===(t=a)||void 0===t?void 0:t.status)&&(Ce.current?(X(!1),se(!1),ke.resetFields()):ke.resetFields(),N.ZP.success("保存成功"),Ne(c)),V(!1),H(!1);case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Le=function(e){return(0,Z.jsxs)("div",{children:[(0,Z.jsxs)(C.Z,{form:ke,colon:!1,onFinish:Ke,labelCol:{span:4},wrapperCol:{span:18},className:h.form,children:[(0,Z.jsx)(C.Z.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入姓名"},{whitespace:!0,message:"请输入姓名"}],children:(0,Z.jsx)(x.Z,{placeholder:"请输入姓名"})}),(0,Z.jsx)(C.Z.Item,{label:"手机号码",name:"tel",rules:[{required:!0,message:"请输入手机号码"},{pattern:/^1[3|4|5|7|8][0-9]\d{8}$/,message:"请输入正确的手机号"}],children:(0,Z.jsx)(x.Z,{placeholder:"请输入手机号码"})}),(0,Z.jsx)(C.Z.Item,{label:"邮箱",name:"email",rules:[{type:"email",message:"请输入正确的邮箱"}],children:(0,Z.jsx)(x.Z,{placeholder:"请输入邮箱"})}),(0,Z.jsx)(C.Z.Item,{label:"职称",name:"pro",rules:[{required:!0,message:"请输入所属职称"},{whitespace:!0,message:"请输入所属职称"}],children:(0,Z.jsx)(x.Z,{placeholder:"请输入所属职称"})}),(0,Z.jsx)(C.Z.Item,{label:"职务",name:"job",children:(0,Z.jsx)(x.Z,{placeholder:"请输入职务"})}),(0,Z.jsx)(C.Z.Item,{label:"单位",name:"school",children:(0,Z.jsx)(x.Z,{placeholder:"请输入单位"})}),(0,Z.jsx)(C.Z.Item,{style:{paddingBottom:0},label:"学院/系",name:"department",rules:[{required:!0,message:"请输入学院/系"},{whitespace:!0,message:"请输入学院/系"}],children:(0,Z.jsx)(x.Z,{placeholder:"请输入学院/系"})}),(0,Z.jsx)(C.Z.Item,{label:"专兼职情况",name:"is_part_time_job",initialValue:0,children:(0,Z.jsxs)(I.ZP.Group,{children:[(0,Z.jsx)(I.ZP,{value:0,children:"全职"}),(0,Z.jsx)(I.ZP,{value:1,children:"兼职"})]})})]}),(0,Z.jsxs)(m.Z,{className:h.button,size:10,style:{float:"right",marginRight:0,paddingBottom:0},children:[(0,Z.jsx)(S.ZP,{onClick:function(){se(!1),X(!1)},children:"取消"}),(0,Z.jsx)(S.ZP,{disabled:Q,type:e?"primary":"default",loading:U,onClick:function(){Ce.current=!0,ke.submit()},children:"保存"}),!e&&(0,Z.jsx)(S.ZP,{disabled:U,loading:Q,type:"primary",onClick:function(){Ce.current=!1,ke.submit()},children:"继续新增"})]}),(0,Z.jsx)("div",{style:{clear:"both"}})]})},Me=R||M;return(0,Z.jsxs)("div",{className:h.wrap,children:[(0,Z.jsx)(W.p,{title:"教师信息",style:{padding:"12px 0 10px 20px"}}),(0,Z.jsxs)(T.Z,{className:h.tabWarp,activeKey:null==c?void 0:c.tab,onChange:function(e){c.page=1,c.tab=e,c.sort_by=null,c.direction=null,c.search="",c.save_search="",_(i()({},c)),Me||Ne(c)},tabBarExtraContent:(0,Z.jsxs)(m.Z,{className:h.button,size:10,children:[(0,Z.jsxs)(S.ZP,{disabled:Me,onClick:function(){"2"!==c.tab?(ke.resetFields(),X(!0)):ae(!0)},type:"primary",children:[(0,Z.jsx)("i",{className:"iconfont icon-xinzeng font14 mr5"}),"新增人员"]}),(0,Z.jsxs)(S.ZP,{disabled:Me,onClick:function(){return Te(de)},children:[(0,Z.jsx)("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"批量删除"]}),(0,Z.jsxs)(S.ZP,{disabled:Me,onClick:function(){return(n=(0,b.cloneDeep)(c))[null==c?void 0:c.category]=null==c?void 0:c.search,"2"===(null==c?void 0:c.tab)&&(n.school_id=null==a||null===(e=a.userInfo)||void 0===e?void 0:e.school_id),void(0,F.FH)("",(0,F.NY)({url:z.Z.API_SERVER+"/api/ec_years/".concat(c.ec_year_id,"/").concat("1"===(null==c?void 0:c.tab)?"ec_course_teachers":"ec_teachers",".xlsx"),query:n}));var e,n},children:[(0,Z.jsx)("i",{className:"iconfont icon-daochubeifen font14 mr5"}),"导出"]})]}),children:[(0,Z.jsx)(T.Z.TabPane,{tab:"授课教师团队"},"1"),(0,Z.jsx)(T.Z.TabPane,{tab:"认证工作团队"},"2")]}),(0,Z.jsxs)("div",{className:h.control,children:[(0,Z.jsx)("div",{className:h.label,children:"认证专业"}),(0,Z.jsx)(O.default,{disabled:Me,style:{width:240},placeholder:"请选择认证专业",value:null==c?void 0:c.ec_major_school_id,onChange:function(e){return Se(e,"ec_major_school_id")},children:null==pe?void 0:pe.map((function(e){return(0,Z.jsx)(O.default.Option,{value:e.ec_major_school_id,children:e.name})}))}),(0,Z.jsx)("div",{className:h.label,children:"认证届别"}),(0,Z.jsx)(O.default,{disabled:Me,style:{width:140},placeholder:"请选择届别",value:null==c?void 0:c.ec_year_id,onChange:function(e){return Se(e,"ec_year_id")},children:null==fe?void 0:fe.map((function(e){return(0,Z.jsx)(O.default.Option,{value:e.ec_year_id,children:e.year})}))}),(0,Z.jsx)("div",{className:h.label,style:{width:100,background:"#fff"},children:(0,Z.jsxs)(O.default,{disabled:Me,style:{width:100,transform:"translate(-1px, -1px)"},bordered:!1,value:null==c?void 0:c.category,onChange:function(e){return Se(e,"category")},children:[(0,Z.jsx)(O.default.Option,{value:"name",children:"姓名"}),(0,Z.jsx)(O.default.Option,{value:"tel",children:"手机号码"}),(0,Z.jsx)(O.default.Option,{value:"email",children:"邮箱"})]})}),(0,Z.jsx)(x.Z.Search,{disabled:Me,placeholder:"请输入".concat("name"===(null==c?void 0:c.category)?"姓名":"tel"===(null==c?void 0:c.category)?"手机号码":"邮箱"),value:null==c?void 0:c.save_search,onChange:function(e){return n=e.target.value,c.page=1,c.save_search=n,void _(i()({},c));var n},onSearch:function(){c.page=1,c.search=c.save_search,_(i()({},c)),Ne(c)}})]}),(0,Z.jsx)(f.Z,{rowSelection:Oe,className:h.customTable,dataSource:ye,bordered:!1,rowKey:"id",columns:Fe,rowClassName:h.row,loading:R,onChange:function(e,n,t){c.page=null==e?void 0:e.current,c.per_page=null==e?void 0:e.pageSize,null!=t&&t.order?(c.sort_by=null==t?void 0:t.field,c.direction="ascend"===(null==t?void 0:t.order)?"asc":"desc"):(c.sort_by=null,c.direction=null),_(i()({},c)),Me||Ne(c)},pagination:{pageSize:c.per_page,total:c.total,current:c.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,position:["bottomCenter"],size:"default",showTotal:function(e){return(0,Z.jsxs)("span",{className:"mr10",children:["共",(0,Z.jsx)("span",{className:"c-orange",children:e}),"条数据"]})}}}),(0,Z.jsx)(p.Z,{title:"新增授课教师",visible:G,onCancel:function(){return X(!1)},onOk:We,templateFileName:"授课团队教师导入模板",templateFileUrl:z.Z.API_SERVER+"/api/ec_years/".concat(null==c?void 0:c.ec_year_id,"/ec_course_teachers/down_template.xlsx"),otherTemplateText:"批量导入授课团队教师信息。",formNode:Le()}),(0,Z.jsx)(w,{visible:te,onCancel:function(){return ae(!1)},onOk:ze,schoolId:null==a||null===(t=a.userInfo)||void 0===t?void 0:t.school_id}),(0,Z.jsx)(v.Z,{title:"修改授课教师信息",className:h.customModal,open:ie,centered:!0,onCancel:function(){se(!1),ke.resetFields()},width:"740px",footer:null,children:Le(!0)})]})}))},14735:function(e,n,t){t.d(n,{p:function(){return l},v:function(){return s}});t(59301);var a="panelTitleContainer___Ypuh_",r=t(37712),l=function(e){var n=e.title,t=e.style,l=void 0===t?{}:t;return(0,r.jsx)("div",{className:a,style:l,children:(0,r.jsx)("div",{children:n})})},i="selectWrapContainer___qocIH",s=function(e){var n=e.title,t=e.children;return(0,r.jsxs)("div",{className:i,children:[(0,r.jsx)("span",{children:n}),t]})}},74531:function(e,n,t){t.d(n,{Z:function(){return j}});var a=t(79800),r=t.n(a),l=t(59301),i=t(8591),s=t(43418),o=t(99313),c=t(46651),d=t(3113),u=t(81327),h=t(22415),_=t(76279),p=t(96707),v="customModal___YbYj5",m="content___1WuDQ",x="tabWarp___FHw0u",f=t(37712),j=function(e){var n=e.visible,t=e.onOk,a=e.onCancel,j=e.templateFileName,b=e.templateFileUrl,g=e.otherTemplateText,y=e.formNode,Z=e.title,w=(0,l.useState)([]),k=r()(w,2),C=k[0],N=k[1],P=(0,l.useState)(!1),I=r()(P,2),S=I[0],T=I[1],O=(0,l.useState)("1"),F=r()(O,2),z=F[0],W=F[1];(0,p.useParams)();(0,l.useEffect)((function(){n||(N([]),T(!1),W("1"))}),[n]);var R=function(){a()};return(0,f.jsx)(s.Z,{title:Z,open:n,centered:!0,wrapClassName:v,onCancel:R,width:"740px",confirmLoading:S,footer:null,children:(0,f.jsxs)(o.Z,{className:x,onChange:function(e){return W(e)},activeKey:z,children:[(0,f.jsx)(o.Z.TabPane,{tab:"手动新增",children:y},"1"),(0,f.jsx)(o.Z.TabPane,{tab:"批量导入",children:(0,f.jsxs)("div",{className:m,children:[(0,f.jsxs)("div",{style:{marginLeft:0,paddingBottom:50},children:[(0,f.jsxs)("div",{style:{marginTop:36},children:[(0,f.jsx)("span",{children:"步骤1"}),(0,f.jsxs)("span",{children:["下载 ",(0,f.jsxs)("span",{style:{color:"#0152D9",cursor:"pointer"},onClick:function(){var e=b;(0,_.Nd)(null,e)},children:[(0,f.jsx)("i",{className:"iconfont icon-moban1 font14"}),j]})," ",g]}),(0,f.jsx)("span",{style:{color:"#FA6400"},className:"mt10",children:"注目前仅支持Excel格式模板。"})]}),(0,f.jsxs)("aside",{style:{marginTop:30},children:[(0,f.jsx)("div",{className:"mr20",children:"步骤2上传填写完成的模板。"}),(0,f.jsx)("div",{children:n&&(0,f.jsx)(c.Z,{action:"/api/attachments.json",fileList:C,beforeUpload:function(e){var n,t,a,r,l=null==e||null===(n=e.name)||void 0===n?void 0:n.substring(null==e||null===(t=e.name)||void 0===t?void 0:t.lastIndexOf("."),null==e||null===(a=e.name)||void 0===a?void 0:a.length);if(".xls"!==(l=null===(r=l)||void 0===r?void 0:r.toLowerCase())&&".xlsx"!==l)return i.ZP.error("只能上传.xls,.xlsx格式的文档"),Promise.reject();var s={name:e.name,uid:e.uid,file:e};return N([s]),!1},onRemove:function(){N([])},withCredentials:!0,accept:".xls,.xlsx",children:(0,f.jsx)(d.ZP,{type:"primary",icon:(0,f.jsx)(h.Z,{}),children:"选择文件"})})})]})]}),(0,f.jsxs)(u.Z,{className:"",size:10,style:{float:"right"},children:[(0,f.jsx)(d.ZP,{onClick:function(){return R()},children:"取消"}),(0,f.jsx)(d.ZP,{onClick:function(){return T(!0),void t(C,(function(){T(!1)}))},type:"primary",children:"确认"})]})]})},"2")]})})}}}]);