You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
38 KiB
1 line
38 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[56359],{82322:function(e,n,t){t.d(n,{Z:function(){return N}});var s=t(7557),o=t.n(s),r=t(41498),i=t.n(r),a=t(79800),c=t.n(a),l=t(82242),d=t.n(l),u=t(59301),m=t(5112),h=t(3113),p=t(8591),x=t(43418),f=t(94001),g=t(95237),v=t(43604),_=t(28103),k=t(82915),j="title___dVHM9",w=t(93697),y=t(24334),Z=t(18030),b=t(5296),I=t(38279),T=t(31917),S=t(680),P=t(71371),C=t(37712),H={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var N=function(e){var n=e.language,t=e.dispatch,s=e.shixunWorkReport,r=e.v,a=e.languages,l=e.classroomList,N=e.autoHeight,A=(e.diff_code_count,e.data,(0,u.useState)(null==a?void 0:a[0])),O=c()(A,2),L=O[0],F=O[1],G=(0,b.useParams)();return(0,u.useEffect)((function(){F(null==a?void 0:a[0])}),[]),(0,u.useEffect)((function(){var e;F(null==a||null===(e=a.filter((function(e){return e.language===(null==L?void 0:L.language)})))||void 0===e?void 0:e[0])}),[a]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("h2",{children:[" ",(0,C.jsxs)("span",{children:[r.is_finish?(0,C.jsxs)("span",{children:["最后通关代码",(0,C.jsx)("span",{className:"ml5 font12 c-grey-999",children:"通过了本题,在作业时间内最后一次提交的通关代码"})]}):(0,C.jsxs)("span",{children:["最新代码",(0,C.jsx)("span",{className:"ml5 font12 c-grey-999",children:"未通过本题,展示最新编写的代码详情"})]}),(null==a?void 0:a.length)>1&&(0,C.jsx)(m.ZP.Group,{defaultValue:n,style:{marginLeft:10},onChange:function(e){var n;r.language=e.target.value,F(null==a||null===(n=a.filter((function(n){return n.language===e.target.value})))||void 0===n?void 0:n[0])},children:null==a?void 0:a.map((function(e){return(0,C.jsx)(m.ZP,{value:null==e?void 0:e.language,children:null==e?void 0:e.language})}))})]}),(0,w.GJ)()&&"shixunWorkReport"!=s&&(0,C.jsxs)("span",{children:[(0,C.jsxs)("span",{children:["得分 ",null==L?void 0:L.score,"/",null==L?void 0:L.total_score]}),(0,C.jsx)(h.ZP,{style:{margin:"0px 10px"},onClick:function(){var e;if(null!==(e=l.AssistantObject)&&void 0!==e&&null!==(e=e.hack)&&void 0!==e&&e.can_appraise||!(0,w.Rm)()){var n,s=null==L?void 0:L.score;x.Z.confirm({title:"调分",content:(0,C.jsxs)("div",{children:[(0,C.jsxs)("p",{children:["得分:",null==L?void 0:L.score,"/",null==L?void 0:L.total_score]}),(0,C.jsxs)("p",{children:["调分:",(0,C.jsx)(f.Z,{min:0,max:null==L?void 0:L.total_score,defaultValue:null==L?void 0:L.score,onChange:function(e){s=e}})]})]}),okText:"确认",onOk:(n=i()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.ZP)("/api/courses/".concat(null==G?void 0:G.coursesId,"/homework_commons/update_hack_score"),{method:"put",body:{course_id:null==G?void 0:G.coursesId,hack_user_code_id:null==L?void 0:L.hack_user_id,score:s}});case 2:0===e.sent.status&&(p.ZP.success("调分成功"),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getShixunWorkReports",payload:d()({},G)}));case 4:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),cancelText:"取消"})}else p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},type:"primary",children:"调分"}),(0,w.GJ)()&&"shixunWorkReport"!=s&&(0,C.jsx)(h.ZP,{onClick:function(){var e;null!==(e=l.AssistantObject.hack)&&void 0!==e&&e.can_appraise||!(0,w.Rm)()?t({type:"shixunHomeworks/setActionTabs",payload:{key:"更改点评",selectArrs:{myshixun_identifier:s.user_id,type:"1",language:null==L?void 0:L.language,v:r,data:d()({},s)}}}):p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"点评代码"})]})]}),(0,C.jsx)(k.ZP,{height:300,language:null==L?void 0:L.language,value:null!=L&&L.code?y.Base64.decode(null==L?void 0:L.code):"",autoHeight:N,theme:"default",options:H}),((null==L?void 0:L.comment)||(null==L?void 0:L.hidden_comment))&&(0,C.jsxs)("div",{children:[(0,C.jsxs)(g.Z,{align:"middle",style:{borderTop:"1px solid #eee"},children:[(0,C.jsx)(v.Z,{flex:1,children:(0,C.jsx)("h1",{className:j,children:"点评内容"})}),(0,C.jsx)(v.Z,{className:"pr30",children:(0,w.GJ)()&&(0,C.jsxs)(h.ZP,{onClick:i()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:(0,C.jsx)(S.Z,{}),content:"是否确认删除?",onOk:function(){return i()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.gZ)({comment_id:null==L?void 0:L.comment_id,homeworkId:G.homeworkId,type:"hack"});case 2:0===e.sent.status&&(p.ZP.success("删除成功"),t({type:"shixunHomeworks/getShixunWorkReports",payload:d()({},G)}));case 4:case"end":return e.stop()}}),e)})))()}});case 1:case"end":return e.stop()}}),e)}))),children:[(0,C.jsx)(P.Z,{}),"删除"]})})]}),(0,C.jsx)(_.Z,{style:{margin:0}}),(null==L?void 0:L.comment)&&(0,C.jsxs)("aside",{className:"pl30 pr30 mt20",children:[(0,C.jsx)("span",{className:"c-light-black font12",children:"# 学生和课堂老师可见"}),(0,C.jsx)("br",{}),(0,C.jsx)(I.Z,{value:null==L?void 0:L.comment})]}),(null==L?void 0:L.hidden_comment)&&(0,C.jsxs)("aside",{className:"pl30 pr30 mt20",children:[(0,C.jsx)("span",{className:"c-light-black font12",children:"# 仅课堂老师可见"}),(0,C.jsx)("br",{}),(0,C.jsx)(I.Z,{value:null==L?void 0:L.hidden_comment})]})]})]})}},10704:function(e,n,t){var s=t(7557),o=t.n(s),r=t(82242),i=t.n(r),a=t(41498),c=t.n(a),l=t(39647),d=t.n(l),u=(t(59301),t(43418)),m=t(8591),h=t(18030),p=t(5296),x=t(37712),f=["shixunHomeworks","dispatch"];n.Z=(0,p.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,s=(d()(e,f),(0,p.useParams)());return(0,x.jsxs)(u.Z,{centered:!0,title:"提示",open:"打回重做"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:c()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.ZP)("/api/myshixuns/".concat(n.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"GET",params:{course_id:s.coursesId}});case 2:e.sent.shixun_identifier&&(m.ZP.success("操作成功"),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getWorkList",payload:i()({},n.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,x.jsx)("p",{children:"该作业将被打回重做,学生实训记录将被清空!"}),(0,x.jsx)("p",{children:"确定打回?"})]})}))},49063:function(e,n,t){t.d(n,{n:function(){return ie},Z:function(){return ae}});var s=t(37205),o=t.n(s),r=t(85573),i=t.n(r),a=t(7557),c=t.n(a),l=t(41498),d=t.n(l),u=t(82242),m=t.n(u),h=t(79800),p=t.n(h),x=t(59301),f=t(78241),g=t(8591),v=t(6848),_=t(43418),k=t(20834),j=t(24905),w=t(95237),y=t(43604),Z=t(92832),b=t(3113),I=t(38854),T=t(61998),S=t(5112),P=t(94001),C=t(27092),H=t(78386),N=t(20538),A=t(88142),O=t(16135),L=t(54313),F=t(21082),G=t(10704),J=t(39647),R=t.n(J),E=t(54745),V=t(18030),W=t(5296),B=t(37712),z=["shixunHomeworks","dispatch"],K=(0,W.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,s=(R()(e,z),(0,W.useParams)()),r=(0,x.useState)(!0),i=p()(r,2),a=i[0],l=i[1],u=(0,x.useState)(!1),h=p()(u,2),v=h[0],k=h[1],j=f.Z.useForm(),w=p()(j,1)[0],y=function(){var e=d()(c()().mark((function e(){var r;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=w.getFieldValue(),e.next=3,(0,V.ZP)("/api/homework_commons/".concat(s.categoryId,"/batch_comment.json"),{method:"post",body:{student_work_ids:o()(n.actionTabs.selectArrs),cover_all:a,hidden_comment:r.hidden_comment,comment:r.comment}});case 3:0===e.sent.status&&(g.ZP.success("评阅成功"),w.resetFields(),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getWorkList",payload:m()({},n.actionTabs.params)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(_.Z,{centered:!0,title:"一键点评",open:"一键点评"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:d()(c()().mark((function e(){var s;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=w.getFieldValue(),"{}"===JSON.stringify(s)||""===s.hidden_comment&&""===s.comment?k(!0):n.workList.partial_comment?t({type:"shixunHomeworks/setActionTabs",payload:{key:"一键点评确认",selectArrs:n.actionTabs.selectArrs,params:n.actionTabs.params}}):y();case 2:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,B.jsxs)(f.Z,{form:w,onChange:function(){v&&k(!1)},children:[(0,B.jsx)("p",{children:"学生和课堂老师可见"}),(0,B.jsx)(f.Z.Item,{name:"comment",children:(0,B.jsx)(Z.Z.TextArea,{placeholder:"请输入评阅内容",rows:8})}),(0,B.jsx)("p",{children:"仅课堂老师可见"}),(0,B.jsx)(f.Z.Item,{name:"hidden_comment",children:(0,B.jsx)(Z.Z.TextArea,{placeholder:"请输入评阅内容",rows:8})})]}),v&&(0,B.jsx)("p",{className:"c-red",children:"评阅内容至少有一个不为空"})]}),(0,B.jsx)(_.Z,{centered:!0,title:(0,B.jsxs)("span",{children:[(0,B.jsx)(E.Z,{className:"c-orange mr20"}),"提示"]}),open:"一键点评确认"===n.actionTabs.key,okText:"确定点评",cancelText:"放弃点评",onOk:function(){y()},onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},width:400,children:(0,B.jsxs)("div",{className:"tc",children:[(0,B.jsx)("p",{children:"部分学生已有点评内容,是否覆盖已有点评内容?"}),(0,B.jsx)("p",{children:(0,B.jsxs)(S.ZP.Group,{onChange:function(e){l(e.target.value)},value:a,children:[(0,B.jsx)(S.ZP,{value:!0,children:"覆盖已有点评"}),(0,B.jsx)(S.ZP,{value:!1,children:"跳过已有点评"})]})})]})})]})})),q=t(31917),D=t(93697),M="wrap___altfw",Q="MdEditor___OuyKH",U="tr1___nwwbX",X="TableDom___pl59W",Y=["shixunHomeworks","dispatch"],$=(0,W.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n,t,s=e.shixunHomeworks,o=e.dispatch,r=(R()(e,Y),(0,W.useParams)()),i=(0,x.useState)(!1),a=p()(i,2),l=a[0],u=a[1],m=(0,x.useState)(null===(n=s.actionTabs.selectArrs)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.name),h=p()(m,2),v=h[0],k=h[1],j=f.Z.useForm(),w=p()(j,1)[0];(0,x.useEffect)((function(){var e,n,t;"更改点评"===s.actionTabs.key&&w.setFieldsValue({comment:null===(e=s.actionTabs.selectArrs)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.work_comment,hidden_comment:null===(n=s.actionTabs.selectArrs)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.work_comment_hidden}),k(null===(t=s.actionTabs.selectArrs)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.name)}),[s.actionTabs.key]);var y=function(){var e=d()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.getFieldValue(),e.next=3,(0,V.ZP)("/api/student_works/".concat(null===(n=s.actionTabs.selectArrs)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.homeworkId,"/shixun_work_comment.json"),{method:"post",body:{hidden_comment:t.hidden_comment,comment:t.comment}});case 3:if(0!==e.sent.status){e.next=9;break}return g.ZP.success("评阅成功"),w.resetFields(),o({type:"shixunHomeworks/setActionTabs",payload:{}}),e.abrupt("return",o({type:"shixunHomeworks/getWorkList",payload:r}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)(_.Z,{centered:!0,title:null!==(t=s.actionTabs.selectArrs)&&void 0!==t&&null!==(t=t.data)&&void 0!==t&&t.work_comment_hidden?"更改"+v+"点评":v+"点评",open:"更改点评"===s.actionTabs.key,okText:"确定",cancelText:"取消",onOk:d()(c()().mark((function e(){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=w.getFieldValue(),"{}"===JSON.stringify(n)||""===n.hidden_comment&&""===n.comment?u(!0):y();case 2:case"end":return e.stop()}}),e)}))),onCancel:function(){o({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,B.jsxs)(f.Z,{form:w,onChange:function(){l&&u(!1)},children:[(0,B.jsx)("p",{children:"学生和课堂老师可见"}),(0,B.jsx)(f.Z.Item,{name:"comment",children:(0,B.jsx)(Z.Z.TextArea,{placeholder:"请输入评阅内容",rows:8})}),(0,B.jsx)("p",{children:"仅课堂老师可见"}),(0,B.jsx)(f.Z.Item,{name:"hidden_comment",children:(0,B.jsx)(Z.Z.TextArea,{placeholder:"请输入评阅内容",rows:8})})]}),l&&(0,B.jsx)("p",{className:"c-red",children:"评阅内容至少有一个不为空"})]})})})),ee=["shixunHomeworks","dispatch"],ne=(0,W.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,s=(R()(e,ee),(0,W.useParams)()),r=(0,x.useState)([]),i=p()(r,2),a=i[0],l=i[1],u=(0,x.useState)([]),m=p()(u,2),h=m[0],f=m[1];function g(){return(g=d()(c()().mark((function e(){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.ZP)("/api/homework_commons/".concat(s.categoryId,"/code_quality_analyses/group_list.json"),{method:"GET",params:{page:1,limit:200}});case 2:n=e.sent,l(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,x.useEffect)((function(){"质量检测"===n.actionTabs.key&&function(){g.apply(this,arguments)}()}),[n.actionTabs.key]);return(0,B.jsx)(B.Fragment,{children:(0,B.jsx)(_.Z,{centered:!0,title:"代码质量评分",open:"质量检测"===n.actionTabs.key,width:700,okText:"确定",cancelText:"取消",onOk:d()(c()().mark((function e(){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.ZP)("/api/homework_commons/".concat(s.categoryId,"/code_quality_analyses.json"),{method:"POST",body:{group_ids:h}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(W.history.replace("/classrooms/".concat(s.coursesId,"/shixun_homework/").concat(s.categoryId,"/detail?tabs=4")),window.location.reload(),t({type:"shixunHomeworks/setActionTabs",payload:{}}),f([]));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){f([]),t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:(0,B.jsx)(T.Z,{rowSelection:{type:"checkbox",onChange:function(e,n){f(o()(e))},selectedRowKeys:h,getCheckboxProps:function(e){return{disabled:"进行中"===e.status||0===e.works_count}}},rowKey:function(e){return e.key||e.id},scroll:{y:300},pagination:!1,columns:[{title:"分班情况",dataIndex:"name"},{title:"有效作品数",dataIndex:"works_count"},{title:"检测进度",dataIndex:"status"},{title:"上次评分时间",dataIndex:"last_analysis_time"}],dataSource:null==a?void 0:a.group_list})})})})),te=t(16318),se=t(1806),oe=t(19421),re=(0,W.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){e.shixunHomeworks,e.dispatch;var n=e.isShow,t=e.setIsShow,s=e.item,o=(e.coursesId,e.categoryId,(0,x.useState)({page:1,limit:10})),r=p()(o,2),i=r[0],a=r[1],l=(0,x.useState)([]),u=p()(l,2),h=u[0],f=u[1],g=(0,x.useState)(!1),v=p()(g,2),k=v[0],j=v[1];function w(){return y.apply(this,arguments)}function y(){return(y=d()(c()().mark((function e(){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),e.next=3,(0,V.ZP)("/api/student_works/".concat(s.id,"/game_details.json"),{method:"get",params:m()({},i)});case 3:n=e.sent,j(!1),0===n.status&&f(null==n?void 0:n.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,x.useEffect)((function(){n&&w()}),[n]);var Z=[{title:"序号",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:function(e,n,t){return(0,B.jsx)("span",{style:{color:"#000"},children:i.limit*(i.page-1)+t+1})}},{title:"任务名称",dataIndex:"name",key:"name",ellipsis:!0,render:function(e,n,t){return(0,B.jsx)("span",{style:{color:"#000"},children:e})}},{title:"通关详情",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,width:100,render:function(e,n,t){return(0,B.jsx)("span",{children:0==e?"未通关":4==e?"截止后通关":"已通关"})}},{title:"评测次数",dataIndex:"evaluate_count",key:"evaluate_count",width:100,ellipsis:!0,render:function(e,n,t){return(0,B.jsx)("span",{style:{color:"#333"},children:e})}},{title:"实训耗时",dataIndex:"time_consuming",key:"time_consuming",width:120,ellipsis:!0,render:function(e,n,t){return(0,B.jsx)("span",{style:{color:"#333"},children:e})}}];return(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)(_.Z,{centered:!0,title:"通关情况",open:n,width:700,footer:null,maskClosable:!1,onCancel:function(){i.page=1,i.limit=10,a(m()({},i)),t(!1)},children:[(0,B.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"20px"},children:[(0,B.jsxs)("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},children:[(0,B.jsx)("span",{style:{color:"#666",marginRight:"10px"},children:"学生姓名"}),(0,B.jsx)("span",{title:null==s?void 0:s.user_name,style:{color:"#232B40"},children:null==s?void 0:s.user_name})]}),(0,B.jsxs)("div",{style:{marginLeft:"50px",marginRight:"50px",maxWidth:"180px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},children:[(0,B.jsx)("span",{style:{color:"#666",marginRight:"10px"},children:"学号"}),(0,B.jsx)("span",{title:null==s?void 0:s.student_id,style:{color:"#232B40"},children:(null==s?void 0:s.student_id)||"--"})]}),(0,B.jsxs)("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},children:[(0,B.jsx)("span",{style:{color:"#666",marginRight:"10px"},children:"班级"}),(0,B.jsx)("span",{title:null==s?void 0:s.group_name,style:{color:"#232B40"},children:(null==s?void 0:s.group_name)||"--"})]})]}),(0,B.jsx)(T.Z,{scroll:{y:380},columns:Z,loading:k,style:{marginBottom:i.limit>(null==h?void 0:h.count)?"16px":"0"},dataSource:h.games,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],hideOnSinglePage:!0,pageSize:i.limit,current:i.page,position:["bottomRight"],onChange:function(e,n){i.page=e,i.limit=n,a(m()({},i)),w()},total:null==h?void 0:h.count,showTotal:function(e,n){return(0,B.jsxs)("span",{children:["共",(0,B.jsxs)("span",{style:{color:"#165DFF"},children:[" ",e," "]}),"条数据"]})}}})]})})})),ie=function(e){var n=e.value,t=e.placeholder,s=void 0===t?"":t;if(null==n||""===n)return(0,B.jsx)("span",{children:s});var o=Number(n);return o>=80?(0,B.jsx)("span",{style:{color:"#009C0F"},children:o}):o<80&&o>=60?(0,B.jsx)("span",{style:{color:"#FA6400"},children:o}):o<60?(0,B.jsx)("span",{style:{color:"#E30000"},children:o}):void 0},ae=(0,W.connect)((function(e){var n=e.shixunHomeworks,t=e.classroomList,s=e.loading,o=e.user;return{shixunHomeworks:n,classroomList:t,loading:s.effects,user:o}}))((function(e){var n,t,s,r,a,l,u,h,J,R,E,z,Y=e.shixunHomeworks,ee=e.classroomList,ae=e.loading,ce=e.dispatch,le=e.setExportParams,de=e.user,ue=(0,W.useParams)(),me=(0,x.useState)(m()(m()({},{page:1,limit:20,order:"work_score",b_order:"desc"}),ue)),he=p()(me,2),pe=he[0],xe=(he[1],f.Z.useForm()),fe=p()(xe,1)[0],ge=(0,x.useState)(),ve=p()(ge,2),_e=ve[0],ke=(ve[1],(0,x.useState)({})),je=p()(ke,2),we=je[0],ye=je[1],Ze=(0,x.useState)([]),be=p()(Ze,2),Ie=(be[0],be[1]),Te=(0,x.useState)(!1),Se=p()(Te,2),Pe=Se[0],Ce=Se[1],He=(0,x.useState)([]),Ne=p()(He,2),Ae=Ne[0],Oe=Ne[1],Le=(0,x.useState)(!1),Fe=p()(Le,2),Ge=Fe[0],Je=Fe[1],Re=(0,x.useState)(),Ee=p()(Re,2),Ve=Ee[0],We=Ee[1],Be=(0,x.useState)(1),ze=p()(Be,2),Ke=ze[0],qe=ze[1],De=(0,x.useState)(),Me=p()(De,2),Qe=(Me[0],Me[1]),Ue=(0,x.useState)(),Xe=p()(Ue,2),Ye=Xe[0],$e=Xe[1],en=(0,x.useState)(),nn=p()(en,2),tn=nn[0],sn=nn[1],on=(0,x.useState)(),rn=p()(on,2),an=rn[0],cn=rn[1],ln=(0,x.useState)(),dn=p()(ln,2),un=dn[0],mn=dn[1],hn=(0,x.useState)(!1),pn=p()(hn,2),xn=pn[0],fn=pn[1],gn=(0,x.useState)(!1),vn=p()(gn,2),_n=vn[0],kn=vn[1],jn=(0,x.useState)(),wn=p()(jn,2),yn=wn[0],Zn=wn[1];(0,W.useLocation)();(0,x.useEffect)((function(){return bn(),function(){ye([]),Ie([])}}),[pe.coursesId]),(0,x.useEffect)((function(){var e,n=JSON.parse(JSON.stringify(Y.workList));null!=n&&null!==(e=n.student_works)&&void 0!==e&&e.length||null==n||!n.id?(null!=n&&n.id&&Ie([m()(m()({},n),{number:"我"})]),ye(m()({},n))):(n.student_works=[m()({},n)],ye(n))}),[Y.workList]);var bn=function(e){return le(m()({},pe)),ce({type:"shixunHomeworks/getWorkList",payload:pe})};(0,x.useEffect)((function(){ce({type:"user/getUserInfo",payload:{course_id:pe.coursesId}})}),[]);var In=function(){var e=d()(c()().mark((function e(){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ce({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"成绩计算中,请稍候..."}}),e.next=3,(0,q.Vs)({categoryId:ue.categoryId});case 3:n=e.sent,ce({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),0===(null==n?void 0:n.status)&&(g.ZP.success(null==n?void 0:n.message),bn());case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,x.useEffect)((function(){document.getElementById("divhe")&&(document.getElementById("divhe").scrollHeight>47&&(mn(47),fn(!0)))}),[document.getElementById("divhe")]);function Tn(){qe(1),Qe(""),$e(""),sn(""),cn(""),Oe([])}var Sn=[{title:"序号",dataIndex:"number",align:"center",width:50,fixed:"left",ellipsis:!0,render:function(e,n,t){return pe.limit*(pe.page-1)+t+1}},{title:"姓名",dataIndex:"user_name",align:"center",width:110,fixed:"left",ellipsis:!0,render:function(e){return(0,B.jsx)(v.Z,{placement:"bottomLeft",title:e,children:(0,B.jsx)("span",{className:"current",children:e})})}},!(0,D.Jd)()&&{title:"学号",dataIndex:"student_id",align:"center",sorter:!0,fixed:"left",width:100,ellipsis:!0,showSorterTooltip:!1,sortOrder:"student_id"===pe.order?"desc"===pe.b_order?"descend":"ascend":null,render:function(e){return(0,B.jsx)(v.Z,{placement:"bottomLeft",title:e||"--",children:(0,B.jsx)("span",{className:"current",children:e||"--"})})}},{title:"分班",dataIndex:"group_name",align:"center",width:100,fixed:"left",ellipsis:!0,render:function(e,n){return e?(0,B.jsx)(v.Z,{placement:"bottom",title:e,children:(0,B.jsx)("span",{className:"current",children:e})}):"--"}},{title:"作业状态",dataIndex:"work_status",align:"center",width:94,ellipsis:!0,fixed:"left",sorter:!0,showSorterTooltip:!1,sortOrder:"work_status"===pe.order?"desc"===pe.b_order?"descend":"ascend":null,render:function(e){return(0,B.jsx)(F.lC,{status:e})}},{title:"完成时间",align:"center",dataIndex:"achieve_time",ellipsis:!0,sorter:!0,sortOrder:"achieve_time"===pe.order?"desc"===pe.b_order?"descend":"ascend":null,render:function(e,n){return(0,B.jsx)(v.Z,{placement:"bottomLeft",title:e,children:(0,B.jsx)("span",{className:"current",children:e})})}},{title:"通过情况",align:"center",dataIndex:"achieve_info",ellipsis:!0,render:function(e,n){return(0,B.jsx)("span",{onClick:function(e){var t;e.stopPropagation(),null!==(t=we.homework_status)&&void 0!==t&&t.includes("导入")&&(Zn(n),kn(!0))},children:e||"- -"})}},{title:"最终成绩",align:"center",dataIndex:"score",ellipsis:!0,sorter:!0,sortOrder:"work_score"===pe.order?"desc"===pe.b_order?"descend":"ascend":null,render:function(e,n){return(0,B.jsx)(ie,{value:e,placeholder:"- -"})}},{title:"完成时长",dataIndex:"achieve_time_long",align:"center",sorter:!0,ellipsis:!0,sortOrder:"achieve_time_long"===pe.order?"desc"===pe.b_order?"descend":"ascend":null,render:function(e,n){return e&&"--"!=e?(0,B.jsx)(v.Z,{placement:"bottom",title:e,children:(0,B.jsx)("span",{className:"current",children:e})}):"--"}},(null===(n=we.homework_status)||void 0===n?void 0:n.includes("导入"))&&{title:"评测次数",dataIndex:"sum_evaluate_count",align:"center"},!(null!==(t=we.homework_status)&&void 0!==t&&t.includes("导入"))&&{title:(0,B.jsx)("span",{children:"评阅状态"}),align:"center",dataIndex:"has_comment",fixed:"right",ellipsis:!0,render:function(e){return e?"已评阅":"未评阅"}},{title:"操作",dataInex:"action",align:"center",fixed:"right",ellipsis:!0,className:"workListTable",render:function(e,n){var t;return null!==(t=we.homework_status)&&void 0!==t&&t.includes("导入")?(0,D.GJ)()?(0,B.jsx)("a",{onClick:function(e){e.stopPropagation(),ce({type:"classroomList/setActionTabs",payload:{key:"修改成绩",id:null==n?void 0:n.id,type:"normal"}})},children:"修改成绩"}):(0,B.jsx)("a",{onClick:function(e){e.stopPropagation(),Zn(n),kn(!0)},children:"查看"}):(0,D.dE)()?(0,B.jsx)("div",{children:"未开启"===(0,F.JL)(null==n?void 0:n.work_status)?(0,B.jsx)("span",{children:"--"}):(0,B.jsx)("a",{onClick:function(e){var t;e.stopPropagation(),!(0,D.Rm)()||null!==(t=ee.AssistantObject.hack)&&void 0!==t&&t.can_view?window.open("/classrooms/".concat(pe.coursesId,"/program_homework/").concat(pe.categoryId,"/").concat(n.id,"/").concat(n.user_id,"/comment"),"_blank"):g.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"查看"})}):(0,B.jsx)("a",{target:"_blank",onClick:function(e){var t,s;if(!(0,D.Rm)()||null!==(t=ee.AssistantObject.hack)&&void 0!==t&&t.can_view){if(e.stopPropagation(),null===(s=de.userInfo)||void 0===s||!s.professional_certification)return _.Z.confirm({title:"提示",centered:!0,content:(0,B.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,F.xg)("/account/certification")}}),!1;window.open("/classrooms/".concat(pe.coursesId,"/program_homework/").concat(pe.categoryId,"/").concat(n.id,"/").concat(n.user_id,"/comment"),"_blank")}else g.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"查看作业"})}}].filter((function(e){return!!e}));return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("section",{className:"".concat(M," minH500 bg-white pl30 pr30 pt30"),children:[(null===(s=we.homework_status)||void 0===s?void 0:s.includes("未发布"))&&(0,B.jsx)(L.Z,{}),!(null!==(r=we.homework_status)&&void 0!==r&&r.includes("未发布"))&&(0,B.jsxs)("aside",{children:[!(0,D.GJ)()&&(0,B.jsxs)("div",{className:"c-light-black font12",children:[(0,B.jsxs)("span",{children:["发布时间 ",null==we?void 0:we.publish_time]}),(0,B.jsxs)("span",{className:"ml5",children:["截止时间 ",null==we?void 0:we.end_time]}),(0,B.jsxs)("span",{className:"ml5",children:["补交时间 ",(null==we?void 0:we.late_time)||"- -"]})]}),(0,D.GJ)()&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(f.Z,{form:fe,onChange:function(){pe.page=1;var e=Object.assign({},fe.getFieldsValue());delete pe.course_group,delete pe.teacher_comment,Object.keys(e).map((function(n){switch(n){case"task_status":e[n].includes("all")||!e[n].length?(delete pe.work_status,fe.setFieldsValue(i()({},"task_status","all"))):(pe.work_status=e[n],fe.setFieldsValue(i()({},"task_status",pe.work_status)));break;case"course_group_info":e[n].includes("all")||!e[n].length?(delete pe.course_group,fe.setFieldsValue(i()({},"course_group_info","all"))):(pe.course_group=e[n],fe.setFieldsValue(i()({},"course_group_info",pe.course_group)));break;case"teacher_comment":var t;if(e[n].includes("all")||!e[n].length)delete pe.teacher_comment,fe.setFieldsValue(i()({},"teacher_comment","all"));else pe.teacher_comment=1===(null===(t=e[n])||void 0===t?void 0:t.length)?Number(e[n][0]):"",fe.setFieldsValue(i()({},"teacher_comment",e[n]))}})),bn()},initialValues:i()(i()(i()({},"task_status","all"),"course_group_info","all"),"teacher_comment","all"),children:[(null===(a=we.task_status)||void 0===a?void 0:a.length)>0&&(0,B.jsx)(f.Z.Item,{name:"task_status",children:(0,B.jsx)(j.Z.Group,{value:[],style:{width:"100%"},children:(0,B.jsxs)(w.Z,{children:[(0,B.jsx)(y.Z,{className:"font14",flex:"80px",children:"作业状态:"}),(0,B.jsx)(y.Z,{flex:"80px",children:(0,B.jsx)(j.Z,{value:"all",children:"全部"})}),(0,B.jsx)(y.Z,{flex:"1",children:we.task_status&&we.task_status.map((function(e,n){return(0,B.jsxs)(j.Z,{name:"task_status",value:e.id,children:[e.name,"(",e.count,")"]})}))})]})})}),(null===(l=we.course_group_info)||void 0===l?void 0:l.length)>0&&(0,B.jsx)(f.Z.Item,{name:"course_group_info",children:(0,B.jsx)(j.Z.Group,{style:{width:"100%"},children:(0,B.jsxs)(w.Z,{children:[(0,B.jsx)(y.Z,{className:"font14",flex:"80px",children:"分班情况:"}),(0,B.jsx)(y.Z,{flex:"80px",children:(0,B.jsx)(j.Z,{value:"all",children:"全部"})}),(0,B.jsx)(y.Z,{flex:"1",id:"divhe",style:{height:un+"px",overflow:"hidden"},children:null===(u=we.course_group_info)||void 0===u?void 0:u.map((function(e,n){return(0,B.jsxs)(j.Z,{value:e.course_group_id,children:[e.group_group_name,"(",e.count,")"]})}))}),xn&&(0,B.jsxs)("span",{onClick:function(){var e=document.getElementById("divhe").scrollHeight;mn(un>47?47:e)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"},children:[47===un?"展开":"收起",47===un?(0,B.jsx)(H.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):(0,B.jsx)(N.Z,{style:{marginBottom:"3px",marginLeft:"2px"}})]})]})})}),(null===(h=we.teacher_comment)||void 0===h?void 0:h.length)>0&&(0,B.jsx)(f.Z.Item,{name:"teacher_comment",children:(0,B.jsx)(j.Z.Group,{style:{width:"100%"},children:(0,B.jsxs)(w.Z,{children:[(0,B.jsx)(y.Z,{className:"font14",flex:"80px",children:"追加点评:"}),(0,B.jsx)(y.Z,{flex:"80px",children:(0,B.jsx)(j.Z,{value:"all",children:"全部"})}),(0,B.jsx)(y.Z,{flex:"1",children:we.teacher_comment&&we.teacher_comment.map((function(e,n){return(0,B.jsxs)(j.Z,{value:String(e.id),children:[e.name,"(",e.count,")"]})}))})]})})})]}),(0,B.jsxs)(w.Z,{align:"middle",children:[(0,B.jsx)(y.Z,{flex:"1",children:(0,B.jsxs)(w.Z,{align:"middle",children:[(0,B.jsx)(y.Z,{children:(0,B.jsx)(Z.Z.Search,{allowClear:!0,placeholder:"请输入姓名或者学号搜索",onSearch:function(e){pe.search=e.trim(),pe.page=1,bn()},style:{width:240}})}),(0,B.jsx)(y.Z,{children:(0,B.jsxs)("span",{className:"ml5",children:[(0,B.jsx)("span",{className:"c-red",children:we.work_count}),"个检索结果(",we.work_count,"个学生)"]})})]})}),(0,B.jsxs)(y.Z,{children:[(0,D.GJ)()&&!(null!==(J=we.homework_status)&&void 0!==J&&J.includes("导入"))&&(0,B.jsxs)(b.ZP,{className:"ml10",onClick:function(){ce({type:"shixunHomeworks/setActionTabs",payload:{key:"代码查重",selectArrs:we.student_works.map((function(e){return e.id})),params:pe}})},children:[(0,B.jsx)("span",{className:"".concat(U," iconfont icon-daimachazhong")}),"代码查重"]}),(0,D.GJ)()&&!(null!==(R=we.homework_status)&&void 0!==R&&R.includes("导入"))&&(0,B.jsxs)(b.ZP,{className:"ml10",onClick:In,children:[(0,B.jsx)("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"更新成绩"]}),(0,D.GJ)()&&(0,B.jsx)(I.Z,{dropdownRender:function(){var e,n;return(0,B.jsxs)(k.Z,{children:[(0,B.jsx)(k.Z.Item,{onClick:function(){ce({type:"classroomList/setActionTabs",payload:{key:"选择班级",title:"导出学生成绩",course_groups:null==we?void 0:we.course_group_info,fn:function(){(0,se.Iy)(JSON.parse(sessionStorage.all_student_works_params),"hack_work_list")}}})},children:"学生成绩"},"1"),(0,D.GJ)()&&(null==we||null===(e=we.student_works)||void 0===e?void 0:e.length)>0&&!(null!=we&&null!==(n=we.homework_status)&&void 0!==n&&n.includes("导入"))&&(0,B.jsx)(k.Z.Item,{onClick:function(){ce({type:"classroomList/setActionTabs",payload:{key:"选择班级",title:"导出编程报告",course_groups:null==we?void 0:we.course_group_info,fn:function(){var e,n;ce({type:"shixunHomeworks/setActionTabs",payload:{key:"导出编程报告",type:2}}),localStorage.setItem("dowolders","1"),W.history.push("/classrooms/".concat(null==pe?void 0:pe.coursesId,"/program_homework/").concat(pe.categoryId,"/").concat(null==we||null===(e=we.student_works)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.id,"/").concat(null==we||null===(n=we.student_works)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.user_id,"/comment"))}}})},children:"编程报告"},"3"),(0,B.jsx)(k.Z.Item,{children:(0,B.jsx)(W.Link,{to:"/classrooms/".concat(pe.coursesId,"/exportlist/hack_work_list"),children:"历史导出"})},"2")]})},className:"ml10",children:(0,B.jsxs)(b.ZP,{children:[(0,B.jsx)(A.Z,{}),"导出",(0,B.jsx)(O.Z,{})]})})]})]})]}),(0,B.jsx)(w.Z,{style:{justifyContent:"end",marginTop:"5px"},children:(0,D.GJ)()&&_e&&(0,B.jsxs)("span",{children:[(0,B.jsx)("span",{style:{color:"red"},children:"*"}),"列表中作业记录存在差异,请点击“更新成绩”按钮"]})}),(0,B.jsx)(T.Z,{className:"mt30 ".concat(X),loading:ae["shixunHomeworks/getWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:function(e){return{onClick:function(n){var t,s;null!==(t=we.homework_status)&&void 0!==t&&t.includes("导入")||(!(0,D.Rm)()||null!==(s=ee.AssistantObject.hack)&&void 0!==s&&s.can_view?(0,oe.O5)()&&window.open("/classrooms/".concat(pe.coursesId,"/program_homework/").concat(pe.categoryId,"/").concat(e.id,"/").concat(e.user_id,"/comment"),"_blank"):g.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"))}}},scroll:{x:1200},dataSource:we.student_works,columns:Sn,onChange:function(e,n,t){t.field&&(pe.order="score"===t.field?"work_score":t.field),t.order||(pe.b_order="asc"),"ascend"===t.order&&(pe.b_order="asc"),"descend"===t.order&&(pe.b_order="desc"),t.order||(pe.b_order="asc"),bn()}}),(0,B.jsx)(K,{}),(0,B.jsx)($,{}),(0,B.jsx)(G.Z,{})]}),(0,B.jsx)(_.Z,{title:"一键打回重做",open:Pe,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:d()(c()().mark((function e(){var n,t;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(2!==Ke){e.next=13;break}if(!(Ae.length<=0)){e.next=4;break}return g.ZP.info("请选择作业状态"),e.abrupt("return");case 4:if(an){e.next=7;break}return g.ZP.info("评语不能为空"),e.abrupt("return");case 7:return e.next=9,(0,V.ZP)("/api/homework_commons/".concat(pe.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:pe.categoryId,comment:an,status:Ae}});case 9:0===(n=e.sent).status&&(We(n),Ce(!1),Je(!0)),e.next=32;break;case 13:if(0!==tn&&0!==Ye){e.next=16;break}e.next=22;break;case 16:if(tn){e.next=19;break}return g.ZP.info("最低分不能为空"),e.abrupt("return");case 19:if(Ye){e.next=22;break}return g.ZP.info("最高分不能为空"),e.abrupt("return");case 22:if(!(tn>Ye)){e.next=25;break}return g.ZP.info("最高分不能大于最低分"),e.abrupt("return");case 25:if(an){e.next=28;break}return g.ZP.info("评语不能为空"),e.abrupt("return");case 28:return e.next=30,(0,V.ZP)("/api/homework_commons/".concat(pe.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:pe.categoryId,comment:an,min_score:tn,max_score:Ye}});case 30:0===(t=e.sent).status&&(We(t),Ce(!1),Je(!0));case 32:case"end":return e.stop()}}),e)}))),onCancel:function(){Ce(!1),Tn()},children:(0,B.jsx)("div",{style:{padding:"32px"},children:(0,B.jsxs)("div",{children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{style:{width:"80px"},children:"打回方式:"}),(0,B.jsxs)(S.ZP.Group,{value:Ke,onChange:function(e){qe(e.target.value)},children:[(0,B.jsx)(S.ZP,{value:1,children:"按成绩打回"}),(0,B.jsx)(S.ZP,{value:2,children:"按作业状态打回"})]})]}),1===Ke&&(0,B.jsxs)("div",{style:{display:"flex",marginTop:"20px"},children:[(0,B.jsxs)("span",{style:{width:"70px",textAlign:"end"},children:[(0,B.jsx)("span",{style:{color:"red"},children:"*"}),"最低分:"]}),(0,B.jsx)(P.Z,{min:0,max:100,value:tn,onChange:function(e){return sn(e)},style:{width:"100px"}}),(0,B.jsxs)("span",{style:{width:"80px",textAlign:"end"},children:[(0,B.jsx)("span",{style:{color:"red"},children:"*"}),"最高分:"]}),(0,B.jsx)(P.Z,{min:0,max:100,value:Ye,onChange:function(e){return $e(e)},style:{width:"100px"}})]}),2===Ke&&(0,B.jsxs)("div",{style:{display:"flex",marginTop:"20px"},children:[(0,B.jsx)("span",{style:{width:"80px"},children:"作业状态:"}),(0,B.jsx)(j.Z.Group,{onChange:function(e){Oe(o()(e))},style:{width:"100%"},children:null===(E=we.task_status)||void 0===E?void 0:E.map((function(e,n){return(0,B.jsxs)(j.Z,{name:"task_status",value:e.id,children:[e.name,"(",e.count,")"]})}))})]}),(0,B.jsxs)("div",{style:{display:"flex",marginTop:"20px"},children:[(0,B.jsxs)("span",{style:{width:"70px",textAlign:"end"},children:[(0,B.jsx)("span",{style:{color:"red"},children:"*"})," 评语:"]}),(0,B.jsx)(te.Z,{className:Q,onChange:function(e){return cn(e)},placeholder:"请填写评语"})]})]})})}),(0,B.jsx)(_.Z,{open:Ge,title:"打回确认",onOk:d()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(2!==Ke){e.next=7;break}return e.next=3,(0,V.ZP)("/api/homework_commons/".concat(pe.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:pe.categoryId,comment:an,status:Ae}});case 3:0===e.sent.status&&(g.ZP.info("打回成功"),Tn(),bn(),Je(!1)),e.next=11;break;case 7:return e.next=9,(0,V.ZP)("/api/homework_commons/".concat(pe.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:pe.categoryId,comment:an,min_score:tn,max_score:Ye}});case 9:0===e.sent.status&&(g.ZP.info("打回成功"),Tn(),bn(),Je(!1));case 11:case"end":return e.stop()}}),e)}))),onCancel:function(){Tn(),Je(!1)},children:(0,B.jsxs)("div",{style:{padding:"32px"},children:[1===Ke&&(0,B.jsxs)("span",{children:["确认将成绩在",tn,"-",Ye,"的学生进行打回重做吗?"]}),2===Ke&&(0,B.jsxs)("span",{children:["确认将作业状态为",(null===(z=we.task_status)||void 0===z?void 0:z.filter((function(e){return null==Ae?void 0:Ae.includes(e.id)})).map((function(e){return e.name})).toString())+",","的学生进行作业打回重做吗?"]}),(0,B.jsx)("br",{}),(0,B.jsxs)("span",{children:["该条件下共有",null==Ve?void 0:Ve.count,"名学生"]})]})})]}),(0,B.jsx)(ne,{}),(0,B.jsx)(re,{isShow:_n,setIsShow:kn,item:yn,coursesId:pe.coursesId,categoryId:pe.categoryId}),(0,B.jsx)("aside",{className:"tc mb50 mt30",children:(0,B.jsx)(C.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,n){pe.page=e,pe.limit=20,bn()},current:pe.page||1,defaultPageSize:20,total:we.work_count})})]})}))}}]); |