dev_local_v5_hhsly
陈博文 5 years ago
parent 883dd475e8
commit 965fa5cc79

BIN
.DS_Store vendored

Binary file not shown.

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

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{YxHR:function(D,m,_){"use strict";_.r(m);var w=_("T2oS"),F=_("W9HT"),I=_("WmNS"),y=_.n(I),L=_("9og8"),G=_("DZo9"),T=_("8z0m"),X=_("+L6B"),d=_("2/Rp"),k=_("14J3"),c=_("BMrR"),q=_("/zsF"),R=_("PArb"),ee=_("jCWc"),n=_("kPKH"),_e=_("miYZ"),U=_("tsqr"),E=_("tJVT"),W=_("CiB2"),o=_("q1tI"),e=_.n(o),j=_("xEZ4"),v=_.n(j),K=_("5bA4"),i=_("1vsH"),O=_("m3rI"),S=_("ErOA"),N=function(H){var p,P,f;Object(W.a)(H);var z=Object(o.useState)([]),h=Object(E.a)(z,2),s=h[0],M=h[1],J=Object(o.useState)(),x=Object(E.a)(J,2),t=x[0],Z=x[1],$=Object(o.useState)(!1),A=Object(E.a)($,2),V=A[0],g=A[1],Y=Object(o.useState)(!1),C=Object(E.a)(Y,2),b=C[0],B=C[1],Q={onRemove:function(){M([])},beforeUpload:function(l){if((l==null?void 0:l.size)>1024*1024*50)return U.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var r=[];return r.push(l),M([].concat(r)),!1},fileList:s,accept:".xls,.xlsx"};return e.a.createElement("div",{className:"edu-container bg-white mt40",style:{padding:40,paddingTop:0}},e.a.createElement(c.a,{className:"font14",align:"middle",gutter:[0,40],style:{marginBottom:0}},e.a.createElement(n.a,{className:"current",onClick:function(){return history.back()}},e.a.createElement(K.a,null),"\u8FD4\u56DE"),e.a.createElement(n.a,null,e.a.createElement(R.a,{style:{height:18,borderColor:"#999",marginLeft:25,marginRight:25},type:"vertical"})),e.a.createElement(n.a,null,e.a.createElement("strong",{className:"font18"},"\u5BFC\u5165\u5B66\u751F"))),e.a.createElement(R.a,{style:{margin:"0px 0px 40px 0px"}}),e.a.createElement("p",{className:v.a.selecttitle},"\u9009\u62E9\u6587\u4EF6"),e.a.createElement(c.a,{gutter:[16,16]},e.a.createElement(n.a,{span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),e.a.createElement(n.a,null,e.a.createElement(T.a,Q,e.a.createElement(d.a,{ghost:!0,type:"primary",style:{width:"116px",height:"40px"}},"\u9009\u62E9\u6587\u4EF6")))),e.a.createElement(c.a,{gutter:[16,16]},e.a.createElement(n.a,{span:2,style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),e.a.createElement(n.a,{span:22},e.a.createElement("span",null,"1.\u4E0A\u4F20\u6587\u4EF6\u6570\u636E\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC72000\u6761\u3002 ",e.a.createElement("br",null),"2.\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx\u6216.xls\u7C7B\u578B\u7684\u6587\u4EF6\u3002 ",e.a.createElement("br",null),"3.\u9700\u4E0A\u4F20\u6307\u5B9A\u6A21\u677F\u7684\u6587\u4EF6\u3002",e.a.createElement("span",{style:{cursor:"pointer",color:"#1890ff"},onClick:function(){Object(i.o)("",Object(i.K)({url:O.a.API_SERVER+"/api/common_exercises/students/down_template",query:{}}))}},"\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248")))),e.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},e.a.createElement(d.a,{type:"primary",style:{width:"116px",height:"40px",borderRadius:"4px"},onClick:Object(L.a)(y.a.mark(function u(){var l,r;return y.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!((s==null?void 0:s.length)<=0)){a.next=3;break}return U.b.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),a.abrupt("return");case 3:return g(!1),B(!0),l=new FormData,l.append("file",s[0]),a.next=9,Object(S.a)("/api/common_exercises/students/import_students.json",{method:"post",body:l},!0);case 9:if(r=a.sent,B(!1),!(r.status===-1)){a.next=13;break}return a.abrupt("return");case 13:g(!0),Z(r);case 15:case"end":return a.stop()}},u)}))},"\u786E\u8BA4\u4E0A\u4F20")),V&&!b&&e.a.createElement("div",null,e.a.createElement("p",{className:v.a.selecttitle},"\u4E0A\u4F20\u7ED3\u679C"),e.a.createElement("div",{style:{fontSize:"16px",textAlign:"center",display:"flex"}},e.a.createElement("span",{style:{flex:"1",lineHeight:"30px"}},"\u4E0A\u4F20\u6210\u529F",e.a.createElement("span",{style:{color:"#FA6400"}},t==null?void 0:t.success),"\u6761\u6570\u636E",!!(t==null||((p=t.fail)===null||p===void 0)?void 0:p.length)&&e.a.createElement("span",null,"\uFF0C\u5931\u8D25",e.a.createElement("span",{style:{color:"#FA6400"}},t==null||((P=t.fail)===null||P===void 0)?void 0:P.length),"\u6761\u6570\u636E")),!!(t==null||((f=t.fail)===null||f===void 0)?void 0:f.length)&&e.a.createElement(d.a,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:function(){Object(i.o)("",Object(i.K)({url:O.a.API_SERVER+(t==null?void 0:t.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))),e.a.createElement(F.a,{tip:"\u4E0A\u4F20\u4E2D",style:{width:"100%",marginTop:26},spinning:b}))};m.default=N},xEZ4:function(D,m,_){D.exports={flex_box_center:"flex_box_center___uMrRr",flex_space_between:"flex_space_between___3UIpw",flex_box_vertical_center:"flex_box_vertical_center___NUA2a",flex_box_center_end:"flex_box_center_end___1a-yj",flex_box_column:"flex_box_column___1WNtC",selecttitle:"selecttitle___1Yri1"}}}]);

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{YxHR:function(D,m,_){"use strict";_.r(m);var w=_("T2oS"),B=_("W9HT"),F=_("WmNS"),y=_.n(F),I=_("9og8"),G=_("DZo9"),L=_("8z0m"),X=_("+L6B"),d=_("2/Rp"),k=_("14J3"),c=_("BMrR"),q=_("/zsF"),R=_("PArb"),ee=_("jCWc"),n=_("kPKH"),_e=_("miYZ"),U=_("tsqr"),E=_("tJVT"),T=_("CiB2"),o=_("q1tI"),e=_.n(o),W=_("xEZ4"),v=_.n(W),j=_("5bA4"),i=_("1vsH"),O=_("m3rI"),K=_("ErOA"),S=function(N){var p,P,f;Object(T.a)(N);var H=Object(o.useState)([]),h=Object(E.a)(H,2),s=h[0],M=h[1],z=Object(o.useState)(),x=Object(E.a)(z,2),t=x[0],J=x[1],Z=Object(o.useState)(!1),A=Object(E.a)(Z,2),$=A[0],V=A[1],Y=Object(o.useState)(!1),g=Object(E.a)(Y,2),C=g[0],b=g[1],Q={onRemove:function(){M([])},beforeUpload:function(l){if((l==null?void 0:l.size)>1024*1024*50)return U.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var r=[];return r.push(l),M([].concat(r)),!1},fileList:s,accept:".xls,.xlsx"};return e.a.createElement("div",{className:"edu-container bg-white mt40",style:{padding:40,paddingTop:0}},e.a.createElement(c.a,{className:"font14",align:"middle",gutter:[0,40],style:{marginBottom:0}},e.a.createElement(n.a,{className:"current",onClick:function(){return history.back()}},e.a.createElement(j.a,null),"\u8FD4\u56DE"),e.a.createElement(n.a,null,e.a.createElement(R.a,{style:{height:18,borderColor:"#999",marginLeft:25,marginRight:25},type:"vertical"})),e.a.createElement(n.a,null,e.a.createElement("strong",{className:"font18"},"\u5BFC\u5165\u5B66\u751F"))),e.a.createElement(R.a,{style:{margin:"0px 0px 40px 0px"}}),e.a.createElement("p",{className:v.a.selecttitle},"\u9009\u62E9\u6587\u4EF6"),e.a.createElement(c.a,{gutter:[16,16]},e.a.createElement(n.a,{span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),e.a.createElement(n.a,null,e.a.createElement(L.a,Q,e.a.createElement(d.a,{ghost:!0,type:"primary",style:{width:"116px",height:"40px"}},"\u9009\u62E9\u6587\u4EF6")))),e.a.createElement(c.a,{gutter:[16,16]},e.a.createElement(n.a,{span:2,style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),e.a.createElement(n.a,{span:22},e.a.createElement("span",null,"1.\u4E0A\u4F20\u6587\u4EF6\u6570\u636E\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC72000\u6761\u3002 ",e.a.createElement("br",null),"2.\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx\u6216.xls\u7C7B\u578B\u7684\u6587\u4EF6\u3002 ",e.a.createElement("br",null),"3.\u9700\u4E0A\u4F20\u6307\u5B9A\u6A21\u677F\u7684\u6587\u4EF6\u3002",e.a.createElement("span",{style:{cursor:"pointer",color:"#1890ff"},onClick:function(){Object(i.o)("",Object(i.K)({url:O.a.API_SERVER+"/api/common_exercises/students/down_template",query:{}}))}},"\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248")))),e.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},e.a.createElement(d.a,{type:"primary",style:{width:"116px",height:"40px",borderRadius:"4px"},onClick:Object(I.a)(y.a.mark(function u(){var l,r;return y.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!((s==null?void 0:s.length)<=0)){a.next=3;break}return U.b.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),a.abrupt("return");case 3:return b(!0),l=new FormData,l.append("file",s[0]),a.next=8,Object(K.a)("/api/common_exercises/students/import_students.json",{method:"post",body:l},!0);case 8:if(r=a.sent,b(!1),!(r.status===-1)){a.next=12;break}return a.abrupt("return");case 12:V(!0),J(r);case 14:case"end":return a.stop()}},u)}))},"\u786E\u8BA4\u4E0A\u4F20")),$&&!C&&e.a.createElement("div",null,e.a.createElement("p",{className:v.a.selecttitle},"\u4E0A\u4F20\u7ED3\u679C"),e.a.createElement("div",{style:{fontSize:"16px",textAlign:"center",display:"flex"}},e.a.createElement("span",{style:{flex:"1",lineHeight:"30px"}},"\u4E0A\u4F20\u6210\u529F",e.a.createElement("span",{style:{color:"#FA6400"}},t==null?void 0:t.success),"\u6761\u6570\u636E",!!(t==null||((p=t.fail)===null||p===void 0)?void 0:p.length)&&e.a.createElement("span",null,"\uFF0C\u5931\u8D25",e.a.createElement("span",{style:{color:"#FA6400"}},t==null||((P=t.fail)===null||P===void 0)?void 0:P.length),"\u6761\u6570\u636E")),!!(t==null||((f=t.fail)===null||f===void 0)?void 0:f.length)&&e.a.createElement(d.a,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:function(){Object(i.o)("",Object(i.K)({url:O.a.API_SERVER+(t==null?void 0:t.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))),e.a.createElement(B.a,{tip:"\u4E0A\u4F20\u4E2D",style:{width:"100%",marginTop:26},spinning:C}))};m.default=S},xEZ4:function(D,m,_){D.exports={flex_box_center:"flex_box_center___uMrRr",flex_space_between:"flex_space_between___3UIpw",flex_box_vertical_center:"flex_box_vertical_center___NUA2a",flex_box_center_end:"flex_box_center_end___1a-yj",flex_box_column:"flex_box_column___1WNtC",selecttitle:"selecttitle___1Yri1"}}}]);

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
Loading…
Cancel
Save