parent
3cd5e2c3d8
commit
424406fa42
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +0,0 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[154],{J7Bx:function(n,o,e){n.exports={flex_box_center:"flex_box_center___3CHrk",flex_space_between:"flex_space_between___3eqZy",flex_box_vertical_center:"flex_box_vertical_center___2Fodu",flex_box_center_end:"flex_box_center_end___2axwV",flex_box_column:"flex_box_column___1OZ1O",wrap:"wrap___ljnNa"}},"bDv/":function(n,o,e){"use strict";e.r(o);var M=e("+L6B"),i=e("2/Rp"),m=e("PpiC"),a=e("q1tI"),t=e.n(a),c=e("J7Bx"),d=e.n(c),E=e("w2Nz"),p=e.n(E),r=e("bntm"),x=e("55Ip"),f=e("9kvl"),P=function(_){var s,O=_.match,u=_.user,b=Object(m.a)(_,["match","user"]);return Object(a.useEffect)(function(){Object(r.a)()&&Object(r.b)()},[]),t.a.createElement("div",{className:d.a.wrap},t.a.createElement("img",{src:p.a,alt:""}),t.a.createElement("div",null,t.a.createElement("span",null,u==null||((s=u.userInfo)===null||s===void 0)?void 0:s.username),t.a.createElement("span",null,"\u4EA4\u5377\u6210\u529F")),t.a.createElement(i.a,{type:"primary"},t.a.createElement(x.Link,{to:"/exam/studentClient"},"\u8FD4\u56DE\u8003\u8BD5\u5217\u8868")))};o.default=Object(f.a)(function(l){var _=l.user;return{user:_}})(P)},w2Nz:function(n,o,e){n.exports=e.p+"static/succeed.22b675c3.png"}}]);
|
||||
@ -0,0 +1 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[154],{J7Bx:function(a,r,e){a.exports={flex_box_center:"flex_box_center___3CHrk",flex_space_between:"flex_space_between___3eqZy",flex_box_vertical_center:"flex_box_vertical_center___2Fodu",flex_box_center_end:"flex_box_center_end___2axwV",flex_box_column:"flex_box_column___1OZ1O",wrap:"wrap___ljnNa"}},"bDv/":function(a,r,e){"use strict";e.r(r);var D=e("WmNS"),f=e.n(D),$=e("+L6B"),g=e("2/Rp"),M=e("9og8"),U=e("tJVT"),R=e("PpiC"),l=e("q1tI"),o=e.n(l),C=e("J7Bx"),A=e.n(C),B=e("w2Nz"),I=e.n(B),P=e("bntm"),j=e("55Ip"),L=e("9kvl"),T=e("ErOA"),W=function(n){var i,d,m,c,E,p,w=n.match,v=n.user,_=n.location,z=Object(R.a)(n,["match","user","location"]),K=Object(l.useState)({}),O=Object(U.a)(K,2),t=O[0],F=O[1];Object(l.useEffect)(function(){Object(P.a)()&&Object(P.b)()},[]),Object(l.useEffect)(function(){var s;(_==null||((s=_.query)===null||s===void 0)?void 0:s.examId)&&S()},[_==null||((i=_.query)===null||i===void 0)?void 0:i.examId]);function S(){return b.apply(this,arguments)}function b(){return b=Object(M.a)(f.a.mark(function s(){var x,h;return f.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,Object(T.a)("/api/students/exercises/".concat(_==null||((x=_.query)===null||x===void 0)?void 0:x.examId,"/start_answer.json"),{method:"get"});case 2:h=u.sent,F(h);case 4:case"end":return u.stop()}},s)})),b.apply(this,arguments)}return o.a.createElement("div",{className:A.a.wrap},o.a.createElement("img",{src:I.a,alt:""}),o.a.createElement("div",null,o.a.createElement("span",null,v==null||((d=v.userInfo)===null||d===void 0)?void 0:d.username),o.a.createElement("span",null,"\u4EA4\u5377\u6210\u529F")),(_==null||((m=_.query)===null||m===void 0)?void 0:m.examId)&&(t==null||((c=t.exercise)===null||c===void 0)?void 0:c.used_screen_num)>=(t==null||((E=t.exercise)===null||E===void 0)?void 0:E.screen_num)&&o.a.createElement("span",{style:{color:"red",marginBottom:"30px",fontWeight:500,fontSize:16}},"\u4F60\u672C\u573A\u8003\u8BD5\u5207\u5C4F\u8FBE\u5230",t==null||((p=t.exercise)===null||p===void 0)?void 0:p.used_screen_num,"\u6B21\uFF0C\u7CFB\u7EDF\u5DF2\u5F3A\u5236\u4EA4\u5377"),o.a.createElement(g.a,{type:"primary"},o.a.createElement(j.Link,{to:"/exam/studentClient"},"\u8FD4\u56DE\u8003\u8BD5\u5217\u8868")))};r.default=Object(L.a)(function(y){var n=y.user;return{user:n}})(W)},w2Nz:function(a,r,e){a.exports=e.p+"static/succeed.22b675c3.png"}}]);
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue