dev_local_v5_hhsly
parent
42c8f217e6
commit
3975f74fc1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[144],{"9SwW":function(p,u,e){"use strict";var S=e("/zsF"),f=e("PArb"),D=e("q1tI"),o=e.n(D),c=e("9kvl"),b=e("Z+Na"),s=e.n(b),g=function(a){var U=a.path,l=a.title,P=a.subTitle,v=a.style,M=v===void 0?{}:v,O=a.className,R=O===void 0?"":O;return o.a.createElement("div",{className:"".concat(s.a.head," ").concat(R),style:M},o.a.createElement("span",{className:s.a.s1,onClick:function(){return c.c.push(U)}},o.a.createElement("i",{className:"icon-fanhui2"}),"\u8FD4\u56DE"),l&&o.a.createElement(f.a,{className:s.a.s2,type:"vertical"}),l&&o.a.createElement("span",{className:s.a.s3},l),P&&o.a.createElement("span",{className:s.a.s4},P))};u.a=g},"VXk+":function(p,u,e){p.exports={flex_box_center:"flex_box_center___309E6",flex_space_between:"flex_space_between___3SLPI",flex_box_vertical_center:"flex_box_vertical_center___2BLzO",flex_box_center_end:"flex_box_center_end___1alRQ",flex_box_column:"flex_box_column___3w7Fm",wrap:"wrap___2ghHE",head:"head___3RuvJ",title:"title___UtLwq",customTable:"customTable___IEARD",row:"row___3Mb3e"}},"Veu+":function(p,u,e){"use strict";e.r(u);var S=e("g9YV"),f=e("wCAj"),D=e("WmNS"),o=e.n(D),c=e("k1fw"),b=e("9og8"),s=e("tJVT"),g=e("PpiC"),i=e("q1tI"),a=e.n(i),U=e("VXk+"),l=e.n(U),P=e("wd/R"),v=e.n(P),M=e("ErOA"),O=e("9SwW"),R=function(I){var y,x,r=I.match,k=Object(g.a)(I,["match"]),j={page:1,per_page:10,total:0},$=Object(i.useState)([]),C=Object(s.a)($,2),H=C[0],z=C[1],J=Object(i.useState)(!0),A=Object(s.a)(J,2),V=A[0],L=A[1],Y=Object(i.useState)(j),B=Object(s.a)(Y,2),E=B[0],W=B[1],F=Object(i.useState)(""),K=Object(s.a)(F,2),X=K[0],Z=K[1];Object(i.useEffect)(function(){var t;if(r==null||((t=r.params)===null||t===void 0)?void 0:t.id){w();return}},[r==null||((y=r.params)===null||y===void 0)?void 0:y.id]);var w=function(){var t=Object(b.a)(o.a.mark(function _(){var n,d,m,T=arguments;return o.a.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return d=T.length>0&&T[0]!==void 0?T[0]:j,L(!0),h.next=4,Object(M.a)("/api/students/exercises/".concat(r==null||((n=r.params)===null||n===void 0)?void 0:n.id,"/student_scores"),{method:"get",params:d});case 4:m=h.sent,m.exercise_name&&(L(!1),z(m.users),Z(m.exercise_name),W(Object(c.a)(Object(c.a)({},d),{},{total:m==null?void 0:m.count})));case 6:case"end":return h.stop()}},_)}));return function(){return t.apply(this,arguments)}}(),Q=[{title:"\u5E8F\u53F7",dataIndex:"id",render:function(_,n,d){return E.per_page*(E.page-1)+d+1},width:80,align:"center"},{title:"\u5B66\u53F7",dataIndex:"student_id",render:function(_,n){return _||"--"},align:"center",width:120,ellipsis:!0},{title:"\u5206\u7EC4",dataIndex:"student_group",render:function(_,n){return _||"--"},align:"center",width:146},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",render:function(_,n){return _?v()(_).format("YYYY-MM-DD HH:mm"):"--"},align:"center",width:146},{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",render:function(_,n){return _==="0.0"?0:_},align:"center",ellipsis:!0},{title:"\u4E3B\u89C2\u9898\u5F97\u5206",dataIndex:"subjective_score",render:function(_,n){return _==="0.0"?0:_},align:"center",ellipsis:!0},{title:"\u6700\u7EC8\u5F97\u5206",dataIndex:"score",render:function(_,n){return _==="0.0"?0:_},align:"center",ellipsis:!0}],G=function(_,n){var d=Object(c.a)(Object(c.a)({},E),{},{page:_,per_page:n});W(d),w(d)};return a.a.createElement("div",{className:l.a.wrap},a.a.createElement(O.a,{path:"/exam/studentAnswer?state=check&examId=".concat(r==null||((x=r.params)===null||x===void 0)?void 0:x.id),title:"\u6210\u7EE9\u5217\u8868",className:"pl40"}),a.a.createElement("div",{className:l.a.title},X),a.a.createElement(f.a,{className:l.a.customTable,dataSource:H,bordered:!1,rowKey:function(_){return _.id},columns:Q,rowClassName:l.a.row,loading:V,pagination:{pageSize:E.per_page,total:E.total,current:E.page,onChange:G,showQuickJumper:!0,hideOnSinglePage:!1,pageSizeOptions:["10","20","50","100","200"],showSizeChanger:!0,position:["bottomCenter"],showTotal:function(_){return a.a.createElement("span",{className:"mr10"},"\u5171",a.a.createElement("span",{className:"c-orange"},_),"\u6761\u6570\u636E")}}}))};u.default=R},"Z+Na":function(p,u,e){p.exports={head:"head___3c7uj",s1:"s1___1kTbv",s2:"s2___1Omm1",s3:"s3___3TfZU",s4:"s4___3XMOl"}}}]);
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[144],{"9SwW":function(p,u,e){"use strict";var S=e("/zsF"),f=e("PArb"),D=e("q1tI"),o=e.n(D),c=e("9kvl"),b=e("Z+Na"),s=e.n(b),g=function(a){var U=a.path,l=a.title,h=a.subTitle,v=a.style,M=v===void 0?{}:v,O=a.className,R=O===void 0?"":O;return o.a.createElement("div",{className:"".concat(s.a.head," ").concat(R),style:M},o.a.createElement("span",{className:s.a.s1,onClick:function(){return c.c.push(U)}},o.a.createElement("i",{className:"icon-fanhui2"}),"\u8FD4\u56DE"),l&&o.a.createElement(f.a,{className:s.a.s2,type:"vertical"}),l&&o.a.createElement("span",{className:s.a.s3},l),h&&o.a.createElement("span",{className:s.a.s4},h))};u.a=g},"VXk+":function(p,u,e){p.exports={flex_box_center:"flex_box_center___309E6",flex_space_between:"flex_space_between___3SLPI",flex_box_vertical_center:"flex_box_vertical_center___2BLzO",flex_box_center_end:"flex_box_center_end___1alRQ",flex_box_column:"flex_box_column___3w7Fm",wrap:"wrap___2ghHE",head:"head___3RuvJ",title:"title___UtLwq",customTable:"customTable___IEARD",row:"row___3Mb3e"}},"Veu+":function(p,u,e){"use strict";e.r(u);var S=e("g9YV"),f=e("wCAj"),D=e("WmNS"),o=e.n(D),c=e("k1fw"),b=e("9og8"),s=e("tJVT"),g=e("PpiC"),i=e("q1tI"),a=e.n(i),U=e("VXk+"),l=e.n(U),h=e("wd/R"),v=e.n(h),M=e("ErOA"),O=e("9SwW"),R=function(I){var y,x,r=I.match,k=Object(g.a)(I,["match"]),j={page:1,per_page:10,total:0},$=Object(i.useState)([]),C=Object(s.a)($,2),H=C[0],z=C[1],J=Object(i.useState)(!0),A=Object(s.a)(J,2),V=A[0],L=A[1],Y=Object(i.useState)(j),B=Object(s.a)(Y,2),E=B[0],W=B[1],F=Object(i.useState)(""),K=Object(s.a)(F,2),X=K[0],Z=K[1];Object(i.useEffect)(function(){var t;if(r==null||((t=r.params)===null||t===void 0)?void 0:t.id){w();return}},[r==null||((y=r.params)===null||y===void 0)?void 0:y.id]);var w=function(){var t=Object(b.a)(o.a.mark(function _(){var n,d,m,T=arguments;return o.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return d=T.length>0&&T[0]!==void 0?T[0]:j,L(!0),P.next=4,Object(M.a)("/api/students/exercises/".concat(r==null||((n=r.params)===null||n===void 0)?void 0:n.id,"/student_scores"),{method:"get",params:d});case 4:m=P.sent,m.exercise_name&&(L(!1),z(m.users),Z(m.exercise_name),W(Object(c.a)(Object(c.a)({},d),{},{total:m==null?void 0:m.count})));case 6:case"end":return P.stop()}},_)}));return function(){return t.apply(this,arguments)}}(),Q=[{title:"\u5E8F\u53F7",dataIndex:"id",render:function(_,n,d){return E.per_page*(E.page-1)+d+1},width:80,align:"center"},{title:"\u5B66\u53F7",dataIndex:"student_id",render:function(_,n){return _||"--"},align:"center",width:120,ellipsis:!0},{title:"\u5206\u7EC4",dataIndex:"student_group",render:function(_,n){return _||"--"},align:"center",width:146},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",render:function(_,n){return _?v()(_).format("YYYY-MM-DD HH:mm"):"--"},align:"center",width:146},{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",render:function(_,n){return _==="0.0"?0:_},align:"center",ellipsis:!0},{title:"\u4E3B\u89C2\u9898\u5F97\u5206",dataIndex:"subjective_score",render:function(_,n){return _==="0.0"?0:_},align:"center",ellipsis:!0},{title:"\u6700\u7EC8\u5F97\u5206",dataIndex:"score",render:function(_,n){return _==="0.0"?0:_},align:"center",ellipsis:!0}],G=function(_,n){var d=Object(c.a)(Object(c.a)({},E),{},{page:_,per_page:n});W(d),w(d)};return a.a.createElement("div",{className:l.a.wrap},a.a.createElement(O.a,{path:"/exam/studentAnswer?examId=".concat(r==null||((x=r.params)===null||x===void 0)?void 0:x.id),title:"\u6210\u7EE9\u5217\u8868",className:"pl40"}),a.a.createElement("div",{className:l.a.title},X),a.a.createElement(f.a,{className:l.a.customTable,dataSource:H,bordered:!1,rowKey:function(_){return _.id},columns:Q,rowClassName:l.a.row,loading:V,pagination:{pageSize:E.per_page,total:E.total,current:E.page,onChange:G,showQuickJumper:!0,hideOnSinglePage:!1,pageSizeOptions:["10","20","50","100","200"],showSizeChanger:!0,position:["bottomCenter"],showTotal:function(_){return a.a.createElement("span",{className:"mr10"},"\u5171",a.a.createElement("span",{className:"c-orange"},_),"\u6761\u6570\u636E")}}}))};u.default=R},"Z+Na":function(p,u,e){p.exports={head:"head___3c7uj",s1:"s1___1kTbv",s2:"s2___1Omm1",s3:"s3___3TfZU",s4:"s4___3XMOl"}}}]);
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue