|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[40936],{57837:function(e,n,t){t.d(n,{Z:function(){return C}});var i=t(7557),a=t.n(i),s=t(41498),l=t.n(s),r=t(79800),o=t.n(r),c=t(59301),u=t(78241),d=t(8591),m=t(43418),p=t(57930),h=t(92832),x=t(61998),f=t(95237),_=t(43604),g=t(61186),v=t.n(g),j=t(65327),b=t(97682),y={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},w=t(69597),Z=t(73244),k=t(37712),C=(0,b.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var n=e.dispatch,t=e.courseEndTime,i=(e.classroomList,e.successCallback),s=void 0===i?function(){}:i,r=e.visible,g=e.homeworkIds,b=e.courseId,C=e.isBatch,A=(e.shixunHomeworks,u.Z.useForm()),S=o()(A,1)[0],N=(0,c.useState)(!1),H=o()(N,2),F=H[0],I=H[1],T=(0,c.useState)(!1),E=o()(T,2),L=E[0],Y=E[1],O=(0,c.useState)(!1),R=o()(O,2),z=R[0],D=R[1],M=(0,c.useState)([]),W=o()(M,2),P=W[0],Q=W[1],B=(0,c.useState)([]),U=o()(B,2),V=U[0],K=U[1],G=(0,c.useState)([]),X=o()(G,2),J=X[0],q=X[1],$=(0,c.useState)([]),ee=o()($,2),ne=ee[0],te=ee[1],ie=(0,c.useState)([]),ae=o()(ie,2),se=ae[0],le=ae[1],re=(0,c.useState)([]),oe=o()(re,2),ce=oe[0],ue=oe[1],de=(0,c.useState)([]),me=o()(de,2),pe=me[0],he=me[1],xe=(0,c.useState)([]),fe=o()(xe,2),_e=fe[0],ge=fe[1],ve=(0,c.useState)([]),je=o()(ve,2),be=je[0],ye=je[1];(0,c.useEffect)((function(){r?we():ke()}),[r]);var we=function(){var e=l()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(!0),e.next=3,(0,w.oR)(g[0],{course_id:b});case 3:n=e.sent,D(n.no_group),C?(he(n.all_course_groups),ge(n.all_course_groups)):(te(n.late_course_groups),le(n.late_course_groups),Q(n.submit_course_groups),K(n.submit_course_groups)),I(!1),S.setFieldsValue({end_time:v()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ze=function(){var e=l()(a()().mark((function e(){var t,i,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=S.getFieldsValue(),i=v()(t.end_time).format("YYYY-MM-DD HH:mm"),!(C?0===be.length:0===J.length&&0===ce.length)||z){e.next=6;break}return d.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return Y(!0),e.next=9,(0,w.Mc)(b,{no_group:z,homework_ids:g,group_ids:C?be:J,end_time:i,late_group_ids:C?be:ce});case 9:l=e.sent,Y(!1),0===l.status&&(ke(),d.ZP.success("操作成功"),s(),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ke=function(){q([]),ue([]),K([]),le([])};return(0,k.jsxs)(m.Z,{centered:!0,title:"立即截止",className:y.modalWrapper,width:C||z?520:760,open:r,confirmLoading:L,destroyOnClose:!0,okText:"截止",cancelText:"取消",onOk:function(){return Ze()},onCancel:function(){ke(),n({type:"classroomList/setActionTabs",payload:{}})},children:[(0,k.jsxs)("div",{className:y.tips,children:[(0,k.jsx)("div",{children:"1、截止后学生不能再提交作业。"}),(0,k.jsx)("div",{children:"2、本操作只对“提交中”、“补交中”的作业有效。"})]}),(0,k.jsx)(u.Z,{form:S,layout:"vertical",children:(0,k.jsx)(u.Z.Item,{name:"end_time",label:"截止时间",children:(0,k.jsx)(p.default,{style:{width:"100%"},disabledDate:function(e){return(0,Z.Q8)(e,t)},disabledTime:function(e){return(0,Z.d0)(e)},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:v()((0,j.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),!z&&(0,k.jsx)(k.Fragment,{children:C?(0,k.jsxs)("div",{children:[(0,k.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ge(pe.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,k.jsx)(x.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:y.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ye(e)}},rowKey:"id",pagination:!1,dataSource:_e,loading:F,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,k.jsxs)(f.Z,{gutter:24,children:[(0,k.jsxs)(_.Z,{span:14,children:[(0,k.jsx)("div",{className:y.homeworkType,children:"作业截止"}),(0,k.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){K(P.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,k.jsx)("div",{className:y.tableWrapper,children:(0,k.jsx)(x.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:y.antdTable,rowSelection:{type:"checkbox",onChange:function(e){q(e)}},rowKey:"id",pagination:!1,dataSource:V,loading:F,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,k.jsxs)(_.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,k.jsx)("div",{className:y.homeworkType,children:"补交截止"}),(0,k.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){le(ne.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,k.jsx)("div",{className:y.tableWrapper,children:(0,k.jsx)(x.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:y.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:F,dataSource:se,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},73010:function(e,n,t){var i=t(82242),a=t.n(i),s=t(91232),l=t.n(s),r=t(7557),o=t.n(r),c=t(41498),u=t.n(c),d=t(79800),m=t.n(d),p=t(59301),h=t(8591),x=t(43418),f=t(3113),_=t(86129),g=t.n(_),v=t(19219),j=t(65327),b=t(52774),y=t(37712),w=function(e,n){var t=e.files,i=void 0===t?[]:t,s=e.name,r=e.buttonProps,c=void 0===r?{}:r,d=e.hide,_=e.onOk,w=void 0===_?function(){}:_,Z=(0,p.useState)(!1),k=m()(Z,2),C=k[0],A=k[1],S=(0,p.useRef)(new(g()));(0,p.useImperativeHandle)(n,(function(){return{exportReport:N,exportAndCreateUserFolder:H}}));var N=function(){var e=u()(o()().mark((function e(n){var t,a,s,l,r,c,d,m,p=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m=function(){return m=u()(o()().mark((function e(){var n,t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:I({},"".concat(v.Z.API_SERVER,"/api/attachments/").concat((0,j.Jn)(null==a||null===(n=a[s])||void 0===n?void 0:n.id),"?t=").concat((0,j.Jn)(null==a||null===(t=a[s])||void 0===t?void 0:t.id,Date.now())),function(){var e=u()(o()().mark((function e(n,t){var i,m,p,x,f;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("application/json"!==(null===(i=n.target.response)||void 0===i?void 0:i.type)){e.next=8;break}return e.next=3,F(n.target.response);case 3:if(!(p=e.sent).message){e.next=8;break}return h.ZP.warning((null==p?void 0:p.message)||"下载出错, 请联系管理员"),A(!1),e.abrupt("return");case 8:x=new Blob([n.target.response],{type:"application/vnd.ms-excel;charset=utf-8"}),l+=x.size,f=null==a||null===(m=a[s])||void 0===m?void 0:m.filename,setTimeout(u()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S.current.file(f,x),c.update({content:(0,y.jsxs)("div",{children:["当前进度: ",(0,y.jsx)("span",{className:"c-blue",children:s+1}),"/",null==a?void 0:a.length,r>0?(0,y.jsxs)("span",{children:["(已拆分",r,"个zip包)"]}):""]})}),s===(null==a?void 0:a.length)-1?E(c,r>0?r+1:0):l>943718400?(r++,l=0,T(r,(function(){s++,d()}))):(s++,d());case 3:case"end":return e.stop()}}),e)}))),2600);case 12:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)},d=function(){return m.apply(this,arguments)},t=p.length>1&&void 0!==p[1]?p[1]:"附件",a=n||i,A(!0),s=0,l=0,r=0,c=x.Z.info({width:460,title:(0,y.jsxs)("div",{children:["正在导出",t,",",(0,y.jsx)("span",{className:"c-red",children:"请勿关闭或操作当前浏览器窗口"})]}),content:(0,y.jsxs)("div",{children:["当前进度: ",(0,y.jsx)("span",{className:"c-blue",children:s+1}),"/",null==a?void 0:a.length]}),maskClosable:!1,okText:"我知道了",onOk:function(){}}),d();case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),H=function(){var e=u()(o()().mark((function e(n){var t,i,a,r,c,d,m,p,h,f,_,j,Z,k,C,N,H,F=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m=function(){return(m=u()(o()().mark((function e(n,t){var i,s,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.ZP)("".concat(v.Z.API_SERVER,"/api/attachments/").concat(n.id),{method:"get"});case 2:i=e.sent,s=new Blob([i],{type:"application/vnd.ms-excel;charset=utf-8"}),l=n.filename,t.file(l,s),a+=1,c.update({content:(0,y.jsxs)("div",{children:["当前进度: ",(0,y.jsx)("span",{className:"c-blue",children:a}),"/",r]})});case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)},d=function(e,n){return m.apply(this,arguments)},t=F.length>1&&void 0!==F[1]?F[1]:"附件",i=F.length>2?F[2]:void 0,A(!0),a=0,r=n.flat().length,c=x.Z.info({width:460,title:(0,y.jsxs)("div",{children:["正在导出",t,",",(0,y.jsx)("span",{className:"c-red",children:"请勿关闭或操作当前浏览器窗口"})]}),content:(0,y.jsxs)("div",{children:["当前进度: ",(0,y.jsx)("span",{className:"c-blue",children:a}),"/",r]}),maskClosable:!1,okText:"我知道了"}),p=l()(n),e.prev=9,p.s();case 11:if((h=p.n()).done){e.next=34;break}f=h.value,_="".concat(f[0].user_name,"-").concat(f[0].student_id),j=S.current.folder(_),Z=l()(f),e.prev=16,Z.s();case 18:if((k=Z.n()).done){e.next=24;break}return C=k.value,e.next=22,d(C,j);case 22:e.next=18;break;case 24:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(16),Z.e(e.t0);case 29:return e.prev=29,Z.f(),e.finish(29);case 32:e.next=11;break;case 34:e.next=39;break;case 36:e.prev=36,e.t1=e.catch(9),p.e(e.t1);case 39:return e.prev=39,p.f(),e.finish(39);case 42:return e.next=44,S.current.generateAsync({type:"blob"});case 44:N=e.sent,(H=document.createElement("a")).href=window.URL.createObjectURL(N),H.download="".concat(i||s,".zip"),document.body.appendChild(H),H.click(),document.body.removeChild(H),window.URL.revokeObjectURL(H.href),c.destroy(),A(!1),w(),S.current=new(g());case 56:case"end":return e.stop()}}),e,null,[[9,36,39,42],[16,26,29,32]])})));return function(n){return e.apply(this,arguments)}}();function F(e){return new Promise((function(n){var t=new FileReader;t.readAsText(e,"utf-8"),t.addEventListener("loadend",(function(){var e=JSON.parse(t.result);n(e)}))}))}var I=function(e,n,t,i){var a=n,s=new window.XMLHttpRequest;return s.withCredentials=!0,s.addEventListener("load",(function(e){t(e,s)}),!1),s.addEventListener("error",(function(e){i&&i(e)}),!1),s.responseType="blob",s.open("GET",a),s.send(null),s},T=function(e,n){S.current.generateAsync({type:"blob"}).then((function(t){var i=document.createElement("a");i.href=window.URL.createObjectURL(t),i.download=s+"-".concat(e)+".zip",document.body.appendChild(i);var a=document.createEvent("MouseEvents");a.initEvent("click",!1,!1),i.dispatchEvent(a),document.body.removeChild(i),S.current=new(g()),n()}))},E=function(e,n){S.current.generateAsync({type:"blob"}).then((function(t){var i=document.createElement("a");i.href=window.URL.createObjectURL(t),i.download=n>0?s+"-".concat(n)+".zip":s+".zip",document.body.appendChild(i);var a=document.createEvent("MouseEvents");a.initEvent("click",!1,!1),i.dispatchEvent(a),document.body.removeChild(i),e.destroy(),A(!1),w(),S.current=new(g())}))};return d?(0,y.jsx)(y.Fragment,{}):(0,y.jsx)(f.ZP,a()(a()({},c),{},{onClick:function(){return N()},loading:C,children:"下载"}))};n.Z=(0,p.forwardRef)(w)},86508:function(e,n,t){var i=t(82242),a=t.n(i),s=t(37205),l=t.n(s),r=t(39647),o=t.n(r),c=t(79800),u=t.n(c),d=t(59301),m=t(78241),p=t(95237),h=t(43604),x=t(57809),f=t(94001),_=t(6848),g=t(57930),v=t(92832),j=t(97682),b=t(73244),y=t(2039),w=t(37712),Z=["key","name"];n.Z=(0,j.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.disabled,t=e.shixunHomeworks,i=e.selectOptions,s=e.form,r=t.workSetting,c=(0,d.useState)([]),j=u()(c,2),k=j[0],C=j[1],A=(0,d.useMemo)((function(){return null==i?void 0:i.filter((function(e){return!k.includes(e.value)}))}),[k,i]);return(0,d.useEffect)((function(){var e,n=(null==r||null===(e=r.anonymous_appeal_settings)||void 0===e?void 0:e.filter((function(e){return e.appeal_time})))||[];C(n.map((function(e){return e.group_name})))}),[r]),(0,w.jsx)(m.Z.List,{name:"anonymous_appeal_settings",children:function(e,t){var i=t.add,c=t.remove;return(0,w.jsx)(w.Fragment,{children:e.map((function(t){var u,d=t.key,j=t.name,k=o()(t,Z),S=s.getFieldValue(["anonymous_appeal_settings",j]).deleteflag;return(0,w.jsx)("div",{children:(0,w.jsxs)(p.Z,{align:"middle",style:{background:"#F6F7F9",padding:"5px 30px"},children:[(0,w.jsxs)(h.Z,{style:{height:"40px",lineHeight:"40px",width:"80px",textAlign:"left",marginLeft:"54px",color:"#666"},children:["申诉规则",d+1]}),(0,w.jsx)(h.Z,{children:(0,w.jsx)(m.Z.Item,a()(a()({},k),{},{name:[t.name,"group_name"],children:(0,w.jsx)(x.default,{mode:"multiple",disabled:n||!S,placeholder:"请选择分班名称",style:{width:"245px"},className:y.Z.multiple_select,options:A||[],onSelect:function(e){C((function(n){return[].concat(l()(n),[e])}))},onDeselect:function(e){C((function(n){return n.filter((function(n){return n!==e}))}))}})}))}),(0,w.jsx)(h.Z,{style:{marginLeft:"40px",color:"#666",marginRight:"20px"},children:"违规匿评扣分"}),(0,w.jsx)(h.Z,{children:(0,w.jsx)(m.Z.Item,a()(a()({},k),{},{label:"",name:[t.name,"appeal_penalty"],children:(0,w.jsx)(f.Z,{min:0,disabled:n,size:"large",addonAfter:"分",style:{width:"120px"}})}))}),(0,w.jsx)(_.Z,{title:"学生违规匿评其他同学的作品时,其成绩将被扣减的分值",children:(0,w.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 ".concat(y.Z.title_icon)})}),(0,w.jsx)(h.Z,{style:{marginLeft:"40px",color:"#666",marginRight:"20px"},children:"结束时间"}),(0,w.jsx)(h.Z,{children:(0,w.jsx)(m.Z.Item,a()(a()({},k),{},{label:"",name:[t.name,"appeal_time"],children:(0,w.jsx)(g.default,{allowClear:!1,style:{width:170},placeholder:"请选择结束时间",disabled:n,size:"large",disabledDate:function(e){return(0,b.Q8)(e,null==r?void 0:r.course_end_date)},disabledTime:function(e){return(0,b.d0)(e)},showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm"})}))}),(0,w.jsx)(m.Z.Item,a()(a()({},k),{},{name:[j,"deleteflag"],children:(0,w.jsx)(v.Z,{type:"hidden"})})),!n&&e.length<(null==r||null===(u=r.anonymous_appeal_settings)||void 0===u?void 0:u.length)&&(0,w.jsx)("i",{className:"iconfont icon-zengjia1 ml20",style:{cursor:"pointer",color:"#00B187"},onClick:function(){i({deleteflag:!0})}}),0!==d&&!n&&S&&(0,w.jsx)("i",{className:"iconfont icon-shanjian1 ml20",style:{cursor:"pointer",color:"#E30000"},onClick:function(){var e=s.getFieldValue(["anonymous_appeal_settings",j,"group_name"])||[];C((function(n){return n.filter((function(n){return!e.includes(n)}))})),c(j)}})]})},d)}))})}})}))},42108:function(e,n,t){var i=t(82242),a=t.n(i),s=t(37205),l=t.n(s),r=t(39647),o=t.n(r),c=t(79800),u=t.n(c),d=t(59301),m=t(57930),p=t(78241),h=t(95237),x=t(43604),f=t(57809),_=t(8591),g=t(92832),v=t(94001),j=t(6848),b=t(24905),y=t(61186),w=t.n(y),Z=t(97682),k=t(73244),C=t(32215),A=t(2039),S=t(37712),N=["key","name"],H=m.default.RangePicker;n.Z=(0,Z.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var n=e.disabled,t=e.shixunHomeworks,i=e.selectOptions,s=e.form,r=e.data,c=e.classroomList,m=t.workSetting,y=(0,d.useState)([]),Z=u()(y,2),F=Z[0],I=Z[1],T=(0,d.useMemo)((function(){return null==i?void 0:i.filter((function(e){return!F.includes(e.value)}))}),[F,i]);(0,d.useEffect)((function(){var e,n=(null==m||null===(e=m.anonymous_comment_settings)||void 0===e?void 0:e.filter((function(e){return e.evaluation_end})))||[];I(n.map((function(e){return e.group_name})))}),[m]);return(0,S.jsx)(p.Z.List,{name:"anonymous_comment_settings",children:function(e,t){var i=t.add,u=t.remove;return(0,S.jsx)(S.Fragment,{children:e.map((function(t){var d,y,Z,F,E,L=t.key,Y=t.name,O=o()(t,N),R=s.getFieldValue(["anonymous_comment_settings",Y]),z=R.deleteflag,D=w()(null===(d=R.evaluation_start)||void 0===d?void 0:d[0])<=w()(),M=!z&&D?[!0,(Z=null==R?void 0:R.group_id,E=null==m||null===(F=m.anonymous_appeal_settings)||void 0===F?void 0:F.find((function(e){return e.group_id===Z})),r.anonymous_appeal&&E&&null!==(null==E?void 0:E.appeal_time))]:[!1,!1];return(0,S.jsxs)("div",{style:{background:"#F6F7F9",padding:"5px 30px"},children:[(0,S.jsxs)(h.Z,{align:"top",style:{marginLeft:"53px"},children:[(0,S.jsxs)(x.Z,{style:{height:"40px",lineHeight:"40px",width:"80px",textAlign:"left"},children:["匿评规则",L+1]}),(0,S.jsx)(x.Z,{flex:1,children:(0,S.jsxs)(h.Z,{align:"middle",style:{marginBottom:10},children:[(0,S.jsx)(x.Z,{span:8,children:(0,S.jsx)(p.Z.Item,a()(a()({},O),{},{name:[Y,"group_name"],children:(0,S.jsx)(f.default,{mode:"multiple",disabled:n||!z,className:A.Z.multiple_select,placeholder:"请选择分班名称",options:T||[],onSelect:function(e){I((function(n){return[].concat(l()(n),[e])}))},onDeselect:function(e){I((function(n){return n.filter((function(n){return n!==e}))}))}})}))}),(0,S.jsx)(x.Z,{className:"ml20",children:(0,S.jsx)(p.Z.Item,a()(a()({},O),{},{name:[Y,"evaluation_start"],children:(0,S.jsx)(H,{ranges:{"此刻":function(){var e,n=null==R||null===(e=R.evaluation_start)||void 0===e?void 0:e[0];return[n?w()(n):w()(),w()()]}},size:"large",style:{width:"500px"},disabled:n||M,allowClear:!1,disabledDate:function(e){return(0,k.Q8)(e,null==m?void 0:m.course_end_date)},disabledTime:function(e){return(0,k.d0)(e)},showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",onChange:function(){var e;!(0,C.Rm)()||null!==(e=c.AssistantObject.group)&&void 0!==e&&e.can_anonymous_comment||_.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})}))}),(0,S.jsx)(p.Z.Item,a()(a()({},O),{},{name:[Y,"deleteflag"],children:(0,S.jsx)(g.Z,{type:"hidden"})})),!n&&e.length<(null==m||null===(y=m.anonymous_comment_settings)||void 0===y?void 0:y.length)&&(0,S.jsx)("i",{className:"iconfont icon-zengjia1 ml20",style:{cursor:"pointer",color:"#00B187"},onClick:function(){i({deleteflag:!0})}}),0!==L&&!n&&z&&(0,S.jsx)("i",{className:"iconfont icon-shanjian1 ml20",style:{cursor:"pointer",color:"#E30000"},onClick:function(){var e=s.getFieldValue(["anonymous_comment_settings",Y,"group_name"])||[];I((function(n){return n.filter((function(n){return!e.includes(n)}))})),u(Y)}})]})})]}),(0,S.jsxs)(h.Z,{align:"middle",style:{marginLeft:"53px"},children:[(0,S.jsx)(x.Z,{style:{width:"75px"},children:"匿评数量"}),(0,S.jsx)(x.Z,{children:(0,S.jsx)(p.Z.Item,a()(a()({},O),{},{label:"",colon:!1,name:[Y,"evaluation_num"],children:(0,S.jsx)(v.Z,{min:0,size:"large",style:{marginLeft:"5px"},disabled:n||!z&&D})}))}),(0,S.jsx)(j.Z,{title:"每个学生将被分配的匿评作品数量。如全班实际提交作业数量小于本数值,则以实际提交作业数量为准",children:(0,S.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 ".concat(A.Z.title_icon)})}),(0,S.jsx)(x.Z,{style:{width:"75px",marginLeft:"40px"},children:"缺评扣分"}),(0,S.jsx)(x.Z,{children:(0,S.jsx)(p.Z.Item,a()(a()({},O),{},{label:"",colon:!1,name:[Y,"absence_penalty"],children:(0,S.jsx)(v.Z,{min:0,size:"large",addonAfter:"分",style:{width:"120px"},disabled:n,onChange:function(e){var n;!(0,C.Rm)()||null!==(n=c.AssistantObject.group)&&void 0!==n&&n.can_anonymous_comment||_.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})}))}),(0,S.jsx)(x.Z,{style:{marginLeft:"40px"},children:(0,S.jsx)(p.Z.Item,a()(a()({},O),{},{name:[Y,"student_comment"],valuePropName:"checked",children:(0,S.jsx)(b.Z,{disabled:n,onChange:function(){var e;!(0,C.Rm)()||null!==(e=c.AssistantObject.group)&&void 0!==e&&e.can_anonymous_comment||_.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})}))}),(0,S.jsx)(x.Z,{className:"ml10",children:"匿评计入已评阅"})]})]},L)}))})}})}))},7694:function(e,n,t){var i=t(97682),a=t(95237),s=t(43604),l=t(57930),r=t(94001),o=t(6848),c=t(61186),u=t.n(c),d=t(73244),m=t(2039),p=t(37712);n.Z=(0,i.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.data,t=e.disabled,i=e.setData,c=e.shixunHomeworks,h=c.workSetting;c.workList;return(0,p.jsx)("div",{children:(0,p.jsxs)(a.Z,{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center"},children:[(0,p.jsx)(s.Z,{style:{marginLeft:"54px",marginRight:"20px",color:"#666666"},children:"结束时间"}),(0,p.jsx)(s.Z,{children:(0,p.jsx)(l.default,{allowClear:!1,style:{width:250},placeholder:"请选择结束时间",showTime:{format:"HH:mm"},size:"large",format:"YYYY-MM-DD HH:mm",disabled:t,disabledDate:function(e){return(0,d.Q8)(e,null==h?void 0:h.course_end_date)},disabledTime:function(e){return(0,d.d0)(e)},value:n.appeal_time?u()(n.appeal_time):"",onChange:function(e,t){n.appeal_time=t,i(Object.assign({},n))}})}),(0,p.jsx)(s.Z,{style:{margin:"0 20px 0 60px",color:"#666666"},children:"违规匿评扣分"}),(0,p.jsx)(s.Z,{children:(0,p.jsx)(r.Z,{size:"large",disabled:t,value:n.appeal_penalty,min:0,addonAfter:"分",style:{width:"120px"},onChange:function(e){n.appeal_penalty=e,i(Object.assign({},n))}})}),(0,p.jsx)(o.Z,{title:"学生违规匿评其他同学的作品时,其成绩将被扣减的分值",children:(0,p.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 ".concat(m.Z.title_icon)})})]})})}))},1583:function(e,n,t){var i=t(57930),a=t(94001),s=t(6848),l=t(24905),r=t(61186),o=t.n(r),c=t(97682),u=t(73244),d=t(2039),m=t(37712);n.Z=(0,c.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.data,t=e.setData,r=e.disabled,c=e.shixunHomeworks.workSetting,p=o()(null==c?void 0:c.evaluation_start)<=o()(),h=n.anonymous_appeal;return(0,m.jsxs)("div",{children:[(0,m.jsxs)("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center",marginTop:"1px"},children:[(0,m.jsx)("div",{style:{color:"#666666",marginLeft:"53px",marginRight:"20px"},children:"开始时间"}),(0,m.jsx)(i.default,{allowClear:!1,style:{width:200},placeholder:"请选择开始时间",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",size:"large",disabledDate:function(e){return(0,u.Q8)(e,null==c?void 0:c.course_end_date)},disabledTime:function(e){return(0,u.d0)(e)},disabled:r||p||h,value:n.evaluation_start?o()(n.evaluation_start):"",onChange:function(e,i){n.evaluation_start=i,t(Object.assign({},n))}}),(0,m.jsx)("div",{style:{color:"#666666",marginLeft:"60px",marginRight:"20px"},children:"结束时间"}),(0,m.jsx)(i.default,{allowClear:!1,style:{width:200},placeholder:"请选择结束时间",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",size:"large",disabledDate:function(e){return(0,u.Q8)(e,null==c?void 0:c.course_end_date,n.evaluation_start)},disabledTime:function(e){return(0,u.d0)(e,o()(n.evaluation_start))},disabled:r||h,value:n.evaluation_end?o()(n.evaluation_end):"",onChange:function(e,i){n.evaluation_end=i,t(Object.assign({},n))}})]}),(0,m.jsxs)("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center"},children:[(0,m.jsx)("div",{style:{color:"#666666",marginLeft:"53px",marginRight:"20px"},children:"匿评数量"}),(0,m.jsx)(a.Z,{disabled:r||p||h,value:n.evaluation_num,min:0,style:{width:"150px"},size:"large",onChange:function(e){n.evaluation_num=e,t(Object.assign({},n))}}),(0,m.jsx)(s.Z,{title:"每个学生将被分配的匿评作品数量。如全班实际提交作业数量小于本数值,则以实际提交作业数量为准",children:(0,m.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 ".concat(d.Z.title_icon)})}),(0,m.jsx)("div",{style:{color:"#666666",marginLeft:"84px",marginRight:"20px"},children:"缺评扣分"}),(0,m.jsx)(a.Z,{min:0,disabled:r,style:{width:"150px"},size:"large",addonAfter:"分",value:n.absence_penalty,onChange:function(e){n.absence_penalty=e,t(Object.assign({},n))}})]}),n.anonymous_comment&&(0,m.jsx)("div",{style:{background:"#F6F7F9",padding:"13px 30px 13px 83px",display:"flex",alignItems:"center"},children:(0,m.jsx)(l.Z,{checked:n.student_comment,disabled:r,onChange:function(){n.student_comment=!n.student_comment,t(Object.assign({},n))},children:(0,m.jsx)("span",{style:{fontSize:"14px",color:"#000"},children:"匿评计入已评阅"})})})]})}))},23448:function(e,n,t){t.d(n,{Z:function(){return v}});var i=t(7557),a=t.n(i),s=t(41498),l=t.n(s),r=t(79800),o=t.n(r),c=t(59301),u=t(92832),d=t(24905),m=t(95237),p="leftdiv___aBzsX",h="listClass___bxIEW",x="spantitle___v_Vc4",f="rightdiv___xWu4M",_=t(94398),g=t(37712),v=function(e){var n=e.data,t=(e.value,e.handleChangePage,e.setSelectedRowKeys),i=e.selectedRowKeys,s=(e.onChange,(0,c.useState)([])),r=o()(s,2),v=r[0],j=r[1],b=(0,c.useState)([]),y=o()(b,2),w=y[0],Z=y[1],k=(0,c.useState)([]),C=o()(k,2),A=C[0],S=C[1],N=(0,c.useState)(1),H=o()(N,2),F=(H[0],H[1],(0,c.useState)()),I=o()(F,2);I[0],I[1];return(0,c.useEffect)((function(){j(n),Z([]),S([])}),[n]),(0,c.useEffect)((function(){t&&(Z(i),S(i))}),[i]),(0,g.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,g.jsxs)("div",{className:p,children:[(0,g.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=l()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j(n.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(t.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===v.length&&(0,g.jsx)(_.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:w.map((function(e){return"".concat(e.id)})),onChange:function(e){t(v.filter((function(n){return e.includes("".concat(n.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:v.map((function(e,n){return(0,g.jsx)(m.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:x,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:f,children:[(0,g.jsx)(u.Z.Search,{onChange:function(e){S(w.filter((function(n){return n.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===A.length&&(0,g.jsx)(_.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),A.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:A.map((function(e,n){return(0,g.jsxs)(m.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(){t(w.filter((function(n){return"".concat(n.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},51339:function(e,n,t){t.d(n,{Ei:function(){return b},rU:function(){return y},ZP:function(){return w}});var i=t(82242),a=t.n(i),s=t(79800),l=t.n(s),r=t(59301),o="wrap___W3YuU",c="title___OzKge",u="exhibition___ugphm",d="title_icon___QGbm6",m=t(78241),p=t(24905),h=t(94001),x=t(6848),f=t(95237),_=t(43604),g=t(92310),v=t.n(g),j=t(37712),b=function(e){var n=e.value,t=e.className,i=e.style,a=(0,r.useState)("0"),s=l()(a,2),o=s[0],c=s[1];(0,r.useEffect)((function(){if(n){var e=n.submit_limit,t=n.must_file;if(e&&t)return void c("1");if(e&&!t)return void c("2");if(!e&&t)return void c("3")}}),[n]);var d={1:(0,j.jsxs)("span",{children:["作业内容至少填写",(0,j.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==n?void 0:n.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,j.jsxs)("span",{children:["作业内容至少填写",(0,j.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==n?void 0:n.submit_limit_num}),"字符"]}),3:(0,j.jsx)("span",{children:"必须上传相关附件。"})};return"0"===o?(0,j.jsx)(j.Fragment,{}):(0,j.jsxs)("section",{className:v()(u,t),style:i,children:[(0,j.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[o]]})},y=function(e){var n=e.className,t=e.style,i=e.form,a=m.Z.useWatch("submit_limit",i),s=m.Z.useWatch("can_submit",i);return(0,j.jsxs)("section",{className:v()(o,n),style:t,children:[(0,j.jsx)("div",{className:"".concat(c," mt30"),children:(0,j.jsx)("span",{children:"提交设置"})}),(0,j.jsxs)("div",{style:{display:"flex",background:"#F6F7F9",padding:"5px 30px"},children:[(0,j.jsx)(m.Z.Item,{name:"can_submit",valuePropName:"checked",style:{lineHeight:"40px"},children:(0,j.jsx)(p.Z,{children:"限制学生提交作品"})}),(0,j.jsx)(m.Z.Item,{className:"ml10 mr10",name:"submit_num",rules:s&&[{required:!0,message:"请填写作品次数"}],children:(0,j.jsx)(h.Z,{precision:0,min:1,disabled:!s,size:"large",addonAfter:"次",style:{width:143}})}),(0,j.jsx)(x.Z,{overlayInnerStyle:{width:520},title:(0,j.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,j.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,j.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,j.jsx)("i",{className:"iconfont icon-tishixiaowenhao ".concat(d),style:{lineHeight:"40px"}})}),(0,j.jsx)(m.Z.Item,{name:"submit_limit",valuePropName:"checked",style:{marginLeft:60,lineHeight:"40px"},children:(0,j.jsx)(p.Z,{children:"学生填写内容至少"})}),(0,j.jsx)(m.Z.Item,{className:"mr10",name:"submit_limit_num",rules:a&&[{required:!0,message:"字数不能为空"}],children:(0,j.jsx)(h.Z,{precision:0,min:1,disabled:!a,size:"large",addonAfter:"字",style:{width:143}})}),(0,j.jsx)(m.Z.Item,{name:"must_file",valuePropName:"checked",style:{marginLeft:60,lineHeight:"40px"},children:(0,j.jsx)(p.Z,{children:"学生提交作业必须上传附件"})})]})]})},w=function(e){var n=e.value,t=e.onChange,i=e.className,s=e.style,u=e.disabled,m=void 0!==u&&u,g=(0,r.useState)({}),b=l()(g,2),y=b[0],w=b[1];(0,r.useEffect)((function(){if(console.log(n,"value"),n){var e={submit_limit:null==n?void 0:n.submit_limit,submit_limit_num:null==n?void 0:n.submit_limit_num,must_file:null==n?void 0:n.must_file,can_submit:null==n?void 0:n.can_submit,submit_num:null==n?void 0:n.submit_num};w(a()({},e))}}),[n]);var Z=function(e){var n=a()(a()({},y),e);t(n)};return(0,j.jsxs)("section",{className:v()(o,i),style:s,children:[(0,j.jsx)("div",{className:"".concat(c," mt30"),children:(0,j.jsx)("span",{children:"提交设置"})}),(0,j.jsxs)(f.Z,{style:{background:"#F6F7F9",padding:"5px 30px"},children:[(0,j.jsxs)(_.Z,{style:{lineHeight:"40px",marginTop:"10px"},children:[(0,j.jsx)(p.Z,{disabled:m,checked:null==y?void 0:y.can_submit,onChange:function(e){return Z({can_submit:e.target.checked})}}),(0,j.jsx)("span",{className:"ml10",style:{marginRight:18},children:"限制学生提交作业"}),(0,j.jsx)(h.Z,{size:"large",addonAfter:"次",style:{width:143},precision:0,min:1,disabled:m||!(null!=y&&y.can_submit),value:null==y?void 0:y.submit_num,onChange:function(e){return Z({submit_num:e})}}),(0,j.jsx)(x.Z,{overlayInnerStyle:{width:520},title:(0,j.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,j.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,j.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,j.jsx)("i",{className:"iconfont icon-tishixiaowenhao ml10 ".concat(d)})})]}),(0,j.jsxs)(_.Z,{style:{lineHeight:"40px",marginTop:"10px"},children:[(0,j.jsx)(p.Z,{disabled:m,checked:null==y?void 0:y.submit_limit,onChange:function(e){return Z({submit_limit:e.target.checked})}}),(0,j.jsx)("span",{className:"ml10",style:{marginRight:18},children:"学生填写内容至少"}),(0,j.jsx)(h.Z,{size:"large",addonAfter:"字",style:{width:143},precision:0,min:1,disabled:m||!(null!=y&&y.submit_limit),value:null==y?void 0:y.submit_limit_num,onChange:function(e){return Z({submit_limit_num:e})}})]}),(0,j.jsxs)(_.Z,{style:{lineHeight:"40px",marginTop:"10px"},children:[(0,j.jsx)(p.Z,{disabled:m,checked:null==y?void 0:y.must_file,onChange:function(e){return Z({must_file:e.target.checked})}}),(0,j.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})]})}},86522:function(e,n,t){t.d(n,{M:function(){return r},Y:function(){return l}});var i=t(61186),a=t.n(i),s=t(89392),l=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD",t=(0,s.cloneDeepWith)(e,(function(e){if(e instanceof a())return e.format(n)}));return t},r=function e(n,t,i){var s=function(e){return"[object Object]"===Reflect.toString.call(e)};if(!s(n)&&!Array.isArray(n))return n;for(var l=0,r=Object.keys(n);l<r.length;l++){var o=r[l];Array.isArray(n[o])?n[o]=n[o].map((function(n){return e(n,t,i)})):s(n[o])?n[o]=e(n[o],t,i):t.includes(o)&&"string"==typeof n[o]&&(n[o]=i?a()(n[o],i):a()(n[o]))}return n}},27883:function(e,n){n.Z={poor_rating:"poor_rating___h5Pkz",title:"title___Kt7fx",content:"content___uWG5Y",row_sty:"row_sty___VNKxj",bottom_line:"bottom_line___o6CYn",row_sty1:"row_sty1___gzdZR",lable_name:"lable_name___XcFiQ",h_lh_40:"h_lh_40___rY3ds",tooltip_icon:"tooltip_icon___Yv0p3",lable_name1:"lable_name1___g8Eds",title_icon:"title_icon___tSQED"}},2039:function(e,n){n.Z={flex_box_center:"flex_box_center___iIik3",flex_space_between:"flex_space_between___Q7wj5",flex_box_vertical_center:"flex_box_vertical_center___LFAxO",flex_box_center_end:"flex_box_center_end___SFNWP",flex_box_column:"flex_box_column___aq5d_",form:"form___z6oqV",efficiency:"efficiency___VZgt9",configWorkContainer:"configWorkContainer___gQ6ac",tips:"tips___PkPgo",total:"total___c2k9V",tip1:"tip1___BUn8c",tip2:"tip2___Q8WSw",configworksContainer:"configworksContainer___P0ZE6",content:"content___Mow99",pubColSty:"pubColSty___YePTJ",selectSty:"selectSty___AGg4a",borderSty:"borderSty___qYL9U",delSty:"delSty___kbXe4",delBorder:"delBorder___wV7XA",copHover:"copHover___R3G_x",title_icon:"title_icon___eT6qQ",title:"title___uXYiB",multiple_select:"multiple_select___aCIWH"}}}]); |