dev_local_exercise
dingyongkang 4 years ago
parent 424406fa42
commit 63eab45e24

BIN
.DS_Store vendored

Binary file not shown.

@ -93,6 +93,6 @@
gtag('config', 'UA-198293321-1');
</script> -->
<script src="/react/build/umi.683b98e1.js"></script>
<script src="/react/build/umi.a83937af.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

@ -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,t=n.location,z=Object(R.a)(n,["match","user","location"]),K=Object(l.useState)({}),h=Object(U.a)(K,2),_=h[0],F=h[1];Object(l.useEffect)(function(){Object(P.a)()&&Object(P.b)()},[]),Object(l.useEffect)(function(){var s;(t==null||((s=t.query)===null||s===void 0)?void 0:s.examId)&&S()},[t==null||((i=t.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,y;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(t==null||((x=t.query)===null||x===void 0)?void 0:x.examId,"/start_answer.json"),{method:"get"});case 2:y=u.sent,F(y);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=_.exercise)===null||m===void 0)?void 0:m.screen_open)&&(_==null||((c=_.exercise)===null||c===void 0)?void 0:c.used_screen_num)>=(_==null||((E=_.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",_==null||((p=_.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(O){var n=O.user;return{user:n}})(W)},w2Nz:function(a,r,e){a.exports=e.p+"static/succeed.22b675c3.png"}}]);

@ -1 +0,0 @@
(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…
Cancel
Save