dev_local_v5_hhsly
parent
c46ad8b00a
commit
4b380e8a8b
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
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
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
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
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
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
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[145],{"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(r){var U=r.path,l=r.title,h=r.subTitle,v=r.style,M=v===void 0?{}:v,O=r.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"),r=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(T){var y,x,n=T.match,k=Object(g.a)(T,["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 _;if(n==null||((_=n.params)===null||_===void 0)?void 0:_.id){w();return}},[n==null||((y=n.params)===null||y===void 0)?void 0:y.id]);var w=function(){var _=Object(b.a)(o.a.mark(function t(){var a,d,m,I=arguments;return o.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return d=I.length>0&&I[0]!==void 0?I[0]:j,L(!0),P.next=4,Object(M.a)("/api/students/exercises/".concat(n==null||((a=n.params)===null||a===void 0)?void 0:a.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()}},t)}));return function(){return _.apply(this,arguments)}}(),Q=[{title:"\u5E8F\u53F7",dataIndex:"id",render:function(t,a,d){return E.per_page*(E.page-1)+d+1},width:80,align:"center"},{title:"\u59D3\u540D",dataIndex:"user_name",render:function(t,a){return t||"--"},align:"center"},{title:"\u5B66\u53F7",dataIndex:"student_id",render:function(t,a){return t||"--"},align:"center",width:120},{title:"\u5206\u73ED",dataIndex:"student_group",render:function(t,a){return t||"--"},align:"center"},{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"end_at",render:function(t,a){return t?v()(t).format("YYYY-MM-DD HH:mm"):"--"},align:"center",width:146},{title:"\u5BA2\u89C2\u9898\u5F97\u5206",dataIndex:"objective_score",render:function(t,a){return t==="0.0"?0:t},align:"center",ellipsis:!0},{title:"\u4E3B\u89C2\u9898\u5F97\u5206",dataIndex:"subjective_score",render:function(t,a){return t==="0.0"?0:t},align:"center",ellipsis:!0},{title:"\u6700\u7EC8\u5F97\u5206",dataIndex:"score",render:function(t,a){return t==="0.0"?0:t},align:"center",ellipsis:!0}],G=function(t,a){var d=Object(c.a)(Object(c.a)({},E),{},{page:t,per_page:a});W(d),w(d)};return r.a.createElement("div",{className:l.a.wrap},r.a.createElement(O.a,{path:"/exam/studentAnswer?examId=".concat(n==null||((x=n.params)===null||x===void 0)?void 0:x.id),title:"\u6210\u7EE9\u5217\u8868",className:"pl40"}),r.a.createElement("div",{className:l.a.title},X),r.a.createElement(f.a,{className:l.a.customTable,dataSource:H,bordered:!1,rowKey:function(t){return t.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(t){return r.a.createElement("span",{className:"mr10"},"\u5171",r.a.createElement("span",{className:"c-orange"},t),"\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"}}}]);
|
||||
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[145],{"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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue