dev_local_v5_hhsly
837816638@qq.com 5 years ago
parent c08f1888b4
commit 6a05c39b46

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

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[126],{YxHR:function(P,m,_){"use strict";_.r(m);var M=_("WmNS"),f=_.n(M),A=_("9og8"),H=_("DZo9"),C=_("8z0m"),J=_("+L6B"),d=_("2/Rp"),Z=_("14J3"),i=_("BMrR"),V=_("/zsF"),y=_("PArb"),Y=_("jCWc"),l=_("kPKH"),w=_("miYZ"),R=_("tsqr"),c=_("tJVT"),F=_("CiB2"),s=_("q1tI"),e=_.n(s),g=_("xEZ4"),D=_.n(g),B=_("5bA4"),E=_("1vsH"),U=_("m3rI"),b=_("ErOA"),I=function(L){var p;Object(F.a)(L);var T=Object(s.useState)([]),O=Object(c.a)(T,2),r=O[0],v=O[1],W=Object(s.useState)(),h=Object(c.a)(W,2),t=h[0],K=h[1],j=Object(s.useState)(!1),x=Object(c.a)(j,2),S=x[0],z=x[1],N={onRemove:function(){v([])},beforeUpload:function(a){if((a==null?void 0:a.size)>1024*1024*50)return R.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var o=[];return o.push(a),v([].concat(o)),!1},fileList:r,accept:".xls,.xlsx"};return e.a.createElement("div",{className:"edu-container bg-white mt40",style:{padding:40,paddingTop:0}},e.a.createElement(i.a,{className:"font14",align:"middle",gutter:[0,40],style:{marginBottom:0}},e.a.createElement(l.a,{className:"current",onClick:function(){return history.back()}},e.a.createElement(B.a,null),"\u8FD4\u56DE"),e.a.createElement(l.a,null,e.a.createElement(y.a,{style:{height:18,borderColor:"#999",marginLeft:25,marginRight:25},type:"vertical"})),e.a.createElement(l.a,null,e.a.createElement("strong",{className:"font18"},"\u5BFC\u5165\u5B66\u751F"))),e.a.createElement(y.a,{style:{margin:"0px 0px 40px 0px"}}),e.a.createElement("p",{className:D.a.selecttitle},"\u9009\u62E9\u6587\u4EF6"),e.a.createElement(i.a,{gutter:[16,16]},e.a.createElement(l.a,{span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),e.a.createElement(l.a,{span:22},e.a.createElement(C.a,N,e.a.createElement(d.a,{ghost:!0,type:"primary",style:{width:"116px",height:"40px"}},"\u9009\u62E9\u6587\u4EF6")))),e.a.createElement(i.a,{gutter:[16,16]},e.a.createElement(l.a,{span:2,style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),e.a.createElement(l.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(E.n)("",Object(E.H)({url:U.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(A.a)(f.a.mark(function u(){var a,o;return f.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!((r==null?void 0:r.length)<=0)){n.next=3;break}return R.b.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),n.abrupt("return");case 3:return z(!0),a=new FormData,a.append("file",r[0]),n.next=8,Object(b.a)("/api/common_exercises/students/import_students.json",{method:"post",body:a},!0);case 8:o=n.sent,K(o);case 10:case"end":return n.stop()}},u)}))},"\u786E\u8BA4\u4E0A\u4F20")),S&&e.a.createElement("div",null,e.a.createElement("p",{className:D.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"}}," \u672C\u6B21\u4E0A\u4F20 \u65B0\u589E",e.a.createElement("span",{style:{color:"#FA6400"}},t==null?void 0:t.success),"\u4F4D\u5B66\u751F\uFF0C\u4E0A\u4F20\u6210\u529F",e.a.createElement("span",{style:{color:"#FA6400"}},t==null?void 0:t.success),"\u6761\u6570\u636E\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"),e.a.createElement(d.a,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:function(){Object(E.n)("",Object(E.H)({url:U.a.API_SERVER+(t==null?void 0:t.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))))};m.default=I},xEZ4:function(P,m,_){P.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([[126],{YxHR:function(P,m,_){"use strict";_.r(m);var M=_("WmNS"),f=_.n(M),A=_("9og8"),H=_("DZo9"),C=_("8z0m"),J=_("+L6B"),d=_("2/Rp"),Z=_("14J3"),i=_("BMrR"),V=_("/zsF"),y=_("PArb"),Y=_("jCWc"),l=_("kPKH"),w=_("miYZ"),R=_("tsqr"),c=_("tJVT"),F=_("CiB2"),s=_("q1tI"),e=_.n(s),g=_("xEZ4"),D=_.n(g),B=_("5bA4"),E=_("1vsH"),U=_("m3rI"),b=_("ErOA"),I=function(L){var p;Object(F.a)(L);var T=Object(s.useState)([]),O=Object(c.a)(T,2),r=O[0],v=O[1],W=Object(s.useState)(),h=Object(c.a)(W,2),t=h[0],K=h[1],j=Object(s.useState)(!1),x=Object(c.a)(j,2),S=x[0],z=x[1],N={onRemove:function(){v([])},beforeUpload:function(a){if((a==null?void 0:a.size)>1024*1024*50)return R.b.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;var o=[];return o.push(a),v([].concat(o)),!1},fileList:r,accept:".xls,.xlsx"};return e.a.createElement("div",{className:"edu-container bg-white mt40",style:{padding:40,paddingTop:0}},e.a.createElement(i.a,{className:"font14",align:"middle",gutter:[0,40],style:{marginBottom:0}},e.a.createElement(l.a,{className:"current",onClick:function(){return history.back()}},e.a.createElement(B.a,null),"\u8FD4\u56DE"),e.a.createElement(l.a,null,e.a.createElement(y.a,{style:{height:18,borderColor:"#999",marginLeft:25,marginRight:25},type:"vertical"})),e.a.createElement(l.a,null,e.a.createElement("strong",{className:"font18"},"\u5BFC\u5165\u5B66\u751F"))),e.a.createElement(y.a,{style:{margin:"0px 0px 40px 0px"}}),e.a.createElement("p",{className:D.a.selecttitle},"\u9009\u62E9\u6587\u4EF6"),e.a.createElement(i.a,{gutter:[16,16]},e.a.createElement(l.a,{span:2,style:{height:"40px",lineHeight:"40px",textAlign:"end"}},"\u6587\u4EF6\u4E0A\u4F20\uFF1A"),e.a.createElement(l.a,{span:22},e.a.createElement(C.a,N,e.a.createElement(d.a,{ghost:!0,type:"primary",style:{width:"116px",height:"40px"}},"\u9009\u62E9\u6587\u4EF6")))),e.a.createElement(i.a,{gutter:[16,16]},e.a.createElement(l.a,{span:2,style:{textAlign:"end"}},"\u6CE8\u610F\uFF1A"),e.a.createElement(l.a,{span:22},e.a.createElement("span",null,"1\u3001\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(E.n)("",Object(E.H)({url:U.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(A.a)(f.a.mark(function u(){var a,o;return f.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!((r==null?void 0:r.length)<=0)){n.next=3;break}return R.b.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),n.abrupt("return");case 3:return z(!0),a=new FormData,a.append("file",r[0]),n.next=8,Object(b.a)("/api/common_exercises/students/import_students.json",{method:"post",body:a},!0);case 8:o=n.sent,K(o);case 10:case"end":return n.stop()}},u)}))},"\u786E\u8BA4\u4E0A\u4F20")),S&&e.a.createElement("div",null,e.a.createElement("p",{className:D.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"}}," \u672C\u6B21\u4E0A\u4F20 \u65B0\u589E",e.a.createElement("span",{style:{color:"#FA6400"}},t==null?void 0:t.success),"\u4F4D\u5B66\u751F\uFF0C\u4E0A\u4F20\u6210\u529F",e.a.createElement("span",{style:{color:"#FA6400"}},t==null?void 0:t.success),"\u6761\u6570\u636E\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"),e.a.createElement(d.a,{style:{height:"30px",width:"144px"},type:"primary",ghost:!0,onClick:function(){Object(E.n)("",Object(E.H)({url:U.a.API_SERVER+(t==null?void 0:t.error_file),query:{}}))}},"\u4E0B\u8F7D\u5931\u8D25\u6570\u636E"))))};m.default=I},xEZ4:function(P,m,_){P.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
Loading…
Cancel
Save