|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[14662],{55736:function(e,n,s){s.d(n,{Z:function(){return H}});var t=s(7557),l=s.n(t),i=s(41498),a=s.n(i),c=s(79800),r=s.n(c),o=s(59301),d="list___KhJas",u="row___GGtIx",m="title___o_xqf",h="size___OVRoL",x="download___ZLcIH",p="preview___gi0kI",j="annotation___KVSwj",f=s(92310),v=s.n(f),_=s(64173),k="imageDimensions___a7crR",g="img___Kroat",y=s(71418),Z=s(2859),w=s(51836),b=s(76279),N=s(37712),I=function(e){var n=e.data,s=e.className,t=e.style,i=void 0===t?{}:t,c=e.onClose,d=e.onOk,u=(0,o.useRef)(null),m=(0,o.useRef)(null),h=(0,o.useState)(!1),x=r()(h,2),p=x[0],j=x[1],f=(0,o.useState)("正在加载中"),_=r()(f,2),I=_[0],S=_[1];(0,o.useEffect)((function(){null!=n&&n.visible?document.body.setAttribute("data-custom","height"):document.body.removeAttribute("data-custom"),null!=n&&n.src&&C()}),[null==n?void 0:n.visible]);var C=function(){var e=a()(l()().mark((function e(){var s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),S("正在加载中"),e.next=4,(0,b.ZJ)(null==n?void 0:n.src);case 4:s=e.sent,u.current.src="",u.current.src=s,u.current.onload=function(){E()},j(!1),S("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=a()(l()().mark((function e(s){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),S("正在保存中"),e.next=4,(0,w.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:n.title,file:s.dataUrl}});case 4:if(null==(t=e.sent)||!t.id){e.next=10;break}return e.next=8,(0,w.ZP)("/api/attachments/".concat(n.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==t?void 0:t.id,settings:JSON.stringify(s.state)}});case 8:0===e.sent.status&&d();case 10:j(!1),S("");case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),E=function(){m.current=new Z.hP(u.current),m.current.addEventListener("render",H),m.current.addEventListener("beforeclose",c),m.current.show(),console.log(m.current,"22222"),null!=n&&n.snapshotData&&m.current.restoreState(n.snapshotData),setTimeout((function(){var e;(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var n=document.querySelector(e.name);n&&n.setAttribute("title",e.title)}))}),300)};return(0,N.jsx)(o.Fragment,{children:(null==n?void 0:n.visible)&&(0,N.jsxs)("div",{className:v()(k,s),style:i,children:[(0,N.jsx)(y.Z,{spinning:p,tip:I,style:{position:"absolute"}}),(0,N.jsx)("img",{className:g,ref:u})]})})},S=s(68339),C=s(22961),H=function(e){var n=e.className,s=e.style,t=e.dataSource,i=void 0===t?[]:t,c=e.authority,f=void 0!==c&&c,k=e.callback,g=e.showDimensions,y=void 0===g||g,Z=(0,o.useState)({content:"",type:""}),H=r()(Z,2),E=H[0],P=H[1],D=(0,o.useState)({}),M=r()(D,2),Y=M[0],R=M[1],L=(0,o.useState)(!1),A=r()(L,2),T=A[0],F=A[1],V=(0,o.useState)({title:"",visible:!1,src:"",snapshotData:{}}),W=r()(V,2),z=W[0],O=W[1],J=(0,o.useRef)(),G=function(){var e=a()(l()().mark((function e(n){var s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R(n),"txt"!==n.file_type){e.next=6;break}return e.next=4,(0,w.ZP)(n.url,{method:"get",headers:{"Content-Type":"application/xml"}});case 4:s=e.sent,J.current=s;case 6:P({type:n.file_type,content:S.Z.API_SERVER+n.url});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),q=function(e){var n;O({visible:!0,src:S.Z.API_SERVER+e.url,id:e.id,title:e.title,snapshotData:null==e||null===(n=e.subitem)||void 0===n?void 0:n.settings})},B=function(){var e=a()(l()().mark((function e(n){var s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:P({type:n.file_type,content:S.Z.API_SERVER+(null==n||null===(s=n.subitem)||void 0===s?void 0:s.url)});case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return null!=i&&i.length?(0,N.jsxs)(o.Fragment,{children:[(0,N.jsx)("div",{className:v()(d,n),style:s,children:i.map((function(e,n){var s,t,l;return(0,N.jsxs)("div",{className:u,children:[(0,N.jsxs)("div",{className:m,onClick:function(){return G(e)},children:[(0,N.jsx)("i",{className:"iconfont icon-fujian1"}),(0,N.jsx)("span",{title:e.title,children:e.title})]}),(0,N.jsx)("div",{className:h,children:e.filesize}),(0,N.jsxs)("div",{className:x,onClick:function(){var n;(0,b.Nd)("","".concat(S.Z.API_SERVER).concat(null===(n=e.url)||void 0===n?void 0:n.replace("disposition=inline","")))},children:[(0,N.jsx)("i",{className:"iconfont icon-xiazai4"}),"下载"]}),!["other","download"].includes(null==e?void 0:e.file_type)&&(0,N.jsxs)("div",{className:p,onClick:function(){return G(e)},children:[(0,N.jsx)("i",{className:"iconfont icon-yulan"}),"预览"]}),["image"].includes(null==e?void 0:e.file_type)&&y&&(f?(0,N.jsxs)("div",{className:j,onClick:function(){return q(e)},children:[(0,N.jsx)("i",{className:"iconfont icon-pizhu"}),null!==(s=e.subitem)&&void 0!==s&&s.id?"修改批注":"批注"]}):(null===(t=e.subitem)||void 0===t?void 0:t.id)&&(0,N.jsxs)("div",{className:j,onClick:function(){return B(e)},children:[(0,N.jsx)("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"查看老师批注"]})),["image"].includes(null==e?void 0:e.file_type)&&(null===(l=e.subitem)||void 0===l?void 0:l.id)&&(0,N.jsxs)("div",{className:x,style:{marginLeft:20},onClick:function(){var n;(0,b.Nd)("","".concat(S.Z.API_SERVER).concat(null==e||null===(n=e.subitem)||void 0===n||null===(n=n.url)||void 0===n?void 0:n.replace("disposition=inline","")))},children:[(0,N.jsx)("i",{className:"iconfont icon-xiazai4"}),"下载批注文件"]}),["office"].includes(null==e?void 0:e.file_type)&&(0,C.eB)()&&["xlsx","docx","pptx"].includes(null==e?void 0:e.file_sub)&&y&&(0,N.jsxs)("div",{className:j,onClick:function(){F(!0),G(e)},children:[(0,N.jsx)("i",{className:"iconfont icon-pizhu"}),e.is_edit?"修改批注":"批注"]}),e.is_edit&&(0,C.dE)()&&y&&(0,N.jsxs)("div",{className:j,onClick:function(){G(e)},children:[(0,N.jsx)("i",{className:"iconfont icon-sousuo7"}),"查看老师批注"]})]},n)}))}),(0,N.jsx)(_.Z,{close:!0,data:null==E?void 0:E.content,type:null==E?void 0:E.type,hasMask:!0,editOffice:T?"edit":"view",monacoEditor:{value:J.current,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:f&&y&&"image"===E.type?function(){return q(Y)}:null,onClose:function(){k(),F(!1),P({content:"",type:""})}}),(0,N.jsx)(I,{onOk:function(){k(),O({visible:!1})},onClose:function(){return O({visible:!1})},data:z})]}):null}},520:function(e,n,s){s.d(n,{Z:function(){return m}});var t=s(79800),l=s.n(t),i=s(59301),a=s(54416),c=s(3113),r=s(44539),o=s(65041),d=s(14834),u=s(37712),m=function(){var e=(0,i.useState)(""),n=l()(e,2),s=n[0],t=n[1],m=(0,i.useState)(0),h=l()(m,2),x=h[0],p=h[1],j=(0,i.useRef)("");function f(e){27==e.keyCode&&j.current&&v()}function v(){document.body.style.overflow="auto",t("")}(0,i.useEffect)((function(){return a.Z.subscribe("preview-image",(function(e){t(e),document.body.style.overflow="hidden"}))}),[]),(0,i.useEffect)((function(){return document.addEventListener("keydown",f),function(){document.removeEventListener("keydown",f)}}),[]),(0,i.useEffect)((function(){j.current=s}),[s]);var _=(0,i.useRef)(),k=(0,i.useRef)();return(0,u.jsx)(i.Fragment,{children:s?(0,u.jsxs)("div",{className:"image-preview-container",ref:_,onClick:function(e){e.nativeEvent.target!==_.current&&e.nativeEvent.target!==k.current||v()},children:[(0,u.jsxs)("div",{className:"button-group",children:[(0,u.jsxs)(c.ZP,{onClick:function(){p(x+90)},children:["旋转",(0,u.jsx)(r.Z,{})]}),(0,u.jsxs)(c.ZP,{href:s,children:["下载",(0,u.jsx)(o.Z,{})]}),(0,u.jsxs)(c.ZP,{onClick:v,children:["关闭",(0,u.jsx)(d.Z,{})]})]}),(0,u.jsx)("div",{className:"preview-wrp-group",ref:k,children:(0,u.jsx)("img",{className:"image-preview",src:s,alt:"预览大图",style:{transform:"rotate(".concat(x,"deg)")}})})]}):null})}},56839:function(e,n,s){s.r(n),s.d(n,{default:function(){return K}});var t=s(7557),l=s.n(t),i=s(41498),a=s.n(i),c=s(82242),r=s.n(c),o=s(79800),d=s.n(o),u=s(39647),m=s.n(u),h=s(59301),x=s(96707),p=s(43418),j=s(78241),f=s(8591),v=s(66104),_=s(95237),k=s(43604),g=s(71418),y=s(28103),Z=s(24905),w=s(26415),b=s(3113),N=s(6848),I=s(22596),S=s(20360),C=s(520),H=s(26683),E=s(54416),P=s(99232),D=s.n(P),M=s(68339),Y=s(89392),R=s(64274),L=s(98135),A=s(51836),T=s(37712),F=(0,x.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,s=e.dispatch,t=(0,x.useParams)(),i=(0,h.useState)(!0),c=d()(i,2),o=(c[0],c[1],j.Z.useForm()),u=d()(o,1)[0];return(0,T.jsx)(T.Fragment,{children:(0,T.jsxs)(p.Z,{centered:!0,title:"调分",open:"调分"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(l()().mark((function e(){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.validateFields();case 2:return i=u.getFieldsValue(),e.next=5,(0,A.ZP)("/api/student_works/".concat(n.actionTabs.id,"/adjust_score.json"),{method:"post",body:r()({},i)});case 5:0===e.sent.status&&(f.ZP.success("评阅成功"),u.resetFields(),s({type:"shixunHomeworks/setActionTabs",payload:{}}),s({type:"shixunHomeworks/getStudentWorkCommon",payload:r()({},t)}));case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){s({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,T.jsx)("p",{className:"tc",children:"该学生的最终成绩将不会按照评分规则进行计算"}),(0,T.jsxs)(j.Z,{form:u,layout:"horizontal",children:[(0,T.jsxs)("div",{style:{display:"flex",alignItems:"baseline"},children:[(0,T.jsx)(j.Z.Item,{label:"成绩",name:"score",rules:[{required:!0,message:"请输入!"}],children:(0,T.jsx)(w.Z,{min:0,placeholder:"请填写分数"})}),(0,T.jsx)("span",{className:"ml10",children:"分"})]}),(0,T.jsx)("div",{children:(0,T.jsx)(j.Z.Item,{name:"comment",children:(0,T.jsx)(L.Z.TextArea,{placeholder:"请填写您对作品调分的原因",rows:8})})})]})]})})})),V=s(90595),W=(0,x.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n=e.classroomList,s=(e.loading,e.dispatch),t=((0,x.useParams)(),j.Z.useForm()),i=d()(t,1)[0];return(0,T.jsx)(p.Z,{centered:!0,title:"补交附件",open:"补交附件"===n.actionTabs.key,bodyStyle:{minHeight:200},onOk:a()(l()().mark((function e(){var t,a,c;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.validateFields();case 2:return a=r()({},i.getFieldValue()),c=n.actionTabs.selectArrs,a.attachment_ids=null===(t=a.attachment_ids)||void 0===t?void 0:t.map((function(e){return e.response.id})),e.next=7,(0,R.mz)(r()(r()({},a),{},{homeworkId:c.work_id}));case 7:0===e.sent.status&&(s({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:r()({},n.actionTabs.params)}),s({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return e.stop()}}),e)}))),onCancel:function(){s({type:"classroomList/setActionTabs",payload:{}})},children:(0,T.jsxs)(j.Z,{form:i,initialValues:{},children:[(0,T.jsx)(j.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,T.jsx)(V.Z,{})}),(0,T.jsx)(j.Z.Item,{name:"description",children:(0,T.jsx)(L.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})})),z=s(22961),O={flex_box_center:"flex_box_center___ek18E",flex_space_between:"flex_space_between___e7BP6",flex_box_vertical_center:"flex_box_vertical_center___Oju9C",flex_box_center_end:"flex_box_center_end___qQv1O",flex_box_column:"flex_box_column___DHwHY",bg:"bg___uHtJ5",title:"title___WcS8b",replyList:"replyList___HLYJ8",leader:"leader___qJvA3",buttonFixed:"buttonFixed___WAuFs",exitComment:"exitComment___cW4re",nextComment:"nextComment___AMMy5",modal:"modal___e3Tjt",MdEditor:"MdEditor___JLCMs"},J=s(44132),G=s(76279),q=s(55736),B=["shixunHomeworks","globalSetting","loading","user","dispatch"],K=(0,x.connect)((function(e){var n=e.shixunHomeworks,s=e.loading,t=e.user;return{shixunHomeworks:n,globalSetting:e.globalSetting,user:t,loading:s.effects}}))((function(e){var n,s,t,i,c,o,u,P,L,K,Q,U,X,$,ee,ne,se,te,le,ie,ae,ce,re=e.shixunHomeworks,oe=(e.globalSetting,e.loading),de=e.user,ue=e.dispatch,me=(m()(e,B),(0,x.useParams)()),he=(0,h.useRef)(),xe=((0,x.useLocation)(),de.userInfo),pe=re.studentWorkDetail,je=re.studentWorkCommon,fe=re.studentWorkSupplyDetail,ve=(re.workList,(0,h.useState)({})),_e=d()(ve,2),ke=(_e[0],_e[1],(0,h.useState)("")),ge=d()(ke,2),ye=ge[0],Ze=ge[1],we=(0,h.useState)(!1),be=d()(we,2),Ne=be[0],Ie=be[1],Se=(0,h.useState)({show:!1,active:0}),Ce=d()(Se,2),He=Ce[0],Ee=Ce[1],Pe=p.Z.useModal(),De=d()(Pe,2),Me=De[0],Ye=De[1],Re=j.Z.useForm(),Le=d()(Re,1)[0],Ae=(0,h.useState)({last:!1}),Te=d()(Ae,2),Fe=Te[0],Ve=Te[1],We=(0,h.useState)({last:!1}),ze=d()(We,2),Oe=ze[0],Je=ze[1],Ge=(0,h.useState)(!1),qe=d()(Ge,2),Be=qe[0],Ke=qe[1],Qe=(0,h.useState)(""),Ue=d()(Qe,2),Xe=Ue[0],$e=Ue[1],en=function(){ue({type:"shixunHomeworks/getStudentWorkCommon",payload:r()({},me)})};function nn(){return(nn=a()(l()().mark((function e(){var n,s,t,i,a,c,o;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(localStorage.getItem("all_student_works_param")||"{}"),e.next=3,ue({type:"shixunHomeworks/getAllStudentWorks",payload:r()(r()({},me),{},{categoryId:me.commonHomeworkId},t)});case 3:i=e.sent,(a=null===(n=i.all_student_works)||void 0===n?void 0:n.map((function(e){return String(e.student_work_id)})).indexOf(me.userId))===(null===(s=i.all_student_works)||void 0===s?void 0:s.length)-1?Ve({last:!0}):Ve(null===(c=i.all_student_works)||void 0===c?void 0:c[a+1]),Je(0===a?{last:!0}:null===(o=i.all_student_works)||void 0===o?void 0:o[a-1]);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,h.useEffect)((function(){return ue({type:"globalSetting/footerToggle",payload:!1}),function(){ue({type:"globalSetting/footerToggle",payload:!0})}}),[]),(0,h.useEffect)((function(){ue({type:"shixunHomeworks/getStudentWorkDetail",payload:r()({},me)}),ue({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:r()({},me)}),en(),function(){nn.apply(this,arguments)}(),he.current.onclick=function(e){"IMG"===e.target.nodeName&&""!==e.target.alt&&E.Z.publish("preview-image",e.target.src)}}),[me.categoryId,me.userId]);var sn=function(e){var n;Me.confirm({title:"是否确认删除?",onOk:(n=a()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ue({type:"shixunHomeworks/deleteReply",payload:{object_id:e.id,object_type:"journals_for_message"}});case 2:0===n.sent.status&&(f.ZP.success("删除成功"),en());case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},tn=function(e){var n;Me.confirm({title:"是否确认删除?",onOk:(n=a()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,R.QC)({score_id:e.comment_id,userId:me.userId});case 2:0===n.sent.status&&(f.ZP.success("删除成功"),en());case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},ln=function(){var e=a()(l()().mark((function e(n){var s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.attachment_ids=null===(s=n.attachment_ids)||void 0===s?void 0:s.map((function(e){var n;return null==e||null===(n=e.response)||void 0===n?void 0:n.id})),e.next=3,(0,R.yy)(r()(r()({},n),{},{userId:me.userId}));case 3:0===e.sent.status&&(f.ZP.success("提交成功"),Le.resetFields(),en());case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),an=function(){var e=a()(l()().mark((function e(n){var s,t,i,a,c;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=Le.getFieldsValue(),t=s.comment,i=s.score,a=s.attachment_ids,c=!(0,Y.isNil)(i),console.log("-------",me),!(t||c||a)){e.next=6;break}return p.Z.confirm({centered:!0,okText:"离开",cancelText:"取消",title:"离开此页提示",content:(0,T.jsx)("div",{className:"tc",children:"系统可能不会保存您所做的更改"}),onOk:function(){Le.resetFields(),"last"===n?x.history.push("/classrooms/".concat(null==me?void 0:me.coursesId,"/group_homework/").concat(null==me?void 0:me.commonHomeworkId,"/review/").concat(null==Oe?void 0:Oe.student_work_id)):"read"===n?x.history.push("/classrooms/".concat(null==me?void 0:me.coursesId,"/group_homework/").concat(null==me?void 0:me.commonHomeworkId,"/review/").concat(null==Fe?void 0:Fe.student_work_id)):x.history.push("/classrooms/".concat(me.coursesId,"/group_homework/").concat(me.commonHomeworkId,"/detail"))}}),e.abrupt("return");case 6:"last"===n?x.history.push("/classrooms/".concat(null==me?void 0:me.coursesId,"/group_homework/").concat(null==me?void 0:me.commonHomeworkId,"/review/").concat(null==Oe?void 0:Oe.student_work_id)):"read"===n?x.history.push("/classrooms/".concat(null==me?void 0:me.coursesId,"/group_homework/").concat(null==me?void 0:me.commonHomeworkId,"/review/").concat(null==Fe?void 0:Fe.student_work_id)):x.history.push("/classrooms/".concat(me.coursesId,"/group_homework/").concat(me.commonHomeworkId,"/detail"));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return console.log(je,"studentWorkCommon"),(0,T.jsxs)("section",{className:"edu-container",ref:he,children:[(0,T.jsxs)("section",{className:"animated fadeIn",children:[(0,T.jsx)("aside",{className:"mt10",children:xe&&(0,T.jsxs)(v.Z,{separator:">",children:[(0,T.jsx)(v.Z.Item,{children:(0,T.jsx)(x.Link,{to:"/classrooms/".concat(me.coursesId,"/group_homework"),children:null==xe||null===(n=xe.course)||void 0===n?void 0:n.course_name})}),(0,T.jsx)(v.Z.Item,{children:(0,T.jsx)(x.Link,{to:"/classrooms/".concat(me.coursesId,"/group_homework"),children:"分组作业"})}),(0,T.jsx)(v.Z.Item,{children:(0,T.jsx)(x.Link,{to:"/classrooms/".concat(me.coursesId,"/group_homework/").concat(me.commonHomeworkId,"/detail"),children:"作业详情"})}),(0,T.jsx)(v.Z.Item,{children:null==pe?void 0:pe.author_name})]})}),(0,T.jsx)("aside",{className:[O.title,"mt20"].join(" "),children:(0,T.jsxs)(_.Z,{style:{width:"100%"},children:[(0,T.jsxs)(k.Z,{flex:"1",children:[(0,T.jsx)(x.Link,{to:"/classrooms/".concat(me.coursesId,"/group_homework"),children:(0,T.jsx)(I.Z,{className:"font16 c-black"})}),(0,T.jsx)("strong",{className:"font20 ml5",children:null==pe?void 0:pe.homework_name}),(0,T.jsx)(G.VV,{status:null==pe?void 0:pe.homework_status})]}),(0,T.jsx)(k.Z,{children:(0,z.dE)()&&(null==pe||null===(s=pe.homework_status)||void 0===s?void 0:s.includes("补交中"))&&(0,T.jsx)("span",{onClick:function(){ue({type:"classroomList/setActionTabs",payload:{key:"补交附件",params:me,selectArrs:{homework_id:me.commonHomeworkId,work_id:me.userId}}})},className:"c-blue current font14",children:"补交附件"})})]})})]}),(0,T.jsxs)("section",{className:[O.bg,"pt30","pl30","pr30","pb30","mt20"].join(" "),children:[(0,T.jsxs)(g.Z,{spinning:oe["shixunHomeworks/getStudentWorkDetail"]||oe["shixunHomeworks/getStudentWorkSupplyDetail"],children:[(null==pe?void 0:pe.description)&&(0,T.jsxs)("aside",{children:[(0,T.jsxs)("div",{className:"font16",children:["内容",(0,T.jsx)("span",{style:{color:"#FA6400",fontSize:14},children:"(当前支持批注的文档类型:.docx、.xlsx、.pptx)"})]}),(0,T.jsx)("div",{className:"mt20",children:(0,T.jsx)(J.Z,{value:(null==pe?void 0:pe.description)||"暂无~"})}),(0,T.jsx)(q.Z,{authority:(0,z.GJ)(),callback:function(){ue({type:"shixunHomeworks/getStudentWorkDetail",payload:r()({},me)})},dataSource:null==pe?void 0:pe.attachments}),(0,T.jsxs)("aside",{className:"tr",children:[(0,T.jsx)("span",{className:" c-light-black",children:D()(pe.commit_time).format("YYYY-MM-DD HH:mm")}),(0,T.jsx)("span",{className:"ml10",children:pe.commit_user_name}),(0,T.jsx)("span",{className:"ml10 c-light-black",children:"提交"}),(0,T.jsx)("span",{className:"ml30 c-light-black",children:D()(pe.update_time).format("YYYY-MM-DD HH:mm")}),(0,T.jsx)("span",{className:"ml10",children:pe.update_user_name}),(0,T.jsx)("span",{className:"ml10 c-light-black",children:"更新"})]})]}),(null==pe?void 0:pe.redo_description)&&(0,T.jsxs)("aside",{children:[(0,T.jsx)(y.Z,{}),(0,T.jsx)("div",{className:"font16",children:"重做记录"}),(0,T.jsx)("div",{className:"pl30 mt20",children:(0,T.jsx)(J.Z,{value:(null==pe?void 0:pe.redo_description)||"暂无~"})}),(0,T.jsx)(q.Z,{authority:(0,z.GJ)(),callback:function(){ue({type:"shixunHomeworks/getStudentWorkDetail",payload:r()({},me)})},dataSource:null==pe?void 0:pe.redo_attachments}),(0,T.jsxs)("aside",{className:"tr",children:[(0,T.jsx)("span",{className:" c-light-black",children:D()(pe.redo_commit_time).format("YYYY-MM-DD HH:mm")}),(0,T.jsx)("span",{className:"ml10",children:pe.commit_user_name}),(0,T.jsx)("span",{className:"ml10 c-light-black",children:"提交"}),(0,T.jsx)("span",{className:"ml30 c-light-black",children:D()(pe.redo_update_time).format("YYYY-MM-DD HH:mm")}),(0,T.jsx)("span",{className:"ml10",children:pe.update_user_name}),(0,T.jsx)("span",{className:"ml10 c-light-black",children:"更新"})]})]}),(null==fe?void 0:fe.revise_reason)&&(0,T.jsxs)("aside",{children:[(0,T.jsx)(y.Z,{}),(0,T.jsx)("div",{className:"font16",children:"补交内容"}),(0,T.jsx)("div",{className:"pl30 mt20",children:(0,T.jsx)(J.Z,{value:(null==fe?void 0:fe.revise_reason)||"暂无~"})}),(0,T.jsx)(q.Z,{authority:(0,z.GJ)(),callback:function(){ue({type:"shixunHomeworks/getStudentWorkSupplyDetail",payload:r()({},me)})},dataSource:null==fe?void 0:fe.revise_attachments}),(0,T.jsxs)("aside",{className:"tr",children:[(0,T.jsx)("span",{className:"ml30 c-light-black",children:D()(fe.atta_update_time).format("YYYY-MM-DD HH:mm")}),(0,T.jsx)("span",{className:"ml10",children:fe.atta_update_user}),(0,T.jsx)("span",{className:"ml10 c-light-black",children:"更新"})]})]})]}),(0,T.jsx)(y.Z,{}),(null==pe||null===(t=pe.project_info)||void 0===t?void 0:t.id)&&(0,T.jsxs)("aside",{children:[(0,T.jsx)("div",{className:"font16",children:"关联项目"}),(0,T.jsxs)("div",{className:"pl30 mt20",children:[-1===(null==pe||null===(i=pe.project_info)||void 0===i?void 0:i.id)&&(0,T.jsx)("span",{className:"c-blue",children:null==pe||null===(c=pe.project_info)||void 0===c?void 0:c.name}),-1!==(null==pe||null===(o=pe.project_info)||void 0===o?void 0:o.id)&&(0,T.jsx)("a",{target:"_blank",href:"".concat(null===(u=de.navigationInfo)||void 0===u||null===(u=u.top)||void 0===u?void 0:u.old_url).concat(null==pe||null===(P=pe.project_info)||void 0===P?void 0:P.id),children:null==pe||null===(L=pe.project_info)||void 0===L?void 0:L.name})]})]}),(0,T.jsx)(y.Z,{}),(null==pe||null===(K=pe.project_info)||void 0===K?void 0:K.id)&&(0,T.jsxs)("aside",{children:[(0,T.jsx)("div",{className:"font16",children:"全部组员"}),(0,T.jsxs)("div",{className:"pl30 mt20",children:["当前组员:",null==pe?void 0:pe.author_name," ",(null==pe?void 0:pe.is_leader_work)&&(0,T.jsx)("span",{className:O.leader,children:"组长"}),(0,T.jsx)("br",{}),(null==pe||null===(Q=pe.work_members)||void 0===Q?void 0:Q.length)>0&&(0,T.jsxs)("span",{children:["其他组员:",null==pe||null===(U=pe.work_members)||void 0===U?void 0:U.map((function(e,n){return(0,z.dE)()?(0,T.jsxs)("a",{style:{pointerEvents:"none"},children:[e.user_name,(null==e?void 0:e.is_leader)&&(0,T.jsx)("span",{className:O.leader,children:"组长"})]}):(0,T.jsxs)(x.Link,{className:"mr10",to:"/classrooms/".concat(me.coursesId,"/group_homework/").concat(me.commonHomeworkId,"/review/").concat(e.work_id),target:"_blank",children:[e.user_name,(null==e?void 0:e.is_leader)&&(0,T.jsx)("span",{className:O.leader,children:"组长"})]},n)}))]})]}),!(0,z.dE)()&&(0,T.jsx)("div",{className:"c-grey-999 pl30",children:"温馨提示:点击其他组员的姓名,可以快速评阅TA的作品"})]})]}),(null==pe?void 0:pe.anonymous_comment)&&(0,z.oF)()&&(0,T.jsx)("section",{children:(0,T.jsxs)("aside",{className:[O.replyList,"bg-white"].join(" "),children:[(0,T.jsx)("span",{style:{fontSize:"16px"},children:"匿评学员"}),(0,T.jsx)("br",{}),(null==pe||null===(X=pe.no_commented_user_names)||void 0===X?void 0:X.length)>0&&(0,T.jsxs)("p",{style:{marginTop:"1em"},children:["未完成匿评:",null==pe||null===($=pe.no_commented_user_names)||void 0===$?void 0:$.toString()]}),(0,T.jsxs)("span",{style:{marginTop:(null==pe||null===(ee=pe.no_commented_user_names)||void 0===ee?void 0:ee.length)>0?"":"1em",display:"flex"},children:["已完成匿评:",null==pe||null===(ne=pe.commented_user_names)||void 0===ne?void 0:ne.toString()]})]})}),((0,z.GJ)()||(null==pe?void 0:pe.show_evaluation))&&(0,T.jsxs)("section",{children:[(0,T.jsxs)("aside",{className:[O.replyList,"bg-white"].join(" "),children:[(0,T.jsxs)(_.Z,{gutter:[10,20],children:[(0,T.jsx)(k.Z,{style:{lineHeight:"40px"},children:(0,z.GJ)()&&(null==je?void 0:je.ultimate)&&(0,T.jsx)("span",{className:"font-16 c-blue current",onClick:function(){ue({type:"shixunHomeworks/setActionTabs",payload:{key:"调分",selectArrs:pe,id:me.userId,params:me}})},children:"调分"})}),(0,T.jsx)(k.Z,{})]}),(!(null!=je&&je.ultimate)||(null==pe||null===(se=pe.homework_status)||void 0===se?void 0:se.includes("匿评中")))&&!(null!=je&&je.is_author)&&(0,T.jsx)("aside",{children:(0,T.jsxs)(j.Z,{layout:"vertical",form:Le,onFinish:function(e){return ln(e)},initialValues:{same_score:!0},children:[(0,T.jsx)(j.Z.Item,{label:"评语",name:"comment",rules:[{required:!0,message:"请填写评语"}],children:(0,T.jsx)(H.Z,{placeholder:"请在此输入对本作品的评语,最大限制2000个字符",maxLength:2e3,defaultValue:"",height:200})}),(0,T.jsx)(j.Z.Item,{name:"same_score",valuePropName:"checked",children:(0,T.jsx)(Z.Z,{children:"整组同评(选中,则本次评阅对象指小组全部成员,否则仅评阅此成员1人 )"})}),(0,T.jsx)("div",{children:(0,T.jsx)(j.Z.Item,{name:"attachment_ids",children:(0,T.jsx)(V.Z,{})})}),(0,T.jsx)("div",{className:"mt10",children:(0,T.jsx)(_.Z,{children:(0,T.jsx)(k.Z,{flex:"1",children:(0,T.jsxs)(_.Z,{align:"middle",justify:"start",children:[(0,T.jsx)(k.Z,{children:(0,T.jsx)(j.Z.Item,{noStyle:!0,name:"score",rules:[{required:!(0,z.GJ)(),message:"请填写分数"}],children:(0,T.jsx)(w.Z,{min:0,step:.1,style:{width:100},size:"middle",placeholder:"请填写分数"})})}),(0,T.jsx)(k.Z,{children:(0,T.jsx)("span",{className:"ml5 mr20",children:"分"})})]})})})}),(0,z.GJ)()&&(0,T.jsx)(j.Z.Item,{label:"仅课堂老师可见",name:"hidden_comment",style:{marginTop:10},children:(0,T.jsx)(H.Z,{placeholder:"请输入评语",defaultValue:"",height:250})}),(0,T.jsx)("aside",{className:"".concat(O.buttonFixed),children:(0,T.jsx)("aside",{className:"edu-container",children:(0,T.jsxs)(_.Z,{align:"middle",children:[(0,T.jsx)(k.Z,{flex:"1",children:(0,T.jsx)(b.ZP,{type:"default",onClick:function(){return an("list")},children:"返回列表"})}),(0,T.jsxs)(k.Z,{flex:"1",className:"tr",children:[!(0,z.dE)()&&(0,T.jsx)(b.ZP,{type:"default",onClick:function(){return an("last")},disabled:null==Oe?void 0:Oe.last,children:"上一个"}),!(0,z.dE)()&&(0,T.jsx)(b.ZP,{type:"default",disabled:null==Fe?void 0:Fe.last,style:{marginLeft:"20px",marginRight:"20px"},onClick:function(){return an("read")},children:"下一个"}),(0,T.jsx)(b.ZP,{htmlType:"submit",type:"primary",children:"提交评阅"})]})]})})})]})})]}),(null==je||null===(te=je.comment_scores)||void 0===te?void 0:te.length)>0&&(0,T.jsxs)("aside",{className:[O.replyList,"bg-white"].join(" "),children:[(0,T.jsxs)("p",{style:{color:"#000000",fontWeight:500},children:["点评内容(",null==je||null===(le=je.comment_scores)||void 0===le?void 0:le.length,")"]}),(0,T.jsx)(y.Z,{}),null==je||null===(ie=je.comment_scores)||void 0===ie?void 0:ie.map((function(e,n){var s;return(0,T.jsxs)("aside",{children:[(0,T.jsxs)(_.Z,{gutter:[12,12],children:[(0,T.jsx)(k.Z,{flex:"40px",children:(0,T.jsx)("img",{className:O.headpic,width:"40",src:"".concat(M.Z.IMG_SERVER,"/images/").concat(null==e?void 0:e.user_image_url)})}),(0,T.jsxs)(k.Z,{flex:"1",children:[(0,T.jsxs)(_.Z,{align:"middle",children:[(0,T.jsx)(k.Z,{span:24,children:(0,T.jsxs)(_.Z,{children:[(0,T.jsxs)(k.Z,{flex:1,children:[(0,T.jsx)("span",{className:"c-light-black",children:null==e?void 0:e.user_name}),(0,T.jsxs)("span",{className:"c-light-black",children:["(",null==e?void 0:e.comment_role,")"]}),(0,T.jsx)("span",{className:"c-light-black ml10",children:D()(null==e?void 0:e.comment_time).format("YYYY-MM-DD HH:mm")}),null!==e.score&&(0,T.jsxs)("span",{className:"ml30 c-orange",children:[e.score,"分"]}),e.who_score&&(0,T.jsxs)(T.Fragment,{children:[1==e.who_score&&(0,T.jsx)("span",{className:"ml10 font12",style:{padding:"0 6px",color:"#B98B6B",height:18,borderRadius:2,border:"1px solid #DDCEC4"},children:"组长评分"}),2==e.who_score&&(0,T.jsx)("span",{className:"ml10 font12",style:{padding:"0 6px",color:"#9096A3",height:18,borderRadius:2,border:"1px solid #ccc"},children:"匿评评分"})]})]}),(0,T.jsx)(k.Z,{children:0===n?(0,T.jsxs)("aside",{children:[e.delete&&(0,T.jsx)("span",{className:"c-blue current",onClick:function(){tn(e)},children:"删除"}),e.can_appeal&&(0,T.jsx)("span",{className:"c-blue current",onClick:function(){Ie(!0)},children:"申诉"}),e.can_reply&&(0,T.jsx)("span",{className:"c-blue current ml10",onClick:function(){return Ie(!0)},children:"回复"})]}):(0,T.jsxs)("aside",{children:[e.delete&&(0,T.jsx)("span",{className:"c-blue current",onClick:function(){tn(e)},children:"删除"}),e.can_appeal&&(0,T.jsx)("span",{className:"c-blue current",onClick:function(){Ie(!0)},children:"申诉"}),e.can_reply&&(0,T.jsx)("span",{className:"c-blue current ml10",onClick:function(){return Ie(!0)},children:"回复"}),!e.can_reply&&(0,T.jsx)("span",{className:"c-light-black ml10",children:"失效"})]})})]})}),(0,T.jsxs)(k.Z,{span:24,children:[e.content&&(0,T.jsx)(J.Z,{value:e.content}),!e.content&&(0,T.jsx)("span",{className:"c-light-black",children:"暂未写评语"}),null==e||null===(s=e.attachments)||void 0===s?void 0:s.map((function(e,n){return(0,T.jsx)("div",{children:(0,T.jsxs)("a",{href:"".concat(M.Z.API_SERVER).concat(e.url),children:[(0,T.jsx)("span",{className:"iconfont icon-fujian c-green font14"}),(0,T.jsx)("span",{className:"ml10 c-black",children:e.title}),(0,T.jsx)("span",{className:"c-light-black ml20 font12",children:e.filesize})]})},n)}))]}),""!=e.journals&&(0,T.jsxs)("div",{className:"w100",children:[(0,T.jsx)(y.Z,{}),(0,T.jsx)("aside",{className:[O.comment,"w100"].join(" "),children:e.journals.map((function(e,n){var s,t;return(0,T.jsxs)("aside",{children:[(0,T.jsx)(_.Z,{children:(0,T.jsx)(k.Z,{span:24,children:(0,T.jsxs)(_.Z,{children:[(0,T.jsx)(k.Z,{flex:"50px",children:(0,T.jsx)("img",{className:O.headpic,width:"40",src:"".concat(M.Z.IMG_SERVER,"/images/").concat(null==e||null===(s=e.user_info)||void 0===s?void 0:s.user_image_url)})}),(0,T.jsxs)(k.Z,{flex:"1",children:[null==e||null===(t=e.user_info)||void 0===t?void 0:t.user_name,(0,T.jsx)("span",{className:"c-light-black ml10",children:D()(null==e?void 0:e.time).format("YYYY-MM-DD HH:mm")}),(0,T.jsx)("br",{}),(0,T.jsx)("strong",{children:(0,T.jsx)(J.Z,{value:e.content})})]}),(0,T.jsx)(k.Z,{children:(0,T.jsx)(N.Z,{title:"删除",children:(0,T.jsx)(S.Z,{className:"current c-light-black",onClick:function(){sn(e)}})})})]})})},n),(0,T.jsx)(y.Z,{})]},n)}))})]})]}),Ne&&0===n&&(0,T.jsxs)("aside",{className:["bg-white"].join(" "),children:[(0,T.jsx)(H.Z,{onChange:function(e){Ze(e)},height:150,isFocus:!0,watch:!0}),(0,T.jsx)(_.Z,{children:(0,T.jsxs)(k.Z,{span:24,className:"tr",children:[(0,T.jsx)(b.ZP,{type:"default",size:"middle",onClick:a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ie(!1);case 1:case"end":return e.stop()}}),e)}))),children:"取消"}),(0,T.jsx)(b.ZP,{type:"primary",size:"middle",className:"ml20",onClick:a()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(""!==ye){n.next=4;break}f.ZP.error("请输入内容"),n.next=8;break;case 4:return n.next=6,(0,R.qP)({comment:ye,userId:me.userId,score_id:e.score_id});case 6:0===n.sent.status&&(f.ZP.success("操作成功"),Ie(!1),en());case 8:case"end":return n.stop()}}),n)}))),children:"保存"})]})})]})]})]},n),(0,T.jsx)(y.Z,{})]},n)}))]}),(0,z.GJ)()&&(0,T.jsxs)("aside",{className:[O.replyList,"bg-white"].join(" "),children:[(0,T.jsxs)("p",{style:{color:"#000000",fontWeight:500},children:["点评内容-仅课堂老师可见(",null==je||null===(ae=je.hidden_comment_scores)||void 0===ae?void 0:ae.length,")"]}),(0,T.jsx)(y.Z,{}),null==je||null===(ce=je.hidden_comment_scores)||void 0===ce?void 0:ce.map((function(e,n){var s;return(0,T.jsxs)("aside",{children:[(0,T.jsxs)(_.Z,{gutter:[12,12],children:[(0,T.jsx)(k.Z,{flex:"40px",children:(0,T.jsx)("img",{className:O.headpic,width:"40",src:"".concat(M.Z.IMG_SERVER,"/images/").concat(null==e?void 0:e.user_image_url)})}),(0,T.jsxs)(k.Z,{flex:"1",children:[(0,T.jsxs)(_.Z,{align:"middle",children:[(0,T.jsx)(k.Z,{span:24,children:(0,T.jsxs)(_.Z,{children:[(0,T.jsxs)(k.Z,{flex:1,children:[(0,T.jsx)("span",{className:"c-light-black",children:null==e?void 0:e.user_name}),(0,T.jsxs)("span",{className:"c-light-black",children:["(",null==e?void 0:e.comment_role,")"]}),(0,T.jsx)("span",{className:"c-light-black ml10",children:D()(null==e?void 0:e.comment_time).format("YYYY-MM-DD HH:mm")})]}),(0,T.jsx)(k.Z,{children:0===n?(0,T.jsxs)("aside",{children:[e.delete&&(0,T.jsx)("span",{className:"c-blue current",onClick:function(){tn(e)},children:"删除"}),e.can_appeal&&(0,T.jsx)("span",{className:"c-blue current",onClick:function(){Ie(!0)},children:"申诉"}),e.can_reply&&(0,T.jsx)("span",{className:"c-blue current ml10",onClick:function(){Ee({show:!0,active:n})},children:"回复"})]}):(0,T.jsxs)("aside",{children:[e.delete&&(0,T.jsx)("span",{className:"c-blue current",onClick:function(){tn(e)},children:"删除"}),e.can_appeal&&(0,T.jsx)("span",{className:"c-blue current",onClick:function(){Ie(!0)},children:"申诉"}),e.can_reply&&(0,T.jsx)("span",{className:"c-blue current ml10",onClick:function(){return Ee({show:!0,active:n})},children:"回复"}),!e.can_reply&&(0,T.jsx)("span",{className:"c-light-black ml10",children:"失效"})]})})]})}),(0,T.jsxs)(k.Z,{span:24,children:[e.hidden_comment&&(0,T.jsx)(J.Z,{value:e.hidden_comment}),!e.hidden_comment&&(0,T.jsx)("span",{className:"c-light-black",children:"暂未写评语"}),null==e||null===(s=e.attachments)||void 0===s?void 0:s.map((function(e,n){return(0,T.jsx)("div",{children:(0,T.jsxs)("a",{href:"".concat(M.Z.API_SERVER).concat(e.url),children:[(0,T.jsx)("span",{className:"iconfont icon-fujian c-green font14"}),(0,T.jsx)("span",{className:"ml10 c-black",children:e.title}),(0,T.jsx)("span",{className:"c-light-black ml20 font12",children:e.filesize})]})},n)}))]}),""!=e.journals&&(0,T.jsxs)("div",{className:"w100",children:[(0,T.jsx)(y.Z,{}),(0,T.jsx)("aside",{className:[O.comment,"w100"].join(" "),children:e.journals.map((function(e,n){var s,t;return(0,T.jsxs)("aside",{children:[(0,T.jsx)(_.Z,{children:(0,T.jsx)(k.Z,{span:24,children:(0,T.jsxs)(_.Z,{children:[(0,T.jsx)(k.Z,{flex:"50px",children:(0,T.jsx)("img",{className:O.headpic,width:"40",src:"".concat(M.Z.IMG_SERVER,"/images/").concat(null==e||null===(s=e.user_info)||void 0===s?void 0:s.user_image_url)})}),(0,T.jsxs)(k.Z,{flex:"1",children:[null==e||null===(t=e.user_info)||void 0===t?void 0:t.user_name,(0,T.jsx)("span",{className:"c-light-black ml10",children:D()(null==e?void 0:e.time).format("YYYY-MM-DD HH:mm")}),(0,T.jsx)("br",{}),(0,T.jsx)("strong",{children:(0,T.jsx)(J.Z,{value:e.hidden_comment})})]}),(0,T.jsx)(k.Z,{children:(0,T.jsx)(N.Z,{title:"删除",children:(0,T.jsx)(S.Z,{className:"current c-light-black",onClick:function(){sn(e)}})})})]})})},n),(0,T.jsx)(y.Z,{})]},n)}))})]})]}),He.show&&n===He.active&&(0,T.jsxs)("aside",{className:["bg-white"].join(" "),children:[(0,T.jsx)(H.Z,{onChange:function(e){Ze(e)},height:150,isFocus:!0,watch:!0}),(0,T.jsx)(_.Z,{children:(0,T.jsxs)(k.Z,{span:24,className:"tr",children:[(0,T.jsx)(b.ZP,{type:"default",size:"middle",onClick:a()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ee({show:!1,active:0});case 1:case"end":return e.stop()}}),e)}))),children:"取消"}),(0,T.jsx)(b.ZP,{type:"primary",size:"middle",className:"ml20",onClick:a()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(""!==ye){n.next=4;break}f.ZP.error("请输入内容"),n.next=8;break;case 4:return n.next=6,(0,R.qP)({hidden_comment:ye,userId:me.userId,score_id:e.score_id});case 6:0===n.sent.status&&(f.ZP.success("操作成功"),Ee({show:!1,active:0}),en());case 8:case"end":return n.stop()}}),n)}))),children:"保存"})]})})]})]})]},n),(0,T.jsx)(y.Z,{})]},n)}))]})]}),(0,T.jsx)(F,{}),(0,T.jsx)(W,{}),(0,T.jsx)(C.Z,{}),(0,T.jsx)(p.Z,{title:"确认打回重做",open:Be,destroyOnClose:!0,forceRender:!0,onCancel:function(){Ke(!1)},onOk:a()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Xe){e.next=3;break}return f.ZP.info("评语不能为空"),e.abrupt("return");case 3:return e.next=5,(0,A.ZP)("/api/student_works/".concat(me.userId,"/redo_modal.json"),{method:"post",body:{comment:Xe,id:me.userId}});case 5:0===(null==(n=e.sent)?void 0:n.status)&&(f.ZP.info("打回重做成功"),Ke(!1),en());case 7:case"end":return e.stop()}}),e)}))),width:700,children:(0,T.jsxs)("div",{style:{padding:"32px"},children:[(0,T.jsxs)("span",{children:["确认将",null==pe?void 0:pe.author_name,"的作业打回重做吗"]}),(0,T.jsxs)("div",{style:{marginTop:"20px"},children:[(0,T.jsxs)("label",{children:[(0,T.jsx)("span",{style:{marginRight:"5px",color:"red"},children:"*"}),"评语:"]}),(0,T.jsx)(H.Z,{className:O.MdEditor,onChange:function(e){return $e(e)},defaultValue:"",height:250})]})]})}),Ye]})}))}}]); |