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.
1 line
20 KiB
1 line
20 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[33815],{17543:function(e,t,n){n.d(t,{Z:function(){return k}});var s=n(17061),i=n.n(s),l=n(17156),a=n.n(l),o=n(27424),r=n.n(o),c=n(67294),u=n(91773),d=n(2453),p=n(14446),m=n(45741),h=n(11486),f=n(76661),x=n(71230),v=n(15746),g=n(27484),b=n.n(g),y=n(29427),_=n(88275),w={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},j=n(73290),A=n(38448),T=n(85893),k=(0,_.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var t=e.dispatch,n=e.courseEndTime,s=(e.classroomList,e.successCallback),l=void 0===s?function(){}:s,o=e.visible,g=e.homeworkIds,_=e.courseId,k=e.isBatch,Z=(e.shixunHomeworks,u.Z.useForm()),C=r()(Z,1)[0],S=(0,c.useState)(!1),H=r()(S,2),Y=H[0],L=H[1],I=(0,c.useState)(!1),D=r()(I,2),N=D[0],M=D[1],E=(0,c.useState)(!1),F=r()(E,2),O=F[0],W=F[1],P=(0,c.useState)([]),B=r()(P,2),Q=B[0],K=B[1],R=(0,c.useState)([]),V=r()(R,2),G=V[0],J=V[1],U=(0,c.useState)([]),z=r()(U,2),X=z[0],q=z[1],$=(0,c.useState)([]),ee=r()($,2),te=ee[0],ne=ee[1],se=(0,c.useState)([]),ie=r()(se,2),le=ie[0],ae=ie[1],oe=(0,c.useState)([]),re=r()(oe,2),ce=re[0],ue=re[1],de=(0,c.useState)([]),pe=r()(de,2),me=pe[0],he=pe[1],fe=(0,c.useState)([]),xe=r()(fe,2),ve=xe[0],ge=xe[1],be=(0,c.useState)([]),ye=r()(be,2),_e=ye[0],we=ye[1];(0,c.useEffect)((function(){o?je():Te()}),[o]);var je=function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),e.next=3,(0,j.oR)(g[0],{course_id:_});case 3:t=e.sent,W(t.no_group),k?(he(t.all_course_groups),ge(t.all_course_groups)):(ne(t.late_course_groups),ae(t.late_course_groups),K(t.submit_course_groups),J(t.submit_course_groups)),L(!1),C.setFieldsValue({end_time:b()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ae=function(){var e=a()(i()().mark((function e(){var n,s,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=C.getFieldsValue(),s=b()(n.end_time).format("YYYY-MM-DD HH:mm"),!(k?0===_e.length:0===X.length&&0===ce.length)||O){e.next=6;break}return d.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return M(!0),e.next=9,(0,j.Mc)(_,{no_group:O,homework_ids:g,group_ids:k?_e:X,end_time:s,late_group_ids:k?_e:ce});case 9:a=e.sent,M(!1),0===a.status&&(Te(),d.ZP.success("操作成功"),l(),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Te=function(){q([]),ue([]),J([]),ae([])};return(0,T.jsxs)(p.Z,{centered:!0,title:"立即截止",className:w.modalWrapper,width:k||O?520:760,open:o,confirmLoading:N,destroyOnClose:!0,okText:"截止",cancelText:"取消",onOk:function(){return Ae()},onCancel:function(){Te(),t({type:"classroomList/setActionTabs",payload:{}})},children:[(0,T.jsxs)("div",{className:w.tips,children:[(0,T.jsx)("div",{children:"1、截止后学生不能再提交作业。"}),(0,T.jsx)("div",{children:"2、本操作只对“提交中”、“补交中”的作业有效。"})]}),(0,T.jsx)(u.Z,{form:C,layout:"vertical",children:(0,T.jsx)(u.Z.Item,{name:"end_time",label:"截止时间",children:(0,T.jsx)(m.Z,{style:{width:"100%"},disabledDate:function(e){return(0,A.Q8)(e,n)},disabledTime:function(e){return(0,A.d0)(e)},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:b()((0,y.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),!O&&(0,T.jsx)(T.Fragment,{children:k?(0,T.jsxs)("div",{children:[(0,T.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ge(me.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,T.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:w.antdTable,rowSelection:{type:"checkbox",onChange:function(e){we(e)}},rowKey:"id",pagination:!1,dataSource:ve,loading:Y,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,T.jsxs)(x.Z,{gutter:24,children:[(0,T.jsxs)(v.Z,{span:14,children:[(0,T.jsx)("div",{className:w.homeworkType,children:"作业截止"}),(0,T.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){J(Q.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,T.jsx)("div",{className:w.tableWrapper,children:(0,T.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:w.antdTable,rowSelection:{type:"checkbox",onChange:function(e){q(e)}},rowKey:"id",pagination:!1,dataSource:G,loading:Y,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,T.jsxs)(v.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,T.jsx)("div",{className:w.homeworkType,children:"补交截止"}),(0,T.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,T.jsx)("div",{className:w.tableWrapper,children:(0,T.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:w.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:Y,dataSource:le,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},33137:function(e,t,n){var s=n(17061),i=n.n(s),l=n(38416),a=n.n(l),o=n(17156),r=n.n(o),c=n(42122),u=n.n(c),d=n(861),p=n.n(d),m=n(27424),h=n.n(m),f=n(70215),x=n.n(f),v=n(67294),g=n(91773),b=n(2453),y=n(14446),_=n(71230),w=n(78045),j=n(4082),A=n(15746),T=n(45741),k=n(84567),Z=n(27484),C=n.n(Z),S=n(84519),H=n(7),Y=n(29427),L=n(88275),I=n(27232),D=n(73290),N=n(38448),M=n(85893),E=["classroomList","dispatch","courseEndTime"];t.Z=(0,L.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n,s,l,o,c,d,m,f,Z,F,O,W,P,B,Q,K,R,V,G,J,U,z,X,q,$,ee,te,ne,se,ie,le,ae,oe,re,ce,ue,de,pe,me=e.classroomList,he=e.dispatch,fe=e.courseEndTime,xe=x()(e,E),ve=(0,L.useParams)(),ge=g.Z.useForm(),be=h()(ge,1)[0],ye=(0,v.useState)(1),_e=h()(ye,2),we=_e[0],je=_e[1],Ae=(0,v.useState)([]),Te=h()(Ae,2),ke=Te[0],Ze=Te[1],Ce=(0,v.useState)(0),Se=h()(Ce,2),He=(Se[0],Se[1]),Ye=(0,v.useState)(2e3),Le=h()(Ye,2),Ie=(Le[0],Le[1],(0,v.useState)(!0)),De=h()(Ie,2),Ne=(De[0],De[1]),Me=(0,v.useState)(!1),Ee=h()(Me,2),Fe=Ee[0],Oe=(Ee[1],(0,v.useState)(!1)),We=h()(Oe,2),Pe=We[0],Be=(We[1],(0,v.useState)([])),Qe=h()(Be,2),Ke=Qe[0],Re=Qe[1],Ve=(0,v.useState)(!0),Ge=h()(Ve,2),Je=Ge[0],Ue=Ge[1],ze=(0,v.useState)(!(null!==(t=me.actionTabs)&&void 0!==t&&null!==(n=t.selectArrsAll)&&void 0!==n&&null!==(s=n[0])&&void 0!==s&&s.send_type)),Xe=h()(ze,2),qe=Xe[0],$e=Xe[1],et=(0,v.useState)([0,0,0]),tt=h()(et,2),nt=tt[0],st=tt[1];(0,v.useEffect)((function(){if("立即发布"===me.actionTabs.key){var e,t,n,s,i,l,a,o,r,c,u,d;if(ot(),null!==(e=me.actionTabs)&&void 0!==e&&null!==(t=e.selectArrsAll)&&void 0!==t&&null!==(n=t[0])&&void 0!==n&&n.can_publish)st(p()(null===(a=me.actionTabs)||void 0===a||null===(o=a.selectArrsAll)||void 0===o||null===(r=o[0])||void 0===r?void 0:r.difficult_count));else st(p()(null===(c=me.actionTabs)||void 0===c||null===(u=c.selectArrsAll)||void 0===u||null===(d=u[0])||void 0===d?void 0:d.difficult_settings));if($e(!(null!==(s=me.actionTabs)&&void 0!==s&&null!==(i=s.selectArrsAll)&&void 0!==i&&null!==(l=i[0])&&void 0!==l&&l.send_type)),it(),2===me.actionTabs.type){var m,h=null===(m=me.actionTabs.selectArrsAll)||void 0===m?void 0:m[0];Ue(h.unified_setting)}}}),[me.actionTabs]),(0,v.useEffect)((function(){if(Fe){if(Pe)return;he({type:"classroomList/setActionTabs",payload:{}}),(0,H.GJ)()?(he({type:"classroomList/getClassroomTeacherCommonList",payload:u()(u()({},me.actionTabs.params),{},{type:1})}),he({type:"shixunHomeworks/getWorkList",payload:u()({},ve)})):he({type:"classroomList/getClassroomCommonList",payload:u()({},me.actionTabs.params)})}}),[Fe]);var it=function(){var e=r()(i()().mark((function e(t){var n,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ne(!0),e.next=3,(0,D.c_)(u()(u()({},ve),{},{page:t||we,limit:2e4,homework_id:1===me.actionTabs.type?"":me.actionTabs.selectArrs[0]}));case 3:null==(n=e.sent)||n.course_groups.map((function(e,t){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),n&&(Ze(p()(null==n?void 0:n.course_groups)),He(null==n?void 0:n.course_groups_count),Ne(!1),t||be.setFieldsValue((s={},a()(s,"publish_time",C()(C()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),a()(s,"end_time",C()(C()(new Date((0,Y.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))),s)));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),lt=function(){(0,H.GJ)()?me.actionTabs.detail?(he({type:"shixunHomeworks/setActionTabs",payload:{}}),he({type:"shixunHomeworks/getWorkList",payload:u()({},ve)}),he({type:"shixunHomeworks/getWorkSetting",payload:u()({},ve)})):he({type:"classroomList/getClassroomTeacherCommonList",payload:u()(u()({},me.actionTabs.params),{},{type:5,category:me.actionTabs.params.categoryId})}):he({type:"classroomList/getClassroomCommonList",payload:u()({},me.actionTabs.params)})},at=function(){var e=r()(i()().mark((function e(){var t,n,s,l;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,H.Rm)()||null!==(t=me.AssistantObject.hack)&&void 0!==t&&t.can_publish){e.next=4;break}return b.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),dt(!1),e.abrupt("return");case 4:if(!((s=u()({},be.getFieldsValue())).end_time<=s.publish_time)){e.next=9;break}return b.ZP.info("截止时间不能大于或等于发布时间"),dt(!1),e.abrupt("return");case 9:if(!((null==Ke?void 0:Ke.length)<=0&&!Je&&ke.length>0)){e.next=13;break}return b.ZP.info("发布班级不能为空"),dt(!1),e.abrupt("return");case 13:if(0!==nt.reduce((function(e,t){return e+t}))||qe){e.next=17;break}return b.ZP.info("简单适中困难题数相加不能为0"),dt(!1),e.abrupt("return");case 17:return l={homework_ids:p()(me.actionTabs.selectArrs),group_ids:Ke.length>0?Ke.map((function(e){return e.id})):null===(n=me.detailCommonHomeworksList)||void 0===n?void 0:n.course_groups,end_time:C()(s.end_time).format("YYYY-MM-DD HH:mm"),publish_time:C()(s.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:null==nt?void 0:nt.map((function(e){return e})),send_type:qe?"0":"1",unified_setting:!Ke.length},dt(!0),e.next=21,(0,S.ZP)("/api/courses/".concat(ve.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:u()({},l)});case 21:0===e.sent.status?(dt(!1),(0,Y.L9)(["教学课堂","图文作业","立即发布"]),b.ZP.success("发布成功"),he({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),xe.onCallback&&xe.onCallback(),lt(),"0"===localStorage.getItem("Noviceguide")||he({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,M.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):dt(!1);case 23:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ot=function(){je(1),Ze([]),Re([])},rt=(0,v.useState)(!1),ct=h()(rt,2),ut=ct[0],dt=ct[1];return(0,M.jsxs)(y.Z,{width:600,confirmLoading:ut,centered:!0,title:"发布作业",open:"立即发布"===me.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:at,onCancel:function(){ot(),lt(),he({type:"classroomList/setActionTabs",payload:{}})},children:[(0,M.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,M.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),ke&&(0,M.jsxs)(g.Z,{form:be,children:[(0,M.jsxs)("div",{style:{paddingLeft:0},children:[2===me.actionTabs.type&&(0,M.jsxs)(_.Z,{style:{marginBottom:"10px"},children:[(0,M.jsx)("span",{className:"mr5",children:"试题发送:"}),(0,M.jsxs)(w.ZP.Group,{value:qe,disabled:!(null!==(l=me.actionTabs)&&void 0!==l&&null!==(o=l.selectArrsAll)&&void 0!==o&&null!==(c=o[0])&&void 0!==c&&c.can_publish),onChange:function(e){$e(e.target.value)},children:[(0,M.jsx)(w.ZP,{value:!0,children:"全部固定试题"}),(0,M.jsx)(w.ZP,{className:"ml20",value:!1,children:"随机抽取"})]})]}),!qe&&(0,M.jsxs)(_.Z,{style:{marginBottom:"10px"},children:[(0,M.jsx)("span",{style:{marginRight:65}}),(0,M.jsxs)("span",{children:["简单题数 ",(0,M.jsx)(j.Z,{value:nt[0],onChange:function(e){nt[0]=e,st(p()(nt))},min:0,disabled:!(null!==(d=me.actionTabs)&&void 0!==d&&null!==(m=d.selectArrsAll)&&void 0!==m&&null!==(f=m[0])&&void 0!==f&&f.can_publish),placeholder:"最大".concat(null===(Z=me.actionTabs)||void 0===Z||null===(F=Z.selectArrsAll)||void 0===F||null===(O=F[0])||void 0===O||null===(W=O.difficult_count)||void 0===W?void 0:W[0]),max:null===(P=me.actionTabs)||void 0===P||null===(B=P.selectArrsAll)||void 0===B||null===(Q=B[0])||void 0===Q||null===(K=Q.difficult_count)||void 0===K?void 0:K[0],style:{width:60}})]}),(0,M.jsxs)("span",{style:{margin:"0px 40px"},children:["适中题数 ",(0,M.jsx)(j.Z,{value:nt[1],onChange:function(e){nt[1]=e,st(p()(nt))},min:0,disabled:!(null!==(R=me.actionTabs)&&void 0!==R&&null!==(V=R.selectArrsAll)&&void 0!==V&&null!==(G=V[0])&&void 0!==G&&G.can_publish),max:null===(J=me.actionTabs)||void 0===J||null===(U=J.selectArrsAll)||void 0===U||null===(z=U[0])||void 0===z||null===(X=z.difficult_count)||void 0===X?void 0:X[1],placeholder:"最大".concat(null===(q=me.actionTabs)||void 0===q||null===($=q.selectArrsAll)||void 0===$||null===(ee=$[0])||void 0===ee||null===(te=ee.difficult_count)||void 0===te?void 0:te[1]),style:{width:60}})]}),(0,M.jsxs)("span",{children:["困难题数 ",(0,M.jsx)(j.Z,{value:nt[2],onChange:function(e){nt[2]=e,st(p()(nt))},min:0,disabled:!(null!==(ne=me.actionTabs)&&void 0!==ne&&null!==(se=ne.selectArrsAll)&&void 0!==se&&null!==(ie=se[0])&&void 0!==ie&&ie.can_publish),placeholder:"最大".concat(null===(le=me.actionTabs)||void 0===le||null===(ae=le.selectArrsAll)||void 0===ae||null===(oe=ae[0])||void 0===oe||null===(re=oe.difficult_count)||void 0===re?void 0:re[2]),max:null===(ce=me.actionTabs)||void 0===ce||null===(ue=ce.selectArrsAll)||void 0===ue||null===(de=ue[0])||void 0===de||null===(pe=de.difficult_count)||void 0===pe?void 0:pe[2],style:{width:60}})]})]}),(0,M.jsxs)(_.Z,{className:"mt30",align:"middle",children:[(0,M.jsx)(A.Z,{children:(0,M.jsx)(g.Z.Item,{name:"publish_time",label:"发布时间",children:(0,M.jsx)(T.Z,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,N.Q8)(e,fe)},disabledTime:function(e){return(0,N.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:C()((0,Y.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,M.jsx)(A.Z,{className:"ml20",children:(0,M.jsx)(g.Z.Item,{name:"end_time",label:"截止时间",children:(0,M.jsx)(T.Z,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:C()((0,Y.U6)(),"HH:mm")},disabledDate:function(e){return(0,N.Q8)(e,fe,be.getFieldValue("publish_time"))},disabledTime:function(e){return(0,N.d0)(e,be.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===me.actionTabs.type&&(0,M.jsxs)(_.Z,{style:{marginBottom:"10px"},children:[(0,M.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,M.jsxs)(w.ZP.Group,{value:Je,onChange:function(e){Ue(e.target.value),Re([])},children:[(0,M.jsx)(w.ZP,{value:!0,disabled:!me.actionTabs.manage_all_group,children:"统一发布"}),(0,M.jsx)(w.ZP,{className:"ml20",disabled:ke.length<=0,value:!1,children:"分班发布"})]})]}),ke.length<=0&&2===me.actionTabs.type&&(0,M.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===me.actionTabs.type||!Je)&&ke.length>0&&(0,M.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,M.jsxs)("span",{style:{flex:1},children:[(0,M.jsx)(k.Z,{checked:Ke.length===ke.length,onChange:function(e){Ke.length===ke.length?Re([]):Re(ke.filter((function(e){return!e.is_published})))},children:"全选"})," "]}),(0,M.jsx)("span",{style:{width:16}}),(0,M.jsxs)("span",{style:{flex:1},children:["已选择",Ke.length||0,"个分班"]})]}),(1===me.actionTabs.type||!Je)&&ke.length>0&&(0,M.jsx)(I.Z,{data:ke,selectedRowKeys:Ke,setSelectedRowKeys:Re})]})]})}))},27232:function(e,t,n){n.d(t,{Z:function(){return b}});var s=n(17061),i=n.n(s),l=n(17156),a=n.n(l),o=n(27424),r=n.n(o),c=n(67294),u=n(11486),d=n(84567),p=n(71230),m="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",x="rightdiv___xWu4M",v=n(82982),g=n(85893),b=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),s=e.selectedRowKeys,l=(e.onChange,(0,c.useState)([])),o=r()(l,2),b=o[0],y=o[1],_=(0,c.useState)([]),w=r()(_,2),j=w[0],A=w[1],T=(0,c.useState)([]),k=r()(T,2),Z=k[0],C=k[1],S=(0,c.useState)(1),H=r()(S,2),Y=(H[0],H[1],(0,c.useState)()),L=r()(Y,2);L[0],L[1];return(0,c.useEffect)((function(){y(t),A([]),C([])}),[t]),(0,c.useEffect)((function(){n&&(A(s),C(s))}),[s]),(0,g.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,g.jsxs)("div",{className:m,children:[(0,g.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===b.length&&(0,g.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,g.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,g.jsx)(d.Z.Group,{value:j.map((function(e){return"".concat(e.id)})),onChange:function(e){n(b.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:b.map((function(e,t){return(0,g.jsx)(p.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,g.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,g.jsxs)("div",{className:h,children:[(0,g.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,g.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,g.jsxs)("div",{className:x,children:[(0,g.jsx)(u.Z.Search,{onChange:function(e){C(j.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===Z.length&&(0,g.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),Z.length>0&&(0,g.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,g.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:Z.map((function(e,t){return(0,g.jsxs)(p.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,g.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,g.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(j.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}}}]); |