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/8649.003f0520.async.js

2 lines
28 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8649],{99755:function(k,Z){Z.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"}},42771:function(k,Z){Z.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"}},51774:function(k,Z,t){var P=t(59301),g=t(43418),v=t(8591),O=t(3113),A=t(86129),h=t.n(A),f=t(71848),M=t(13330),w=t(68335),u=t(59301),e=Object.defineProperty,l=Object.defineProperties,a=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,y=(n,s,m)=>s in n?e(n,s,{enumerable:!0,configurable:!0,writable:!0,value:m}):n[s]=m,r=(n,s)=>{for(var m in s||(s={}))N.call(s,m)&&y(n,m,s[m]);if(U)for(var m of U(s))I.call(s,m)&&y(n,m,s[m]);return n},p=(n,s)=>l(n,a(s)),W=(n,s,m)=>new Promise((_,i)=>{var F=T=>{try{c(m.next(T))}catch(o){i(o)}},L=T=>{try{c(m.throw(T))}catch(o){i(o)}},c=T=>T.done?_(T.value):Promise.resolve(T.value).then(F,L);c((m=m.apply(n,s)).next())});const $=({files:n=[],name:s,buttonProps:m={},hide:_,onOk:i=()=>{}},F)=>{const[L,c]=(0,P.useState)(!1);let T=(0,P.useRef)(new(h()));(0,P.useImperativeHandle)(F,()=>({exportReport:o,exportAndCreateUserFolder:E}));const o=(R,Y="\u9644\u4EF6")=>W(void 0,null,function*(){const C=R||n;c(!0);let d=0,b=0,B=0,z=g.default.info({width:460,title:u.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA",Y,",",u.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:u.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",u.createElement("span",{className:"c-blue"},d+1),"/",C==null?void 0:C.length),maskClosable:!1,okText:"\u6211\u77E5\u9053\u4E86",onOk:()=>{}});function x(){return W(this,null,function*(){var K,j;H({},`${f.Z.API_SERVER}/api/attachments/${(0,M.Jn)((K=C==null?void 0:C[d])==null?void 0:K.id)}?t=${(0,M.Jn)((j=C==null?void 0:C[d])==null?void 0:j.id,Date.now())}`,(J,ne)=>W(this,null,function*(){var X,V;if(((X=J.target.response)==null?void 0:X.type)==="application/json"){let ue=yield D(J.target.response);if(ue.message){v.ZP.warning((ue==null?void 0:ue.message)||"\u4E0B\u8F7D\u51FA\u9519, \u8BF7\u8054\u7CFB\u7BA1\u7406\u5458"),c(!1);return}}let ee=new Blob([J.target.response],{type:"application/vnd.ms-excel;charset=utf-8"});b=b+ee.size;let te=(V=C==null?void 0:C[d])==null?void 0:V.filename;setTimeout(()=>W(this,null,function*(){T.current.file(te,ee),z.update({content:u.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",u.createElement("span",{className:"c-blue"},d+1),"/",C==null?void 0:C.length,B>0?u.createElement("span",null,"(\u5DF2\u62C6\u5206",B,"\u4E2Azip\u5305)"):"")}),d===(C==null?void 0:C.length)-1?G(z,B>0?B+1:0):b>900*1024*1024?(B++,b=0,q(B,()=>{d++,x()})):(d++,x())}),2600)}))})}x()}),E=(R,Y="\u9644\u4EF6",C)=>W(void 0,null,function*(){c(!0);let d=0;const b=R.flat().length,B=g.default.info({width:460,title:u.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA",Y,",",u.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:u.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",u.createElement("span",{className:"c-blue"},d),"/",b),maskClosable:!1,okText:"\u6211\u77E5\u9053\u4E86"});function z(j,J){return W(this,null,function*(){const ne=yield(0,w.ZP)(`${f.Z.API_SERVER}/api/attachments/${j.id}`,{method:"get"});let X=new Blob([ne],{type:"application/vnd.ms-excel;charset=utf-8"}),V=j.filename;J.file(V,X),d+=1,B.update({content:u.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",u.createElement("span",{className:"c-blue"},d),"/",b)})})}for(const j of R){const J=`${j[0].user_name}-${j[0].student_id}`,ne=T.current.folder(J);for(const X of j)yield z(X,ne)}const x=yield T.current.generateAsync({type:"blob"}),K=document.createElement("a");K.href=window.URL.createObjectURL(x),K.download=`${C||s}.zip`,document.body.appendChild(K),K.click(),document.body.removeChild(K),window.URL.revokeObjectURL(K.href),B.destroy(),c(!1),i(),T.current=new(h())});function D(R){return new Promise(Y=>{let C=new FileReader;C.readAsText(R,"utf-8"),C.addEventListener("loadend",()=>{const d=JSON.parse(C.result);Y(d)})})}const H=(R,Y,C,d)=>{const b=Y,B=new window.XMLHttpRequest;return B.withCredentials=!0,B.addEventListener("load",function(z){C(z,B)},!1),B.addEventListener("error",function(z){d&&d(z)},!1),B.responseType="blob",B.open("GET",b),B.send(null),B},q=(R,Y)=>{T.current.generateAsync({type:"blob"}).then(function(C){const d=document.createElement("a");d.href=window.URL.createObjectURL(C),d.download=s+`-${R}.zip`,document.body.appendChild(d);const b=document.createEvent("MouseEvents");b.initEvent("click",!1,!1),d.dispatchEvent(b),document.body.removeChild(d),T.current=new(h()),Y()})},G=(R,Y)=>{T.current.generateAsync({type:"blob"}).then(function(C){const d=document.createElement("a");d.href=window.URL.createObjectURL(C),Y>0?d.download=s+`-${Y}.zip`:d.download=s+".zip",document.body.appendChild(d);const b=document.createEvent("MouseEvents");b.initEvent("click",!1,!1),d.dispatchEvent(b),document.body.removeChild(d),R.destroy(),c(!1),i(),T.current=new(h())})};return _?u.createElement(u.Fragment,null):u.createElement(O.ZP,p(r({},m),{onClick:()=>o(),loading:L}),"\u4E0B\u8F7D")};Z.Z=(0,P.forwardRef)($)},80597:function(k,Z,t){var P=t(59301),g=t(78700),v=t(95237),O=t(43604),A=t(57809),h=t(36537),f=t(95435),M=t(51081),w=t(92832),u=t(41167),e=t(82532),l=t(42771),a=t(59301),U=Object.defineProperty,N=Object.defineProperties,I=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,W=(_,i,F)=>i in _?U(_,i,{enumerable:!0,configurable:!0,writable:!0,value:F}):_[i]=F,$=(_,i)=>{for(var F in i||(i={}))r.call(i,F)&&W(_,F,i[F]);if(y)for(var F of y(i))p.call(i,F)&&W(_,F,i[F]);return _},n=(_,i)=>N(_,I(i)),s=(_,i)=>{var F={};for(var L in _)r.call(_,L)&&i.indexOf(L)<0&&(F[L]=_[L]);if(_!=null&&y)for(var L of y(_))i.indexOf(L)<0&&p.call(_,L)&&(F[L]=_[L]);return F};const m=({disabled:_,shixunHomeworks:i,selectOptions:F,form:L})=>{const{workSetting:c}=i,[T,o]=(0,P.useState)([]),E=(0,P.useMemo)(()=>F==null?void 0:F.filter(D=>!T.includes(D.value)),[T,F]);return(0,P.useEffect)(()=>{var D;const H=((D=c==null?void 0:c.anonymous_appeal_settings)==null?void 0:D.filter(q=>q.appeal_time))||[];o(H.map(q=>q.group_name))},[c]),a.createElement(g.default.List,{name:"anonymous_appeal_settings"},(D,{add:H,remove:q})=>a.createElement(a.Fragment,null,D.map(G=>{var R;const Y=G,{key:C,name:d}=Y,b=s(Y,["key","name"]),z=L.getFieldValue(["anonymous_appeal_settings",d]).deleteflag;return a.createElement("div",{key:C},a.createElement(v.Z,{align:"middle",style:{background:"#F6F7F9",padding:"5px 30px"}},a.createElement(O.Z,{style:{height:"40px",lineHeight:"40px",width:"80px",textAlign:"left",marginLeft:"54px",color:"#666"}},"\u7533\u8BC9\u89C4\u5219",C+1),a.createElement(O.Z,null,a.createElement(g.default.Item,n($({},b),{name:[G.name,"group_name"]}),a.createElement(A.default,{mode:"multiple",disabled:_||!z,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",style:{width:"245px"},className:l.Z.multiple_select,options:E||[],onSelect:x=>{o(K=>[...K,x])},onDeselect:x=>{o(K=>K.filter(j=>j!==x))}}))),a.createElement(O.Z,{style:{marginLeft:"40px",color:"#666",marginRight:"20px"}},"\u8FDD\u89C4\u533F\u8BC4\u6263\u5206"),a.createElement(O.Z,null,a.createElement(g.default.Item,n($({},b),{label:"",name:[G.name,"appeal_penalty"]}),a.createElement(h.Z,{min:0,disabled:_,size:"large",addonAfter:"\u5206",style:{width:"120px"}}))),a.createElement(f.Z,{title:"\u5B66\u751F\u8FDD\u89C4\u533F\u8BC4\u5176\u4ED6\u540C\u5B66\u7684\u4F5C\u54C1\u65F6\uFF0C\u5176\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C"},a.createElement("i",{className:`iconfont icon-tishixiaowenhao ml10 ${l.Z.title_icon}`})),a.createElement(O.Z,{style:{marginLeft:"40px",color:"#666",marginRight:"20px"}},"\u7ED3\u675F\u65F6\u95F4"),a.createElement(O.Z,null,a.createElement(g.default.Item,n($({},b),{label:"",name:[G.name,"appeal_time"]}),a.createElement(M.default,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",disabled:_,size:"large",disabledDate:x=>(0,e.Q8)(x,c==null?void 0:c.course_end_date),disabledTime:x=>(0,e.d0)(x),showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm"}))),a.createElement(g.default.Item,n($({},b),{name:[d,"deleteflag"]}),a.createElement(w.default,{type:"hidden"})),!_&&D.length<((R=c==null?void 0:c.anonymous_appeal_settings)==null?void 0:R.length)&&a.createElement("i",{className:"iconfont icon-zengjia1 ml20",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{H({deleteflag:!0})}}),C!==0&&!_&&z&&a.createElement("i",{className:"iconfont icon-shanjian1 ml20",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const x=L.getFieldValue(["anonymous_appeal_settings",d,"group_name"])||[];o(K=>K.filter(j=>!x.includes(j))),q(d)}})))})))};Z.Z=(0,u.connect)(({shixunHomeworks:_})=>({shixunHomeworks:_}))(m)},9758:function(k,Z,t){var P=t(59301),g=t(51081),v=t(78700),O=t(95237),A=t(43604),h=t(57809),f=t(8591),M=t(92832),w=t(36537),u=t(95435),e=t(59263),l=t(61186),a=t.n(l),U=t(41167),N=t(82532),I=t(44835),y=t(42771),r=t(59301),p=Object.defineProperty,W=Object.defineProperties,$=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,_=(o,E,D)=>E in o?p(o,E,{enumerable:!0,configurable:!0,writable:!0,value:D}):o[E]=D,i=(o,E)=>{for(var D in E||(E={}))s.call(E,D)&&_(o,D,E[D]);if(n)for(var D of n(E))m.call(E,D)&&_(o,D,E[D]);return o},F=(o,E)=>W(o,$(E)),L=(o,E)=>{var D={};for(var H in o)s.call(o,H)&&E.indexOf(H)<0&&(D[H]=o[H]);if(o!=null&&n)for(var H of n(o))E.indexOf(H)<0&&m.call(o,H)&&(D[H]=o[H]);return D};const{RangePicker:c}=g.default,T=({disabled:o,shixunHomeworks:E,selectOptions:D,form:H,data:q,classroomList:G})=>{const{workSetting:R}=E,[Y,C]=(0,P.useState)([]),d=(0,P.useMemo)(()=>D==null?void 0:D.filter(B=>!Y.includes(B.value)),[Y,D]);(0,P.useEffect)(()=>{var B;const z=((B=R==null?void 0:R.anonymous_comment_settings)==null?void 0:B.filter(x=>x.evaluation_end))||[];C(z.map(x=>x.group_name))},[R]);const b=B=>{var z;const x=(z=R==null?void 0:R.anonymous_appeal_settings)==null?void 0:z.find(K=>K.group_id===B);return q.anonymous_appeal&&x&&(x==null?void 0:x.appeal_time)!==null};return r.createElement(v.default.List,{name:"anonymous_comment_settings"},(B,{add:z,remove:x})=>r.createElement(r.Fragment,null,B.map(K=>{var j,J;const ne=K,{key:X,name:V}=ne,ee=L(ne,["key","name"]),te=H.getFieldValue(["anonymous_comment_settings",V]),ue=te.deleteflag,ae=a()((j=te.evaluation_start)==null?void 0:j[0])<=a()(),re=!ue&&ae?[!0,b(te==null?void 0:te.group_id)]:[!1,!1];return r.createElement("div",{key:X,style:{background:"#F6F7F9",padding:"5px 30px"}},r.createElement(O.Z,{align:"top",style:{marginLeft:"53px"}},r.createElement(A.Z,{style:{height:"40px",lineHeight:"40px",width:"80px",textAlign:"left"}},"\u533F\u8BC4\u89C4\u5219",X+1),r.createElement(A.Z,{flex:1},r.createElement(O.Z,{align:"middle",style:{marginBottom:10}},r.createElement(A.Z,{span:8},r.createElement(v.default.Item,F(i({},ee),{name:[V,"group_name"]}),r.createElement(h.default,{mode:"multiple",disabled:o||!ue,className:y.Z.multiple_select,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",options:d||[],onSelect:S=>{C(Q=>[...Q,S])},onDeselect:S=>{C(Q=>Q.filter(le=>le!==S))}}))),r.createElement(A.Z,{className:"ml20"},r.createElement(v.default.Item,F(i({},ee),{name:[V,"evaluation_start"]}),r.createElement(c,{ranges:{\u6B64\u523B:()=>{var S;const Q=(S=te==null?void 0:te.evaluation_start)==null?void 0:S[0];return[Q?a()(Q):a()(),a()()]}},size:"large",style:{width:"500px"},disabled:o||re,allowClear:!1,disabledDate:S=>(0,N.Q8)(S,R==null?void 0:R.course_end_date),disabledTime:S=>(0,N.d0)(S),showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",onChange:()=>{var S;if((0,I.Rm)()&&!((S=G.AssistantObject.group)!=null&&S.can_anonymous_comment)){f.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}}}))),r.createElement(v.default.Item,F(i({},ee),{name:[V,"deleteflag"]}),r.createElement(M.default,{type:"hidden"})),!o&&B.length<((J=R==null?void 0:R.anonymous_comment_settings)==null?void 0:J.length)&&r.createElement("i",{className:"iconfont icon-zengjia1 ml20",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{z({deleteflag:!0})}}),X!==0&&!o&&ue&&r.createElement("i",{className:"iconfont icon-shanjian1 ml20",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const S=H.getFieldValue(["anonymous_comment_settings",V,"group_name"])||[];C(Q=>Q.filter(le=>!S.includes(le))),x(V)}})))),r.createElement(O.Z,{align:"middle",style:{marginLeft:"53px"}},r.createElement(A.Z,{style:{width:"75px"}},"\u533F\u8BC4\u6570\u91CF"),r.createElement(A.Z,null,r.createElement(v.default.Item,F(i({},ee),{label:"",colon:!1,name:[V,"evaluation_num"]}),r.createElement(w.Z,{min:0,size:"large",style:{marginLeft:"5px"},disabled:o||!ue&&ae}))),r.createElement(u.Z,{title:"\u6BCF\u4E2A\u5B66\u751F\u5C06\u88AB\u5206\u914D\u7684\u533F\u8BC4\u4F5C\u54C1\u6570\u91CF\u3002\u5982\u5168\u73ED\u5B9E\u9645\u63D0\u4EA4\u4F5C\u4E1A\u6570\u91CF\u5C0F\u4E8E\u672C\u6570\u503C\uFF0C\u5219\u4EE5\u5B9E\u9645\u63D0\u4EA4\u4F5C\u4E1A\u6570\u91CF\u4E3A\u51C6"},r.createElement("i",{className:`iconfont icon-tishixiaowenhao ml10 ${y.Z.title_icon}`})),r.createElement(A.Z,{style:{width:"75px",marginLeft:"40px"}},"\u7F3A\u8BC4\u6263\u5206"),r.createElement(A.Z,null,r.createElement(v.default.Item,F(i({},ee),{label:"",colon:!1,name:[V,"absence_penalty"]}),r.createElement(w.Z,{min:0,size:"large",addonAfter:"\u5206",style:{width:"120px"},disabled:o,onChange:S=>{var Q;if((0,I.Rm)()&&!((Q=G.AssistantObject.group)!=null&&Q.can_anonymous_comment)){f.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}}}))),r.createElement(A.Z,{style:{marginLeft:"40px"}},r.createElement(v.default.Item,F(i({},ee),{name:[V,"student_comment"],valuePropName:"checked"}),r.createElement(e.default,{disabled:o,onChange:()=>{var S;if((0,I.Rm)()&&!((S=G.AssistantObject.group)!=null&&S.can_anonymous_comment)){f.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}}}))),r.createElement(A.Z,{className:"ml10"},"\u533F\u8BC4\u8BA1\u5165\u5DF2\u8BC4\u9605")))})))};Z.Z=(0,U.connect)(({shixunHomeworks:o,classroomList:E})=>({shixunHomeworks:o,classroomList:E}))(T)},46484:function(k,Z,t){var P=t(41167),g=t(95237),v=t(43604),O=t(51081),A=t(36537),h=t(95435),f=t(61186),M=t.n(f),w=t(82532),u=t(42771),e=t(59301);const l=({data:a,disabled:U,setData:N,shixunHomeworks:I})=>{const{workSetting:y,workList:r}=I;return e.createElement("div",null,e.createElement(g.Z,{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center"}},e.createElement(v.Z,{style:{marginLeft:"54px",marginRight:"20px",color:"#666666"}},"\u7ED3\u675F\u65F6\u95F4"),e.createElement(v.Z,null,e.createElement(O.default,{allowClear:!1,style:{width:250},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm"},size:"large",format:"YYYY-MM-DD HH:mm",disabled:U,disabledDate:p=>(0,w.Q8)(p,y==null?void 0:y.course_end_date),disabledTime:p=>(0,w.d0)(p),value:a.appeal_time?M()(a.appeal_time):"",onChange:(p,W)=>{a.appeal_time=W,N(Object.assign({},a))}})),e.createElement(v.Z,{style:{margin:"0 20px 0 60px",color:"#666666"}},"\u8FDD\u89C4\u533F\u8BC4\u6263\u5206"),e.createElement(v.Z,null,e.createElement(A.Z,{size:"large",disabled:U,value:a.appeal_penalty,min:0,addonAfter:"\u5206",style:{width:"120px"},onChange:p=>{a.appeal_penalty=p,N(Object.assign({},a))}})),e.createElement(h.Z,{title:"\u5B66\u751F\u8FDD\u89C4\u533F\u8BC4\u5176\u4ED6\u540C\u5B66\u7684\u4F5C\u54C1\u65F6\uFF0C\u5176\u6210\u7EE9\u5C06\u88AB\u6263\u51CF\u7684\u5206\u503C"},e.createElement("i",{className:`iconfont icon-tishixiaowenhao ml10 ${u.Z.title_icon}`}))))};Z.Z=(0,P.connect)(({shixunHomeworks:a})=>({shixunHomeworks:a}))(l)},99130:function(k,Z,t){var P=t(51081),g=t(36537),v=t(95435),O=t(59263),A=t(61186),h=t.n(A),f=t(41167),M=t(82532),w=t(42771),u=t(59301);const e=({data:l,setData:a,disabled:U,shixunHomeworks:N})=>{const{workSetting:I}=N,y=h()(I==null?void 0:I.evaluation_start)<=h()(),r=l.anonymous_appeal;return u.createElement("div",null,u.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center",marginTop:"1px"}},u.createElement("div",{style:{color:"#666666",marginLeft:"53px",marginRight:"20px"}},"\u5F00\u59CB\u65F6\u95F4"),u.createElement(P.default,{allowClear:!1,style:{width:200},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",size:"large",disabledDate:p=>(0,M.Q8)(p,I==null?void 0:I.course_end_date),disabledTime:p=>(0,M.d0)(p),disabled:U||y||r,value:l.evaluation_start?h()(l.evaluation_start):"",onChange:(p,W)=>{l.evaluation_start=W,a(Object.assign({},l))}}),u.createElement("div",{style:{color:"#666666",marginLeft:"60px",marginRight:"20px"}},"\u7ED3\u675F\u65F6\u95F4"),u.createElement(P.default,{allowClear:!1,style:{width:200},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",size:"large",disabledDate:p=>(0,M.Q8)(p,I==null?void 0:I.course_end_date,l.evaluation_start),disabledTime:p=>(0,M.d0)(p,h()(l.evaluation_start)),disabled:U||r,value:l.evaluation_end?h()(l.evaluation_end):"",onChange:(p,W)=>{l.evaluation_end=W,a(Object.assign({},l))}})),u.createElement("div",{style:{background:"#F6F7F9",padding:"5px 30px",display:"flex",alignItems:"center"}},u.createElement("div",{style:{color:"#666666",marginLeft:"53px",marginRight:"20px"}},"\u533F\u8BC4\u6570\u91CF"),u.createElement(g.Z,{disabled:U||y||r,value:l.evaluation_num,min:0,style:{width:"150px"},size:"large",onChange:p=>{l.evaluation_num=p,a(Object.assign({},l))}}),u.createElement(v.Z,{title:"\u6BCF\u4E2A\u5B66\u751F\u5C06\u88AB\u5206\u914D\u7684\u533F\u8BC4\u4F5C\u54C1\u6570\u91CF\u3002\u5982\u5168\u73ED\u5B9E\u9645\u63D0\u4EA4\u4F5C\u4E1A\u6570\u91CF\u5C0F\u4E8E\u672C\u6570\u503C\uFF0C\u5219\u4EE5\u5B9E\u9645\u63D0\u4EA4\u4F5C\u4E1A\u6570\u91CF\u4E3A\u51C6"},u.createElement("i",{className:`iconfont icon-tishixiaowenhao ml10 ${w.Z.title_icon}`})),u.createElement("div",{style:{color:"#666666",marginLeft:"84px",marginRight:"20px"}},"\u7F3A\u8BC4\u6263\u5206"),u.createElement(g.Z,{min:0,disabled:U,style:{width:"150px"},size:"large",addonAfter:"\u5206",value:l.absence_penalty,onChange:p=>{l.absence_penalty=p,a(Object.assign({},l))}})),l.anonymous_comment&&u.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px 13px 83px",display:"flex",alignItems:"center"}},u.createElement(O.default,{checked:l.student_comment,disabled:U,onChange:()=>{l.student_comment=!l.student_comment,a(Object.assign({},l))}},u.createElement("span",{style:{fontSize:"14px",color:"#000"}},"\u533F\u8BC4\u8BA1\u5165\u5DF2\u8BC4\u9605"))))};Z.Z=(0,f.connect)(({shixunHomeworks:l})=>({shixunHomeworks:l}))(e)},43302:function(k,Z,t){t.d(Z,{Ei:function(){return r},rU:function(){return p},ZP:function(){return $}});var P=t(59301),g={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm",title_icon:"title_icon___QGbm6"},v=t(78700),O=t(59263),A=t(36537),h=t(95435),f=t(95237),M=t(43604),w=t(92310),u=t.n(w),e=t(59301),l=Object.defineProperty,a=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,I=(n,s,m)=>s in n?l(n,s,{enumerable:!0,configurable:!0,writable:!0,value:m}):n[s]=m,y=(n,s)=>{for(var m in s||(s={}))U.call(s,m)&&I(n,m,s[m]);if(a)for(var m of a(s))N.call(s,m)&&I(n,m,s[m]);return n};const r=({value:n,className:s,style:m})=>{const[_,i]=(0,P.useState)("0");(0,P.useEffect)(()=>{if(n){const{submit_limit:L,must_file:c}=n;if(L&&c){i("1");return}if(L&&!c){i("2");return}if(!L&&c){i("3");return}}},[n]);const F={1:e.createElement("span",null,"\u4F5C\u4E1A\u5185\u5BB9\u81F3\u5C11\u586B\u5199",e.createElement("span",{className:"ml5 mr5 c-light-primary"},n==null?void 0:n.submit_limit_num),"\u5B57\u7B26\uFF0C\u5E76\u4E14\u5FC5\u987B\u4E0A\u4F20\u76F8\u5173\u9644\u4EF6\u3002"),2:e.createElement("span",null,"\u4F5C\u4E1A\u5185\u5BB9\u81F3\u5C11\u586B\u5199",e.createElement("span",{className:"ml5 mr5 c-light-primary"},n==null?void 0:n.submit_limit_num),"\u5B57\u7B26"),3:e.createElement("span",null,"\u5FC5\u987B\u4E0A\u4F20\u76F8\u5173\u9644\u4EF6\u3002")};return _==="0"?e.createElement(e.Fragment,null):e.createElement("section",{className:u()(g.exhibition,s),style:m},e.createElement("span",{className:"c-grey-666 mr10"},"\u63D0\u4EA4\u4F5C\u4E1A\u8981\u6C42\uFF1A"),F==null?void 0:F[_])},p=({className:n,style:s,form:m})=>{const _=v.default.useWatch("submit_limit",m),i=v.default.useWatch("can_submit",m);return e.createElement("section",{className:u()(g.wrap,n),style:s},e.createElement("div",{className:`${g.title} mt30`},e.createElement("span",null,"\u63D0\u4EA4\u8BBE\u7F6E")),e.createElement("div",{style:{display:"flex",flexWrap:"wrap",background:"#F6F7F9",padding:"5px 30px"}},e.createElement(v.default.Item,{name:"can_submit",valuePropName:"checked",style:{lineHeight:"40px"}},e.createElement(O.default,null,"\u9650\u5236\u63D0\u4EA4\u4F5C\u54C1")),e.createElement(v.default.Item,{className:"ml10 mr10",name:"submit_num",rules:i&&[{required:!0,message:"\u8BF7\u586B\u5199\u4F5C\u54C1\u6B21\u6570"}]},e.createElement(A.Z,{precision:0,min:1,disabled:!i,size:"large",addonAfter:"\u6B21",style:{width:223}})),e.createElement(h.Z,{overlayInnerStyle:{width:520},title:e.createElement("div",null,"1\u3001\u82E5\u672A\u5F00\u542F\u8BE5\u9650\u5236\uFF0C\u5B66\u751F\u53EF\u4EE5\u65E0\u9650\u6B21\u63D0\u4EA4\u4F5C\u54C1\uFF1B",e.createElement("br",null),"2\u3001\u82E5\u4F5C\u4E1A\u5728\u8865\u4EA4\u9636\u6BB5\uFF0C\u5DF2\u7528\u5B8C\u63D0\u4EA4\u6B21\u6570\u7684\u5B66\u751F\uFF0C\u5C06\u83B7\u5F97\u4E00\u6B21\u989D\u5916\u7684\u63D0\u4EA4\u4F5C\u54C1\u673A\u4F1A\uFF1B",e.createElement("br",null),"3\u3001\u82E5\u5B66\u751F\u9700\u8981\u8D85\u51FA\u89C4\u5B9A\u6B21\u6570\u63D0\u4EA4\u4F5C\u54C1\uFF0C\u6559\u5E08\u53EF\u4F7F\u7528\u201C\u6253\u56DE\u91CD\u505A\u201D\u529F\u80FD\uFF0C\u8BA9\u8BE5\u5B66\u751F\u91CD\u65B0\u63D0\u4EA4\u4E00\u6B21\u3002")},e.createElement("i",{className:`iconfont icon-tishixiaowenhao ${g.title_icon}`,style:{lineHeight:"40px"}})),e.createElement(v.default.Item,{name:"submit_limit",valuePropName:"checked",style:{marginLeft:60,lineHeight:"40px"}},e.createElement(O.default,null,"\u586B\u5199\u5185\u5BB9\u81F3\u5C11")),e.createElement(v.default.Item,{className:"mr10",name:"submit_limit_num",rules:_&&[{required:!0,message:"\u5B57\u6570\u4E0D\u80FD\u4E3A\u7A7A"}]},e.createElement(A.Z,{precision:0,min:1,disabled:!_,size:"large",addonAfter:"\u5B57",style:{width:223,marginRight:100}})),e.createElement(v.default.Item,{name:"must_file",valuePropName:"checked",style:{marginLeft:0,lineHeight:"40px"}},e.createElement(O.default,null,"\u63D0\u4EA4\u4F5C\u4E1A\u5FC5\u987B\u4E0A\u4F20\u9644\u4EF6")),e.createElement(v.default.Item,{name:"can_deadline_submit",valuePropName:"checked",style:{marginLeft:267,lineHeight:"40px"}},e.createElement(O.default,null,"\u4F5C\u4E1A\u622A\u6B62\u540E\u5141\u8BB8\u4FEE\u6539\u9644\u4EF6")),e.createElement(h.Z,{overlayInnerStyle:{width:366},placement:"bottom",title:e.createElement("div",null,"\u5F00\u542F\u6B64\u8BBE\u7F6E\u540E\uFF0C\u5DF2\u63D0\u4EA4\u4F5C\u4E1A\u7684\u5B66\u751F\u53EF\u4EE5\u4FEE\u6539\u5DF2\u4E0A\u4F20\u9644\u4EF6\uFF0C\u800C\u672A\u63D0\u4EA4\u4F5C\u4E1A\u7684\u5B66\u751F\u5219\u4E0D\u53EF\u4E0A\u4F20\u3002")},e.createElement("i",{className:`iconfont icon-tishixiaowenhao ${g.title_icon}`,style:{lineHeight:"40px"}}))))};var $=({value:n,onChange:s,className:m,style:_,disabled:i=!1,checkMarginLeft:F=0})=>{const L={submit_limit:!1,submit_limit_num:200,must_file:!1},[c,T]=(0,P.useState)({});(0,P.useEffect)(()=>{if(console.log(n,"value"),!n)return;const E={submit_limit:n==null?void 0:n.submit_limit,submit_limit_num:n==null?void 0:n.submit_limit_num,must_file:n==null?void 0:n.must_file,can_submit:n==null?void 0:n.can_submit,submit_num:n==null?void 0:n.submit_num};T(y({},E))},[n]);const o=E=>{const D=y(y({},c),E);s(D)};return e.createElement("section",{className:u()(g.wrap,m),style:_},e.createElement("div",{className:`${g.title} mt30`},e.createElement("span",null,"\u63D0\u4EA4\u8BBE\u7F6E")),e.createElement(f.Z,{style:{background:"#F6F7F9",padding:"5px 30px"}},e.createElement(M.Z,{style:{lineHeight:"40px",marginTop:"10px"}},e.createElement(O.default,{disabled:i,checked:c==null?void 0:c.can_submit,onChange:E=>o({can_submit:E.target.checked})}),e.createElement("span",{className:"ml10",style:{marginRight:18}},"\u9650\u5236\u63D0\u4EA4\u4F5C\u4E1A"),e.createElement(A.Z,{size:"large",addonAfter:"\u6B21",style:{width:143},precision:0,min:1,disabled:i||!(c!=null&&c.can_submit),value:c==null?void 0:c.submit_num,onChange:E=>o({submit_num:E})}),e.createElement(h.Z,{overlayInnerStyle:{width:520},title:e.createElement("div",null,"1\u3001\u82E5\u672A\u5F00\u542F\u8BE5\u9650\u5236\uFF0C\u5B66\u751F\u53EF\u4EE5\u65E0\u9650\u6B21\u63D0\u4EA4\u4F5C\u54C1\uFF1B",e.createElement("br",null),"2\u3001\u82E5\u4F5C\u4E1A\u5728\u8865\u4EA4\u9636\u6BB5\uFF0C\u5DF2\u7528\u5B8C\u63D0\u4EA4\u6B21\u6570\u7684\u5B66\u751F\uFF0C\u5C06\u83B7\u5F97\u4E00\u6B21\u989D\u5916\u7684\u63D0\u4EA4\u4F5C\u54C1\u673A\u4F1A\uFF1B",e.createElement("br",null),"3\u3001\u82E5\u5B66\u751F\u9700\u8981\u8D85\u51FA\u89C4\u5B9A\u6B21\u6570\u63D0\u4EA4\u4F5C\u54C1\uFF0C\u6559\u5E08\u53EF\u4F7F\u7528\u201C\u6253\u56DE\u91CD\u505A\u201D\u529F\u80FD\uFF0C\u8BA9\u8BE5\u5B66\u751F\u91CD\u65B0\u63D0\u4EA4\u4E00\u6B21\u3002")},e.createElement("i",{className:`iconfont icon-tishixiaowenhao ml10 ${g.title_icon}`}))),e.createElement(M.Z,{style:{lineHeight:"40px",marginTop:"10px"}},e.createElement(O.default,{style:{marginLeft:F},disabled:i,checked:c==null?void 0:c.submit_limit,onChange:E=>o({submit_limit:E.target.checked})}),e.createElement("span",{className:"ml10",style:{marginRight:18}},"\u586B\u5199\u5185\u5BB9\u81F3\u5C11"),e.createElement(A.Z,{size:"large",addonAfter:"\u5B57",style:{width:143,marginRight:100},precision:0,min:1,disabled:i||!(c!=null&&c.submit_limit),value:c==null?void 0:c.submit_limit_num,onChange:E=>o({submit_limit_num:E})})),e.createElement(M.Z,{style:{lineHeight:"40px",marginTop:"10px"}},e.createElement(O.default,{style:{marginLeft:F},disabled:i,checked:c==null?void 0:c.must_file,onChange:E=>o({must_file:E.target.checked})}),e.createElement("span",{className:"ml10"},"\u63D0\u4EA4\u4F5C\u4E1A\u5FC5\u987B\u4E0A\u4F20\u9644\u4EF6"))))}},83376:function(k,Z,t){t.d(Z,{M:function(){return h},Y:function(){return A}});var P=t(61186),g=t.n(P),v=t(89392),O=t.n(v);const A=(f,M="YYYY-MM-DD")=>(0,v.cloneDeepWith)(f,u=>{if(u instanceof g())return u.format(M)}),h=(f,M,w)=>{const u=e=>Reflect.toString.call(e)==="[object Object]";if(!u(f)&&!Array.isArray(f))return f;for(const e of Object.keys(f))Array.isArray(f[e])?f[e]=f[e].map(l=>h(l,M,w)):u(f[e])?f[e]=h(f[e],M,w):M.includes(e)&&typeof f[e]=="string"&&(f[e]=w?g()(f[e],w):g()(f[e]));return f}},40483:function(k,Z,t){t.d(Z,{U:function(){return w}});var P=t(59301),g=Object.defineProperty,v=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,h=(u,e,l)=>e in u?g(u,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):u[e]=l,f=(u,e)=>{for(var l in e||(e={}))O.call(e,l)&&h(u,l,e[l]);if(v)for(var l of v(e))A.call(e,l)&&h(u,l,e[l]);return u},M=(u,e,l)=>new Promise((a,U)=>{var N=r=>{try{y(l.next(r))}catch(p){U(p)}},I=r=>{try{y(l.throw(r))}catch(p){U(p)}},y=r=>r.done?a(r.value):Promise.resolve(r.value).then(N,I);y((l=l.apply(u,e)).next())});function w(u,e){const[l,a]=(0,P.useState)(e),[U,N]=(0,P.useState)(!1),[I,y]=(0,P.useState)();return[l,U,(p,W=!1)=>M(this,null,function*(){const $=W?e:f(f({},l),p);N(!0),a($);const n=yield u($);return N(!1),y(n),n}),I]}}}]);